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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009708/0.0009707, allocations: 96.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009307/0.0009307, allocations: 183.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1932/0.1932, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003571, allocations: 12 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1584, allocations: 61.93 MB / 471.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.401/0.5594, allocations: 85.44 MB / 0.5438 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04961/0.6091, allocations: 19.13 MB / 0.5625 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02098/0.6301, allocations: 430.7 kB / 0.5629 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01777/0.6479, allocations: 4.35 MB / 0.5672 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0422/0.6902, allocations: 12.2 MB / 0.5791 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006669/0.6969, allocations: 1.006 MB / 0.5801 GB, free: 4.445 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.1029/0.7998, allocations: 70.85 MB / 0.6493 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01267/0.8126, allocations: 7.262 MB / 0.6564 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004011/0.8166, allocations: 1.631 MB / 0.658 GB, free: 4.562 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00435/0.821, allocations: 2.208 MB / 0.6601 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.8228, allocations: 224 kB / 0.6603 GB, free: 2.129 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.8263, allocations: 1.1 MB / 0.6614 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003799/0.8301, allocations: 2.618 MB / 0.664 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002654/0.8328, allocations: 1.31 MB / 0.6652 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.8433, allocations: 8.838 MB / 0.6739 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8434, allocations: 0 / 0.6739 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.815e-06/0.8434, allocations: 0 / 0.6739 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0004582/0.8438, allocations: 0 / 0.6739 GB, free: 4.223 MB / 0.4981 GB 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.01815/0.862, allocations: 6.798 MB / 0.6805 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.8621, allocations: 12.03 kB / 0.6805 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06245/0.9245, allocations: 11.12 MB / 0.6914 GB, free: 2.188 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01425/0.9388, allocations: 5 MB / 0.6963 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004746/0.9393, allocations: 369.5 kB / 0.6966 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002021/0.9414, allocations: 499.6 kB / 0.6971 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2877/1.229, allocations: 14.79 MB / 0.7115 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003486/1.23, allocations: 79.11 kB / 0.7116 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/1.231, allocations: 232.4 kB / 0.7118 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007107/1.238, allocations: 2.719 MB / 0.7145 GB, free: 190.2 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03002/1.268, allocations: 12.09 MB / 0.7263 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06745/1.335, allocations: 56.87 MB / 0.7818 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01037/1.346, allocations: 4.467 MB / 0.7862 GB, free: 131 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001497/1.346, allocations: 37.89 kB / 0.7862 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/1.346, allocations: 59.5 kB / 0.7863 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=186): time 4.198e-06/1.346, allocations: 0 / 0.7863 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=204): time 0.04841/1.394, allocations: 20.84 MB / 0.8066 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/1.394, allocations: 256.7 kB / 0.8069 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008364/1.403, allocations: 7.089 MB / 0.8138 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005007/1.403, allocations: 53.7 kB / 0.8139 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002512/1.406, allocations: 4.674 MB / 0.8184 GB, free: 97.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009476/1.407, allocations: 0.8147 MB / 0.8192 GB, free: 96.87 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/1.407, allocations: 157 kB / 0.8194 GB, free: 96.72 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003063/1.407, allocations: 0.6247 MB / 0.82 GB, free: 96.09 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003188/1.411, allocations: 2.56 MB / 0.8225 GB, free: 93.53 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004927/1.416, allocations: 7.452 MB / 0.8298 GB, free: 83.63 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004762/1.42, allocations: 4.267 MB / 0.8339 GB, free: 79.36 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.511e-05/1.42, allocations: 48 kB / 0.834 GB, free: 79.32 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1005) (initialization): time 0.0159/1.436, allocations: 10.46 MB / 0.8442 GB, free: 68.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.741e-05/1.436, allocations: 80 kB / 0.8443 GB, free: 68.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/1.437, allocations: 172 kB / 0.8444 GB, free: 68.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/1.439, allocations: 1.046 MB / 0.8455 GB, free: 67.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004886/1.444, allocations: 1.774 MB / 0.8472 GB, free: 65.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00901/1.453, allocations: 9.729 MB / 0.8567 GB, free: 55.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008048/1.461, allocations: 427.3 kB / 0.8571 GB, free: 55.22 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002339/1.463, allocations: 486.1 kB / 0.8576 GB, free: 54.75 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.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.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.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 (939): * Single equations (assignments): 933 * 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.007249/1.47, allocations: 3.044 MB / 0.8605 GB, free: 51.69 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001761/1.472, allocations: 0.5475 MB / 0.8611 GB, free: 51.14 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007018/1.479, allocations: 3.766 MB / 0.8647 GB, free: 47.35 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.822e-05/1.479, allocations: 25.25 kB / 0.8648 GB, free: 47.32 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.683e-05/1.479, allocations: 8 kB / 0.8648 GB, free: 47.32 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-05/1.479, allocations: 11.95 kB / 0.8648 GB, free: 47.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02025/1.5, allocations: 10.2 MB / 0.8747 GB, free: 37.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.218e-05/1.5, allocations: 4 kB / 0.8748 GB, free: 37.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0015/1.501, allocations: 323.5 kB / 0.8751 GB, free: 36.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/1.503, allocations: 0.7461 MB / 0.8758 GB, free: 36.02 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/1.503, allocations: 35.98 kB / 0.8758 GB, free: 35.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00841/1.512, allocations: 8.851 MB / 0.8845 GB, free: 26.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/1.512, allocations: 3.938 kB / 0.8845 GB, free: 26.72 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008924/1.521, allocations: 6.751 MB / 0.8911 GB, free: 19.92 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002555/1.523, allocations: 0.6344 MB / 0.8917 GB, free: 19.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001801/1.525, allocations: 32 kB / 0.8917 GB, free: 19.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003583/1.529, allocations: 128 kB / 0.8918 GB, free: 19.11 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004896/1.529, allocations: 129.2 kB / 0.892 GB, free: 18.98 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000215/1.529, allocations: 55.98 kB / 0.892 GB, free: 18.93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01044/1.54, allocations: 4.566 MB / 0.8965 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.813e-06/1.54, allocations: 4 kB / 0.8965 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01298/1.553, allocations: 1.427 MB / 0.8979 GB, free: 12.95 MB / 0.5294 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.001435/1.554, allocations: 197.7 kB / 0.8981 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01234/1.567, allocations: 6.466 MB / 0.9044 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/1.567, allocations: 3.938 kB / 0.9044 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003154/1.57, allocations: 2.088 MB / 0.9064 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006007/1.576, allocations: 0.7576 MB / 0.9072 GB, free: 3.406 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3203/1.896, allocations: 15.86 MB / 0.9226 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01067/1.907, allocations: 4.797 MB / 0.9273 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008035/1.915, allocations: 2.515 MB / 0.9298 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/1.916, allocations: 357.1 kB / 0.9301 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.372e-06/1.917, allocations: 2.906 kB / 0.9301 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1015/2.018, allocations: 53.07 MB / 0.982 GB, free: 127.3 MB / 0.5294 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/jenkins/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