Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.348/1.348, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 47.92 kB / 378.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2338, allocations: 53.37 MB / 431.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01164/0.2454, allocations: 9.774 MB / 441.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007646/0.2531, allocations: 3.851 MB / 445.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.2543, allocations: 79.69 kB / 445.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005616/0.2599, allocations: 3.076 MB / 448.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004321/0.2642, allocations: 1.938 MB / 450.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.2659, allocations: 0.8344 MB / 451.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00587/0.2718, allocations: 4.413 MB / 455.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003595/0.2754, allocations: 3.036 MB / 458.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002206/0.2776, allocations: 1.639 MB / 460.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003068/0.2807, allocations: 2.286 MB / 462.8 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007228/0.2814, allocations: 344 kB / 463.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002123/0.2835, allocations: 1.151 MB / 464.3 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002/0.2855, allocations: 2.057 MB / 466.3 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002108/0.2876, allocations: 1.708 MB / 468.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008131/0.2958, allocations: 7.49 MB / 475.5 MB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2958, allocations: 0 / 475.5 MB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2958, allocations: 3.938 kB / 475.5 MB, free: 10.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001495/0.2959, allocations: 0 / 475.5 MB, free: 10.73 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01053/0.3064, allocations: 5.208 MB / 480.8 MB, free: 5.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.3065, allocations: 8.031 kB / 480.8 MB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001193/0.3066, allocations: 110.5 kB / 480.9 MB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00111/0.3077, allocations: 0.7399 MB / 481.6 MB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02074/0.3285, allocations: 3.89 MB / 485.5 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006168/0.3346, allocations: 2.919 MB / 488.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.3348, allocations: 242.2 kB / 488.7 MB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000741/0.3356, allocations: 315.8 kB / 489 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01704/0.3526, allocations: 10.42 MB / 499.4 MB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/0.3527, allocations: 39.64 kB / 499.4 MB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004314/0.3531, allocations: 155.9 kB / 499.6 MB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003389/0.3565, allocations: 2.029 MB / 0.4898 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01607/0.3726, allocations: 8.78 MB / 0.4984 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.211/0.5837, allocations: 39.12 MB / 0.5366 GB, free: 92.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.5939, allocations: 3.799 MB / 0.5403 GB, free: 92.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.596, allocations: 2.237 MB / 0.5425 GB, free: 92.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007905/0.6039, allocations: 6.096 MB / 0.5485 GB, free: 89.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.6039, allocations: 54.25 kB / 0.5485 GB, free: 89.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.187e-06/0.6039, allocations: 0 / 0.5485 GB, free: 89.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03615/0.6401, allocations: 17.85 MB / 0.566 GB, free: 78.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.6401, allocations: 183 kB / 0.5661 GB, free: 78.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004191/0.6443, allocations: 4.575 MB / 0.5706 GB, free: 73.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.6445, allocations: 53.06 kB / 0.5706 GB, free: 73.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.6457, allocations: 3.277 MB / 0.5738 GB, free: 70.76 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004809/0.6462, allocations: 0.7822 MB / 0.5746 GB, free: 69.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/0.6474, allocations: 1.246 MB / 0.5758 GB, free: 68.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.372e-05/0.6474, allocations: 301.1 kB / 0.5761 GB, free: 68.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002246/0.6496, allocations: 2.276 MB / 0.5783 GB, free: 66.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003244/0.6529, allocations: 5.987 MB / 0.5842 GB, free: 58.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006325/0.6592, allocations: 8.961 MB / 0.5929 GB, free: 47.72 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.607e-05/0.6593, allocations: 36 kB / 0.593 GB, free: 47.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01087/0.6701, allocations: 8.806 MB / 0.6016 GB, free: 38.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.336e-05/0.6702, allocations: 60 kB / 0.6016 GB, free: 38.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.433e-05/0.6703, allocations: 128 kB / 0.6018 GB, free: 38.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.6722, allocations: 0.9458 MB / 0.6027 GB, free: 37.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003526/0.6757, allocations: 1.407 MB / 0.604 GB, free: 36.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005819/0.6815, allocations: 6.355 MB / 0.6103 GB, free: 29.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.6852, allocations: 339.6 kB / 0.6106 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004993/0.6857, allocations: 374.9 kB / 0.6109 GB, free: 29.16 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 738 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002331/0.688, allocations: 2.174 MB / 0.6131 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005151/0.6885, allocations: 409.3 kB / 0.6134 GB, free: 26.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004775/0.6933, allocations: 3.679 MB / 0.617 GB, free: 22.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/0.6933, allocations: 20 kB / 0.6171 GB, free: 22.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.6933, allocations: 4 kB / 0.6171 GB, free: 22.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.6933, allocations: 11.97 kB / 0.6171 GB, free: 22.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/0.7047, allocations: 8.615 MB / 0.6255 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.7047, allocations: 19.86 kB / 0.6255 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/0.706, allocations: 312.2 kB / 0.6258 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/0.7077, allocations: 0.7722 MB / 0.6266 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.7079, allocations: 39.98 kB / 0.6266 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005888/0.7138, allocations: 5.964 MB / 0.6324 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.7138, allocations: 7.938 kB / 0.6324 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007099/0.7209, allocations: 6.601 MB / 0.6389 GB, free: 236 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008213/0.7217, allocations: 417 kB / 0.6393 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/0.7222, allocations: 35.75 kB / 0.6393 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/0.7237, allocations: 119.8 kB / 0.6394 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/0.724, allocations: 129 kB / 0.6395 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.7241, allocations: 51.98 kB / 0.6396 GB, free: 15.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004138/0.7283, allocations: 2.936 MB / 0.6425 GB, free: 12.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7283, allocations: 0 / 0.6425 GB, free: 12.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004267/0.7325, allocations: 1.019 MB / 0.6435 GB, free: 11.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009795/0.7423, allocations: 7.266 MB / 0.6506 GB, free: 4.176 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008001/0.7503, allocations: 5.317 MB / 0.6557 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.7503, allocations: 0 / 0.6557 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00303/0.7534, allocations: 1.844 MB / 0.6575 GB, free: 13.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.7561, allocations: 0.4954 MB / 0.658 GB, free: 12.52 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06826/0.8243, allocations: 50.21 MB / 0.7071 GB, free: 4.426 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003688/0.828, allocations: 2.824 MB / 0.7098 GB, free: 1.555 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004295/0.8323, allocations: 2.033 MB / 0.7118 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002771/0.8351, allocations: 1.991 MB / 0.7137 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of SimCode: time 1.222e-06/0.8351, allocations: 4 kB / 0.7138 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.077/1.913, allocations: 79.64 MB / 0.7915 GB, free: 160.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.86/27.78, allocations: 7.156 kB / 0.7915 GB, free: 160.7 MB / 0.545 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 32.09500988596119]