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.0009079/0.0009079, allocations: 169.8 kB / 16.72 MB, free: 5.051 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.214/1.214, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.000676/0.000676, allocations: 77.95 kB / 271.2 MB, free: 8.266 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.278/0.278, allocations: 43.56 MB / 363.1 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003785, allocations: 16 kB / 432 MB, free: 5.629 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09731, allocations: 58.85 MB / 490.8 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.2372/0.3345, allocations: 82.19 MB / 0.5596 GB, free: 7.797 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03807/0.3726, allocations: 16.49 MB / 0.5757 GB, free: 12.53 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01514/0.3878, allocations: 385.5 kB / 0.576 GB, free: 12.48 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01219/0.4, allocations: 4.312 MB / 0.5803 GB, free: 10.94 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03374/0.4338, allocations: 12.58 MB / 0.5925 GB, free: 2 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00604/0.4399, allocations: 0.914 MB / 0.5934 GB, free: 1.086 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04372/0.4836, allocations: 36.28 MB / 0.6289 GB, free: 12.77 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.4938, allocations: 7.914 MB / 0.6366 GB, free: 4.777 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003824/0.4977, allocations: 2.043 MB / 0.6386 GB, free: 2.727 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004833/0.5026, allocations: 3.189 MB / 0.6417 GB, free: 15.53 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.5037, allocations: 232 kB / 0.6419 GB, free: 15.3 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003022/0.5067, allocations: 1.17 MB / 0.6431 GB, free: 14.13 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003031/0.5098, allocations: 2.836 MB / 0.6458 GB, free: 11.29 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004118/0.5139, allocations: 3.05 MB / 0.6488 GB, free: 8.211 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.5246, allocations: 8.76 MB / 0.6574 GB, free: 15.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.5247, allocations: 4 kB / 0.6574 GB, free: 15.42 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.5247, allocations: 0 / 0.6574 GB, free: 15.42 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004669/0.5252, allocations: 0 / 0.6574 GB, free: 15.42 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: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.01452/0.5397, allocations: 6.492 MB / 0.6637 GB, free: 8.848 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.5398, allocations: 8.031 kB / 0.6637 GB, free: 8.84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/0.5529, allocations: 2.897 MB / 0.6666 GB, free: 5.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009645/0.5625, allocations: 4.507 MB / 0.671 GB, free: 1.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003583/0.5629, allocations: 390.4 kB / 0.6713 GB, free: 0.957 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001546/0.5645, allocations: 0.5113 MB / 0.6718 GB, free: 456 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2039/0.7684, allocations: 15.61 MB / 0.6871 GB, free: 135.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/0.7685, allocations: 70.2 kB / 0.6871 GB, free: 135.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005388/0.7691, allocations: 243.8 kB / 0.6874 GB, free: 135.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003968/0.773, allocations: 3.057 MB / 0.6904 GB, free: 134.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01927/0.7923, allocations: 13.2 MB / 0.7033 GB, free: 130.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05957/0.8519, allocations: 61.64 MB / 0.7634 GB, free: 82.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.8648, allocations: 6.655 MB / 0.7699 GB, free: 75.25 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004078/0.869, allocations: 4.02 MB / 0.7739 GB, free: 71.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01276/0.8817, allocations: 9.47 MB / 0.7831 GB, free: 61.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.8818, allocations: 64.56 kB / 0.7832 GB, free: 61.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=269): time 5.55e-06/0.8818, allocations: 0 / 0.7832 GB, free: 61.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=311): time 0.06727/0.9491, allocations: 32.52 MB / 0.8149 GB, free: 28.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.9492, allocations: 243.9 kB / 0.8152 GB, free: 28.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007827/0.957, allocations: 6.952 MB / 0.822 GB, free: 21.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007301/0.9578, allocations: 73.7 kB / 0.822 GB, free: 21.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002203/0.96, allocations: 4.77 MB / 0.8267 GB, free: 16.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001375/0.9614, allocations: 1.185 MB / 0.8278 GB, free: 15.61 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005736/0.962, allocations: 188 kB / 0.828 GB, free: 15.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003594/0.9623, allocations: 0.6988 MB / 0.8287 GB, free: 14.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004849/0.9672, allocations: 3.883 MB / 0.8325 GB, free: 10.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006932/0.9742, allocations: 9.205 MB / 0.8415 GB, free: 15 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01637/0.9906, allocations: 14.08 MB / 0.8552 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/0.9907, allocations: 56 kB / 0.8553 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1222) (initialization): time 0.2434/1.234, allocations: 14.9 MB / 0.8698 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001692/1.234, allocations: 92.31 kB / 0.8699 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002991/1.235, allocations: 185.7 kB / 0.8701 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006505/1.241, allocations: 2.287 MB / 0.8723 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007934/1.249, allocations: 2.173 MB / 0.8745 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01511/1.264, allocations: 13.47 MB / 0.8876 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008001/1.272, allocations: 0.5485 MB / 0.8882 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001403/1.274, allocations: 0.5475 MB / 0.8887 GB, free: 141.2 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.005773/1.28, allocations: 3.227 MB / 0.8918 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.281, allocations: 0.5812 MB / 0.8924 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/1.293, allocations: 7.702 MB / 0.8999 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.44e-05/1.293, allocations: 31.83 kB / 0.9 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.293, allocations: 12.75 kB / 0.9 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-05/1.293, allocations: 18.78 kB / 0.9 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02803/1.321, allocations: 16.24 MB / 0.9159 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-05/1.321, allocations: 6.125 kB / 0.9159 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002633/1.324, allocations: 0.5242 MB / 0.9164 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005402/1.329, allocations: 2.036 MB / 0.9184 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006154/1.33, allocations: 56.27 kB / 0.9184 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.345, allocations: 12.66 MB / 0.9308 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.345, allocations: 10.28 kB / 0.9308 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0168/1.362, allocations: 12.21 MB / 0.9427 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003307/1.365, allocations: 1.2 MB / 0.9439 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001722/1.367, allocations: 59.61 kB / 0.9439 GB, free: 119.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0036/1.37, allocations: 223.8 kB / 0.9442 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008232/1.371, allocations: 193.8 kB / 0.9443 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003908/1.372, allocations: 84.84 kB / 0.9444 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008724/1.38, allocations: 4.435 MB / 0.9488 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.41e-07/1.38, allocations: 0 / 0.9488 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009707/1.39, allocations: 1.731 MB / 0.9504 GB, free: 113.2 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.001005/1.391, allocations: 202.9 kB / 0.9506 GB, free: 113 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01359/1.405, allocations: 9.379 MB / 0.9598 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.405, allocations: 0 / 0.9598 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005665/1.41, allocations: 3.707 MB / 0.9634 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009036/1.419, allocations: 0.7083 MB / 0.9641 GB, free: 99.45 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/1.447, allocations: 19.34 MB / 0.983 GB, free: 80.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006054/1.453, allocations: 4.87 MB / 0.9877 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002482/1.455, allocations: 475.3 kB / 0.9882 GB, free: 74.82 MB / 0.5105 GB Notification: Performance of SimCode: time 2.945e-06/1.455, allocations: 4 kB / 0.9882 GB, free: 74.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.3546/1.81, allocations: 154.1 MB / 1.139 GB, free: 105.8 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