Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001573/0.001573, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2065/0.2065, allocations: 46.11 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.001331, allocations: 71.89 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.122, allocations: 62.45 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01546/0.1376, allocations: 15.51 MB / 497 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1489, allocations: 4.929 MB / 0.4901 GB, free: 20 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00306/0.152, allocations: 107.7 kB / 0.4902 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008893/0.161, allocations: 5.004 MB / 0.4951 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007295/0.1683, allocations: 2.466 MB / 0.4975 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002742/0.1711, allocations: 1.076 MB / 0.4986 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.1814, allocations: 6.844 MB / 0.5053 GB, free: 492 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2529/0.4344, allocations: 5.74 MB / 0.5109 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005539/0.44, allocations: 2.381 MB / 0.5132 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006349/0.4463, allocations: 3.202 MB / 0.5163 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002236/0.4486, allocations: 0.5032 MB / 0.5168 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004023/0.4527, allocations: 1.383 MB / 0.5182 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004147/0.4568, allocations: 2.968 MB / 0.5211 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006844/0.4637, allocations: 3.34 MB / 0.5243 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.4764, allocations: 10.34 MB / 0.5344 GB, free: 6.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4764, allocations: 0 / 0.5344 GB, free: 6.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4765, allocations: 0 / 0.5344 GB, free: 6.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003741/0.4768, allocations: 0 / 0.5344 GB, free: 6.566 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: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01974/0.4966, allocations: 7.396 MB / 0.5416 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.4966, allocations: 9.938 kB / 0.5416 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01121/0.5079, allocations: 2.711 MB / 0.5443 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.5198, allocations: 4.27 MB / 0.5485 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003185/0.5202, allocations: 357.2 kB / 0.5488 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001998/0.5222, allocations: 480.5 kB / 0.5493 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03088/0.5531, allocations: 14.25 MB / 0.5632 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002814/0.5534, allocations: 68.22 kB / 0.5632 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.5545, allocations: 236.3 kB / 0.5635 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004728/0.5592, allocations: 2.702 MB / 0.5661 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0245/0.5837, allocations: 12.03 MB / 0.5779 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0774/0.6612, allocations: 57.32 MB / 0.6338 GB, free: 4.902 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01514/0.6763, allocations: 6.271 MB / 0.64 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005073/0.6815, allocations: 3.71 MB / 0.6436 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0167/0.6982, allocations: 8.534 MB / 0.6519 GB, free: 2.133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.44e-05/0.6983, allocations: 56.22 kB / 0.652 GB, free: 2.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 6.021e-06/0.6983, allocations: 4 kB / 0.652 GB, free: 2.066 MB / 494.1 MB Notification: Performance of matching and sorting (n=278): time 0.07435/0.7727, allocations: 30.31 MB / 0.6816 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.7729, allocations: 235.6 kB / 0.6818 GB, free: 3.34 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01084/0.7837, allocations: 6.687 MB / 0.6883 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008769/0.7846, allocations: 65.7 kB / 0.6884 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003381/0.788, allocations: 4.411 MB / 0.6927 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001695/0.7897, allocations: 1.073 MB / 0.6937 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002701/0.7924, allocations: 1.787 MB / 0.6955 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.7926, allocations: 305.1 kB / 0.6958 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005164/0.7977, allocations: 3.574 MB / 0.6993 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01112/0.8089, allocations: 8.637 MB / 0.7077 GB, free: 6.387 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2842/1.093, allocations: 13.12 MB / 0.7205 GB, free: 176.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001828/1.093, allocations: 51 kB / 0.7206 GB, free: 176.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.03022/1.124, allocations: 14.01 MB / 0.7343 GB, free: 172 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/1.124, allocations: 87.52 kB / 0.7343 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002527/1.124, allocations: 174.8 kB / 0.7345 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005987/1.13, allocations: 2.278 MB / 0.7367 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006825/1.137, allocations: 2.006 MB / 0.7387 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01558/1.152, allocations: 14.35 MB / 0.7527 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008106/1.161, allocations: 0.503 MB / 0.7532 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002254/1.163, allocations: 0.5139 MB / 0.7537 GB, free: 164 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1058): * Single equations (assignments): 1051 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007004/1.17, allocations: 2.989 MB / 0.7566 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001459/1.171, allocations: 0.5611 MB / 0.7572 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.183, allocations: 7.072 MB / 0.7641 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.298e-05/1.183, allocations: 30.84 kB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.363e-05/1.183, allocations: 12 kB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.854e-05/1.183, allocations: 19.52 kB / 0.7641 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02784/1.211, allocations: 14.87 MB / 0.7786 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.897e-05/1.211, allocations: 11.94 kB / 0.7787 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002192/1.214, allocations: 453.7 kB / 0.7791 GB, free: 144.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005384/1.219, allocations: 2.034 MB / 0.7811 GB, free: 142.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005112/1.219, allocations: 57.47 kB / 0.7811 GB, free: 142.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01397/1.233, allocations: 13.6 MB / 0.7944 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.233, allocations: 11.94 kB / 0.7944 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01411/1.248, allocations: 11.21 MB / 0.8054 GB, free: 117.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/1.25, allocations: 0.6303 MB / 0.806 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/1.251, allocations: 52.92 kB / 0.806 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002284/1.253, allocations: 196.7 kB / 0.8062 GB, free: 116.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004677/1.253, allocations: 179.4 kB / 0.8064 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001951/1.254, allocations: 72 kB / 0.8065 GB, free: 116.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005312/1.259, allocations: 4.28 MB / 0.8106 GB, free: 112 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/1.259, allocations: 0 / 0.8106 GB, free: 112 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006607/1.265, allocations: 1.574 MB / 0.8122 GB, free: 110.5 MB / 0.545 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 (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (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.0004725/1.266, allocations: 197.9 kB / 0.8124 GB, free: 110.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01038/1.276, allocations: 8.709 MB / 0.8209 GB, free: 101.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.276, allocations: 0.9844 kB / 0.8209 GB, free: 101.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004499/1.281, allocations: 3.404 MB / 0.8242 GB, free: 98.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003933/1.285, allocations: 0.7306 MB / 0.8249 GB, free: 97.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02125/1.306, allocations: 14.78 MB / 0.8393 GB, free: 82.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004632/1.311, allocations: 4.534 MB / 0.8438 GB, free: 78.01 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0055/1.316, allocations: 2.771 MB / 0.8465 GB, free: 75.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/1.318, allocations: 379.4 kB / 0.8468 GB, free: 74.86 MB / 0.545 GB Notification: Performance of SimCode: time 2.024e-06/1.318, allocations: 4 kB / 0.8468 GB, free: 74.86 MB / 0.545 GB Notification: Performance of Templates: time 0.09016/1.408, allocations: 59.11 MB / 0.9046 GB, free: 16.16 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches