Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.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 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 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 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.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_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_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 206.3 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.1 MB / 222.6 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3626/0.3626, allocations: 43.5 MB / 313.5 MB, free: 8.531 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.91 kB / 382 MB, free: 8.758 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1327, allocations: 57.79 MB / 439.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3349/0.4676, allocations: 90.53 MB / 0.5179 GB, free: 6.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05395/0.5216, allocations: 17.25 MB / 0.5348 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02439/0.546, allocations: 388.8 kB / 0.5351 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01067/0.5568, allocations: 5.066 MB / 0.5401 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008911/0.5657, allocations: 2.55 MB / 0.5426 GB, free: 7.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003269/0.569, allocations: 1.012 MB / 0.5436 GB, free: 7.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01523/0.5843, allocations: 10.05 MB / 0.5534 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009418/0.5937, allocations: 5.859 MB / 0.5591 GB, free: 7.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005433/0.5992, allocations: 2.277 MB / 0.5613 GB, free: 4.875 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00631/0.6056, allocations: 3.719 MB / 0.565 GB, free: 1.145 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.6072, allocations: 396 kB / 0.5653 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003432/0.6106, allocations: 1.342 MB / 0.5666 GB, free: 15.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00341/0.614, allocations: 3.121 MB / 0.5697 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004844/0.6189, allocations: 3.522 MB / 0.5731 GB, free: 8.742 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01154/0.6305, allocations: 10.88 MB / 0.5838 GB, free: 13.82 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6305, allocations: 0 / 0.5838 GB, free: 13.82 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.6305, allocations: 0 / 0.5838 GB, free: 13.82 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004084/0.6309, allocations: 0 / 0.5838 GB, free: 13.82 MB / 462.1 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.02184/0.6528, allocations: 7.923 MB / 0.5915 GB, free: 5.816 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.6528, allocations: 8.031 kB / 0.5915 GB, free: 5.809 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01505/0.6679, allocations: 2.83 MB / 0.5943 GB, free: 2.965 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.6791, allocations: 4.509 MB / 0.5987 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004158/0.6796, allocations: 390.4 kB / 0.599 GB, free: 13.99 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002124/0.6817, allocations: 0.5074 MB / 0.5995 GB, free: 13.48 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03019/0.7119, allocations: 15.63 MB / 0.6148 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/0.7122, allocations: 75.3 kB / 0.6149 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001644/0.7139, allocations: 243.8 kB / 0.6151 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005548/0.7195, allocations: 3.063 MB / 0.6181 GB, free: 9.438 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2491/0.9686, allocations: 13.24 MB / 0.631 GB, free: 137.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07736/1.046, allocations: 61.59 MB / 0.6912 GB, free: 97.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01638/1.062, allocations: 6.663 MB / 0.6977 GB, free: 94.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005332/1.068, allocations: 4.025 MB / 0.7016 GB, free: 93.21 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/1.083, allocations: 9.482 MB / 0.7109 GB, free: 87.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/1.083, allocations: 60.09 kB / 0.7109 GB, free: 87.63 MB / 494.1 MB Notification: Performance of pre-optimization done (n=269): time 4.228e-06/1.083, allocations: 0 / 0.7109 GB, free: 87.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=311): time 0.07846/1.162, allocations: 32.57 MB / 0.7427 GB, free: 58.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/1.162, allocations: 247.9 kB / 0.743 GB, free: 57.97 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/1.174, allocations: 6.987 MB / 0.7498 GB, free: 50.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008185/1.174, allocations: 73.7 kB / 0.7499 GB, free: 50.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0026/1.177, allocations: 4.773 MB / 0.7545 GB, free: 46.15 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001475/1.179, allocations: 1.184 MB / 0.7557 GB, free: 44.95 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004414/1.183, allocations: 1.911 MB / 0.7575 GB, free: 43.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.884e-05/1.183, allocations: 308.1 kB / 0.7578 GB, free: 42.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00502/1.188, allocations: 3.918 MB / 0.7617 GB, free: 38.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007193/1.195, allocations: 9.248 MB / 0.7707 GB, free: 26.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/1.209, allocations: 14.12 MB / 0.7845 GB, free: 10.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/1.209, allocations: 56 kB / 0.7845 GB, free: 10.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1222) (initialization): time 0.02791/1.237, allocations: 14.98 MB / 0.7992 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.237, allocations: 87.94 kB / 0.7992 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002314/1.238, allocations: 188.8 kB / 0.7994 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006178/1.244, allocations: 2.292 MB / 0.8017 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008195/1.252, allocations: 2.172 MB / 0.8038 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01847/1.27, allocations: 13.47 MB / 0.8169 GB, free: 8.652 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008156/1.279, allocations: 0.55 MB / 0.8175 GB, free: 8.102 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/1.28, allocations: 0.5468 MB / 0.818 GB, free: 7.555 MB / 0.5137 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 (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.005993/1.286, allocations: 3.226 MB / 0.8212 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/1.288, allocations: 0.5862 MB / 0.8217 GB, free: 3.719 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2386/1.526, allocations: 7.71 MB / 0.8293 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.694e-05/1.526, allocations: 33.03 kB / 0.8293 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.111e-05/1.526, allocations: 13.31 kB / 0.8293 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-05/1.527, allocations: 13.27 kB / 0.8293 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/1.554, allocations: 16.26 MB / 0.8452 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.72e-05/1.554, allocations: 7.875 kB / 0.8452 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002515/1.556, allocations: 0.521 MB / 0.8457 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004809/1.561, allocations: 2.035 MB / 0.8477 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00046/1.561, allocations: 54.16 kB / 0.8478 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01669/1.578, allocations: 12.66 MB / 0.8601 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/1.578, allocations: 14 kB / 0.8601 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/1.6, allocations: 12.23 MB / 0.8721 GB, free: 142.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003482/1.604, allocations: 1.186 MB / 0.8732 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001413/1.605, allocations: 57.06 kB / 0.8733 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003045/1.608, allocations: 221.4 kB / 0.8735 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006842/1.609, allocations: 197.1 kB / 0.8737 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002598/1.609, allocations: 83.75 kB / 0.8738 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007072/1.616, allocations: 4.476 MB / 0.8781 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.71e-07/1.616, allocations: 0 / 0.8781 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00871/1.625, allocations: 1.731 MB / 0.8798 GB, free: 140.7 MB / 0.5137 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 (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.0007257/1.626, allocations: 193.2 kB / 0.88 GB, free: 140.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01195/1.638, allocations: 9.451 MB / 0.8892 GB, free: 136 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.638, allocations: 2 kB / 0.8892 GB, free: 136 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005147/1.643, allocations: 3.711 MB / 0.8929 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004668/1.648, allocations: 0.7229 MB / 0.8936 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02509/1.673, allocations: 19.32 MB / 0.9124 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005042/1.678, allocations: 4.893 MB / 0.9172 GB, free: 107.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007101/1.685, allocations: 2.967 MB / 0.9201 GB, free: 104.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/1.687, allocations: 410.5 kB / 0.9205 GB, free: 104.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.192e-06/1.687, allocations: 0 / 0.9205 GB, free: 104.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1082/1.795, allocations: 68.77 MB / 0.9877 GB, free: 35.65 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches