Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.WorldTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques") translateModel(ModelicaTest.MultiBody.Forces.WorldTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009083/0.0009083, allocations: 179 kB / 18.09 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.3 MB / 242.1 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000758/0.0007581, allocations: 97.94 kB / 293.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3662/0.3662, allocations: 44.15 MB / 388.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.000395, allocations: 19.98 kB / 461.1 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3501, allocations: 61.88 MB / 0.5107 GB, free: 38.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1377/0.4879, allocations: 107.2 MB / 0.6154 GB, free: 3.863 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.4882, allocations: 87.92 kB / 0.6155 GB, free: 3.781 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6009/1.089, allocations: 130.5 MB / 0.7429 GB, free: 89.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.089, allocations: 0 / 0.7429 GB, free: 89.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004824/1.09, allocations: 136.1 kB / 0.7431 GB, free: 89.74 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.02179/1.111, allocations: 6.746 MB / 0.7496 GB, free: 86.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/1.112, allocations: 10.97 kB / 0.7496 GB, free: 86.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02706/1.139, allocations: 6.944 MB / 0.7564 GB, free: 83.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01674/1.155, allocations: 6.899 MB / 0.7632 GB, free: 79.83 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005425/1.156, allocations: 492 kB / 0.7636 GB, free: 79.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003251/1.159, allocations: 0.6456 MB / 0.7643 GB, free: 79.37 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03332/1.193, allocations: 15.17 MB / 0.7791 GB, free: 65.78 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003328/1.193, allocations: 91.38 kB / 0.7792 GB, free: 65.69 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/1.194, allocations: 315.8 kB / 0.7795 GB, free: 65.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001399/1.196, allocations: 1.345 MB / 0.7808 GB, free: 64.03 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02185/1.218, allocations: 11.92 MB / 0.7924 GB, free: 52.09 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.068/1.286, allocations: 67.57 MB / 0.8584 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01207/1.298, allocations: 5.228 MB / 0.8635 GB, free: 9.121 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003304/1.301, allocations: 2.619 MB / 0.8661 GB, free: 6.488 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 9.644e-05/1.301, allocations: 40.88 kB / 0.8661 GB, free: 6.449 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/1.301, allocations: 63.56 kB / 0.8662 GB, free: 6.375 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=186): time 4.95e-06/1.301, allocations: 0 / 0.8662 GB, free: 6.375 MB / 0.5105 GB Notification: Performance of matching and sorting (n=204): time 0.3664/1.668, allocations: 19.54 MB / 0.8853 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/1.668, allocations: 251.5 kB / 0.8855 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01412/1.682, allocations: 6.662 MB / 0.892 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005186/1.683, allocations: 56.38 kB / 0.8921 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00337/1.686, allocations: 4.696 MB / 0.8966 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/1.687, allocations: 0.8165 MB / 0.8974 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003575/1.687, allocations: 160.1 kB / 0.8976 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003484/1.688, allocations: 0.6384 MB / 0.8982 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003758/1.692, allocations: 2.461 MB / 0.9006 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006792/1.698, allocations: 7.429 MB / 0.9079 GB, free: 98.56 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/1.711, allocations: 10.78 MB / 0.9184 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002809/1.711, allocations: 50.19 kB / 0.9184 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.02427/1.736, allocations: 10.19 MB / 0.9284 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004581/1.736, allocations: 82.81 kB / 0.9285 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005964/1.737, allocations: 172.5 kB / 0.9286 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002616/1.739, allocations: 0.8055 MB / 0.9294 GB, free: 87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006651/1.746, allocations: 1.766 MB / 0.9312 GB, free: 86.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009868/1.756, allocations: 8.497 MB / 0.9395 GB, free: 80.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008125/1.764, allocations: 420.7 kB / 0.9399 GB, free: 80.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/1.766, allocations: 487.5 kB / 0.9403 GB, free: 80.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 801 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (945): * Single equations (assignments): 939 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009478/1.776, allocations: 3.045 MB / 0.9433 GB, free: 79.25 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001981/1.778, allocations: 0.5537 MB / 0.9438 GB, free: 78.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007604/1.785, allocations: 3.425 MB / 0.9472 GB, free: 77.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/1.786, allocations: 22.12 kB / 0.9472 GB, free: 77.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.202e-05/1.786, allocations: 10.19 kB / 0.9472 GB, free: 77.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.071e-05/1.786, allocations: 9.234 kB / 0.9472 GB, free: 77.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02365/1.809, allocations: 9.61 MB / 0.9566 GB, free: 74.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.256e-05/1.809, allocations: 3 kB / 0.9566 GB, free: 74.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/1.811, allocations: 301.9 kB / 0.9569 GB, free: 74.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00155/1.813, allocations: 0.5332 MB / 0.9574 GB, free: 73.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002976/1.813, allocations: 36.28 kB / 0.9575 GB, free: 73.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007242/1.82, allocations: 7.592 MB / 0.9649 GB, free: 68.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.82, allocations: 0 / 0.9649 GB, free: 68.31 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009895/1.83, allocations: 6.107 MB / 0.9708 GB, free: 65.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002742/1.833, allocations: 0.6096 MB / 0.9714 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/1.835, allocations: 38.56 kB / 0.9715 GB, free: 65.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003397/1.838, allocations: 111.3 kB / 0.9716 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000478/1.839, allocations: 125.1 kB / 0.9717 GB, free: 65.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/1.839, allocations: 58.31 kB / 0.9717 GB, free: 65.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01063/1.85, allocations: 4.233 MB / 0.9759 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.042e-06/1.85, allocations: 3.938 kB / 0.9759 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01133/1.861, allocations: 1.389 MB / 0.9772 GB, free: 62.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (153): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000818/1.862, allocations: 174.9 kB / 0.9774 GB, free: 62.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01116/1.873, allocations: 6.287 MB / 0.9835 GB, free: 56.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/1.873, allocations: 0 / 0.9835 GB, free: 56.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002908/1.876, allocations: 1.987 MB / 0.9855 GB, free: 54.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008533/1.885, allocations: 0.7764 MB / 0.9862 GB, free: 54.18 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02813/1.913, allocations: 15.75 MB / 1.002 GB, free: 39.73 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007218/1.92, allocations: 4.661 MB / 1.006 GB, free: 36.21 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006242/1.926, allocations: 2.511 MB / 1.009 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009626/1.927, allocations: 355.2 kB / 1.009 GB, free: 34.27 MB / 0.5105 GB Notification: Performance of SimCode: time 6.31e-07/1.927, allocations: 0 / 1.009 GB, free: 34.27 MB / 0.5105 GB Notification: Performance of Templates: time 0.09505/2.022, allocations: 50.83 MB / 1.059 GB, free: 4.211 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldTorques/WorldTorques.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches