Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001344/0.001345, allocations: 113.8 kB / 17.78 MB, free: 5.258 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.001288/0.001288, allocations: 183.9 kB / 18.71 MB, free: 4.332 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.344/1.344, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2067/0.2067, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 55.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3367, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01672/0.3535, allocations: 15.74 MB / 0.5343 GB, free: 8.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.3659, allocations: 4.95 MB / 0.5391 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004426/0.3703, allocations: 107 kB / 0.5392 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009022/0.3794, allocations: 5.021 MB / 0.5441 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006738/0.3862, allocations: 2.55 MB / 0.5466 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002628/0.3889, allocations: 1.073 MB / 0.5477 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.4005, allocations: 6.848 MB / 0.5543 GB, free: 7.691 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009038/0.4096, allocations: 5.794 MB / 0.56 GB, free: 1.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005652/0.4153, allocations: 2.418 MB / 0.5624 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005587/0.4209, allocations: 3.244 MB / 0.5655 GB, free: 12.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001901/0.4228, allocations: 0.5078 MB / 0.566 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003659/0.4265, allocations: 1.412 MB / 0.5674 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003842/0.4304, allocations: 3.047 MB / 0.5704 GB, free: 7.164 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006224/0.4366, allocations: 3.426 MB / 0.5737 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01612/0.4528, allocations: 10.65 MB / 0.5841 GB, free: 9.023 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.4528, allocations: 0 / 0.5841 GB, free: 9.023 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4528, allocations: 0 / 0.5841 GB, free: 9.023 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003248/0.4531, allocations: 0 / 0.5841 GB, free: 9.023 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01749/0.4706, allocations: 7.71 MB / 0.5917 GB, free: 1.215 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.4707, allocations: 8.031 kB / 0.5917 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01218/0.4829, allocations: 2.801 MB / 0.5944 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008932/0.4919, allocations: 4.396 MB / 0.5987 GB, free: 9.918 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002637/0.4922, allocations: 353.7 kB / 0.599 GB, free: 9.57 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001365/0.4936, allocations: 495.7 kB / 0.5995 GB, free: 9.086 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/0.5204, allocations: 14.63 MB / 0.6138 GB, free: 9.441 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000208/0.5207, allocations: 63.5 kB / 0.6139 GB, free: 9.379 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007262/0.5215, allocations: 235.8 kB / 0.6141 GB, free: 9.148 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00498/0.5264, allocations: 2.828 MB / 0.6168 GB, free: 6.312 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02373/0.5502, allocations: 12.35 MB / 0.6289 GB, free: 9.934 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07379/0.624, allocations: 58.26 MB / 0.6858 GB, free: 14.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/0.6389, allocations: 6.283 MB / 0.6919 GB, free: 7.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004959/0.6439, allocations: 3.707 MB / 0.6955 GB, free: 4.023 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0144/0.6583, allocations: 8.58 MB / 0.7039 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.56e-05/0.6584, allocations: 60.2 kB / 0.704 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 5.35e-06/0.6584, allocations: 8 kB / 0.704 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3341/0.9925, allocations: 30.87 MB / 0.7341 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.9926, allocations: 238.2 kB / 0.7344 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008116/1.001, allocations: 6.769 MB / 0.741 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005813/1.001, allocations: 80.17 kB / 0.741 GB, free: 158.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002366/1.004, allocations: 4.664 MB / 0.7456 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.005, allocations: 1.115 MB / 0.7467 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00206/1.007, allocations: 1.816 MB / 0.7485 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.832e-05/1.007, allocations: 305.1 kB / 0.7488 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/1.011, allocations: 3.587 MB / 0.7523 GB, free: 152 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005326/1.016, allocations: 8.675 MB / 0.7607 GB, free: 142 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01032/1.027, allocations: 13.19 MB / 0.7736 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.027, allocations: 52 kB / 0.7737 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02119/1.048, allocations: 14.09 MB / 0.7874 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.389e-05/1.048, allocations: 80 kB / 0.7875 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/1.048, allocations: 180 kB / 0.7877 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004957/1.053, allocations: 2.296 MB / 0.7899 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005987/1.059, allocations: 2.008 MB / 0.7919 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/1.073, allocations: 14.35 MB / 0.8059 GB, free: 92.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008933/1.082, allocations: 0.4994 MB / 0.8064 GB, free: 92.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00192/1.084, allocations: 0.5232 MB / 0.8069 GB, free: 91.91 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.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 (1064): * Single equations (assignments): 1057 * 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.005934/1.09, allocations: 3.042 MB / 0.8099 GB, free: 88.85 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/1.092, allocations: 0.5898 MB / 0.8104 GB, free: 88.26 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/1.102, allocations: 7.084 MB / 0.8174 GB, free: 81.15 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.979e-05/1.103, allocations: 28 kB / 0.8174 GB, free: 81.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/1.103, allocations: 8 kB / 0.8174 GB, free: 81.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-05/1.103, allocations: 15.95 kB / 0.8174 GB, free: 81.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02243/1.125, allocations: 14.81 MB / 0.8319 GB, free: 66.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.125, allocations: 4 kB / 0.8319 GB, free: 66.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002135/1.127, allocations: 459.3 kB / 0.8323 GB, free: 65.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004758/1.132, allocations: 2.041 MB / 0.8343 GB, free: 63.74 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003619/1.132, allocations: 48 kB / 0.8343 GB, free: 63.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01414/1.147, allocations: 13.72 MB / 0.8477 GB, free: 49.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.147, allocations: 8.562 kB / 0.8478 GB, free: 49.69 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01589/1.162, allocations: 11.28 MB / 0.8588 GB, free: 38.27 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/1.165, allocations: 0.661 MB / 0.8594 GB, free: 37.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/1.166, allocations: 55.94 kB / 0.8595 GB, free: 37.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00334/1.169, allocations: 195.7 kB / 0.8597 GB, free: 37.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007128/1.17, allocations: 173.6 kB / 0.8598 GB, free: 37.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002242/1.17, allocations: 79.98 kB / 0.8599 GB, free: 37.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005915/1.176, allocations: 4.317 MB / 0.8641 GB, free: 32.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.81e-07/1.176, allocations: 0 / 0.8641 GB, free: 32.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008513/1.185, allocations: 1.617 MB / 0.8657 GB, free: 31.17 MB / 0.5606 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.0005416/1.185, allocations: 198.7 kB / 0.8659 GB, free: 30.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01008/1.195, allocations: 8.737 MB / 0.8744 GB, free: 22.23 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/1.196, allocations: 0 / 0.8744 GB, free: 22.23 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004616/1.2, allocations: 3.422 MB / 0.8778 GB, free: 18.79 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00452/1.205, allocations: 0.7339 MB / 0.8785 GB, free: 18.06 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02027/1.225, allocations: 15.21 MB / 0.8933 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005001/1.23, allocations: 4.624 MB / 0.8978 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006222/1.236, allocations: 2.771 MB / 0.9005 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/1.238, allocations: 387.4 kB / 0.9009 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of SimCode: time 7.52e-07/1.238, allocations: 0 / 0.9009 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of Templates: time 0.3642/1.602, allocations: 62.75 MB / 0.9622 GB, free: 191.9 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches