Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002157/0.002158, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009511/0.0009508, allocations: 86.02 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3839/0.3839, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003596, allocations: 16 kB / 431.4 MB, free: 5.918 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 58.84 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.27/0.3804, allocations: 82.18 MB / 0.559 GB, free: 7.934 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04437/0.4248, allocations: 16.49 MB / 0.5751 GB, free: 12.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0199/0.4447, allocations: 389.1 kB / 0.5755 GB, free: 12.62 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01598/0.4608, allocations: 4.307 MB / 0.5797 GB, free: 11.09 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03852/0.4993, allocations: 12.55 MB / 0.5919 GB, free: 2.305 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005806/0.5051, allocations: 0.8661 MB / 0.5928 GB, free: 1.438 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04407/0.5492, allocations: 36.2 MB / 0.6281 GB, free: 13.2 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01206/0.5613, allocations: 7.44 MB / 0.6354 GB, free: 5.703 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004347/0.5657, allocations: 2.035 MB / 0.6374 GB, free: 3.66 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004969/0.5707, allocations: 3.193 MB / 0.6405 GB, free: 468 kB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001423/0.5721, allocations: 232 kB / 0.6407 GB, free: 236 kB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003216/0.5754, allocations: 1.014 MB / 0.6417 GB, free: 15.21 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003512/0.5789, allocations: 2.828 MB / 0.6445 GB, free: 12.38 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002682/0.5816, allocations: 1.333 MB / 0.6458 GB, free: 11.04 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.5942, allocations: 8.756 MB / 0.6543 GB, free: 2.258 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.5942, allocations: 4 kB / 0.6543 GB, free: 2.254 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5942, allocations: 0 / 0.6543 GB, free: 2.254 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005308/0.5948, allocations: 0 / 0.6543 GB, free: 2.254 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.01574/0.6105, allocations: 6.582 MB / 0.6608 GB, free: 11.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.6106, allocations: 12.03 kB / 0.6608 GB, free: 11.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01349/0.6241, allocations: 2.892 MB / 0.6636 GB, free: 8.668 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/0.6348, allocations: 4.423 MB / 0.6679 GB, free: 4.164 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000407/0.6352, allocations: 385.9 kB / 0.6683 GB, free: 3.785 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/0.6371, allocations: 0.5152 MB / 0.6688 GB, free: 3.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2335/0.8706, allocations: 15.61 MB / 0.684 GB, free: 135.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002011/0.8709, allocations: 67.75 kB / 0.6841 GB, free: 135.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006732/0.8716, allocations: 243.9 kB / 0.6843 GB, free: 135.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005091/0.8767, allocations: 3.058 MB / 0.6873 GB, free: 134.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02342/0.9001, allocations: 13.2 MB / 0.7002 GB, free: 130.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07402/0.9742, allocations: 61.61 MB / 0.7604 GB, free: 84.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01408/0.9883, allocations: 6.649 MB / 0.7669 GB, free: 78.03 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004572/0.9929, allocations: 4.024 MB / 0.7708 GB, free: 73.99 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01483/1.008, allocations: 9.477 MB / 0.7801 GB, free: 64.44 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/1.008, allocations: 76.48 kB / 0.7801 GB, free: 64.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=269): time 5.069e-06/1.008, allocations: 0 / 0.7801 GB, free: 64.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=311): time 0.07581/1.084, allocations: 32.51 MB / 0.8119 GB, free: 31.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.309e-05/1.084, allocations: 235.9 kB / 0.8121 GB, free: 31.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008186/1.092, allocations: 6.948 MB / 0.8189 GB, free: 24.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007633/1.093, allocations: 72.98 kB / 0.819 GB, free: 24.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002426/1.095, allocations: 4.773 MB / 0.8236 GB, free: 19.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001312/1.097, allocations: 1.186 MB / 0.8248 GB, free: 18.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004643/1.097, allocations: 184 kB / 0.825 GB, free: 18.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003721/1.097, allocations: 0.7027 MB / 0.8256 GB, free: 17.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00469/1.102, allocations: 3.883 MB / 0.8294 GB, free: 13.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006994/1.109, allocations: 9.213 MB / 0.8384 GB, free: 1.777 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008402/1.118, allocations: 5.832 MB / 0.8441 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.134e-05/1.118, allocations: 56 kB / 0.8442 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1222) (initialization): time 0.03094/1.149, allocations: 14.9 MB / 0.8587 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002076/1.149, allocations: 88.06 kB / 0.8588 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003083/1.149, allocations: 184 kB / 0.859 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005845/1.155, allocations: 2.315 MB / 0.8612 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007928/1.163, allocations: 2.172 MB / 0.8634 GB, free: 8.203 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2335/1.397, allocations: 13.45 MB / 0.8765 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007712/1.404, allocations: 0.5501 MB / 0.877 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.406, allocations: 0.5471 MB / 0.8776 GB, free: 146.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 63 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1140): * Single equations (assignments): 1133 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006496/1.412, allocations: 3.235 MB / 0.8807 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001251/1.414, allocations: 0.5824 MB / 0.8813 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/1.426, allocations: 7.702 MB / 0.8888 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-05/1.426, allocations: 32.41 kB / 0.8889 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/1.426, allocations: 13.55 kB / 0.8889 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.108e-05/1.426, allocations: 12.56 kB / 0.8889 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02484/1.451, allocations: 16.24 MB / 0.9047 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.169e-05/1.451, allocations: 3.312 kB / 0.9048 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002369/1.453, allocations: 0.5198 MB / 0.9053 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004978/1.458, allocations: 2.032 MB / 0.9072 GB, free: 138 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003619/1.458, allocations: 62.69 kB / 0.9073 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/1.475, allocations: 12.67 MB / 0.9197 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/1.475, allocations: 8.688 kB / 0.9197 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01726/1.492, allocations: 12.21 MB / 0.9316 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002622/1.495, allocations: 1.2 MB / 0.9328 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000876/1.496, allocations: 54.41 kB / 0.9328 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002549/1.498, allocations: 223.8 kB / 0.933 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004682/1.499, allocations: 195.8 kB / 0.9332 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1.499, allocations: 80.5 kB / 0.9333 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00605/1.505, allocations: 4.433 MB / 0.9376 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.91e-07/1.505, allocations: 0 / 0.9376 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007245/1.512, allocations: 1.734 MB / 0.9393 GB, free: 124.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000564/1.513, allocations: 199 kB / 0.9395 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.524, allocations: 9.381 MB / 0.9487 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.524, allocations: 4 kB / 0.9487 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00516/1.53, allocations: 3.713 MB / 0.9523 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00408/1.534, allocations: 0.7208 MB / 0.953 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02287/1.557, allocations: 19.32 MB / 0.9719 GB, free: 93.52 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004479/1.561, allocations: 4.866 MB / 0.9766 GB, free: 88.62 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002067/1.563, allocations: 483.3 kB / 0.9771 GB, free: 88.15 MB / 0.5105 GB Notification: Performance of SimCode: time 9.82e-07/1.563, allocations: 0 / 0.9771 GB, free: 88.15 MB / 0.5105 GB Notification: Performance of Templates: time 0.3925/1.956, allocations: 154.3 MB / 1.128 GB, free: 118.6 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches