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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 223.2 MB / 241 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007852/0.0007852, allocations: 95.23 kB / 292.1 MB, free: 10.7 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2923/0.2923, allocations: 44.21 MB / 387.5 MB, free: 38.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003755, allocations: 8 kB / 459.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3399, allocations: 61.9 MB / 0.5096 GB, free: 37.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.4662, allocations: 109 MB / 0.616 GB, free: 2.094 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.4665, allocations: 79.97 kB / 0.6161 GB, free: 2.016 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5493/1.016, allocations: 125.9 MB / 0.739 GB, free: 91.04 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.016, allocations: 0 / 0.739 GB, free: 91.04 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000407/1.016, allocations: 129.6 kB / 0.7391 GB, free: 91.04 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02534/1.042, allocations: 6.853 MB / 0.7458 GB, free: 87.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.042, allocations: 11.66 kB / 0.7458 GB, free: 87.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02857/1.07, allocations: 7.063 MB / 0.7527 GB, free: 86.33 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02263/1.093, allocations: 6.99 MB / 0.7595 GB, free: 82.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005827/1.094, allocations: 486.2 kB / 0.76 GB, free: 82.12 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004235/1.098, allocations: 0.6203 MB / 0.7606 GB, free: 81.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03703/1.135, allocations: 15.27 MB / 0.7755 GB, free: 68.76 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005477/1.135, allocations: 91.12 kB / 0.7756 GB, free: 68.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003683/1.139, allocations: 307.8 kB / 0.7759 GB, free: 68.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002158/1.141, allocations: 1.424 MB / 0.7773 GB, free: 66.94 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02605/1.167, allocations: 12.29 MB / 0.7893 GB, free: 54.61 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0805/1.248, allocations: 69.89 MB / 0.8575 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01573/1.264, allocations: 6.145 MB / 0.8636 GB, free: 8.363 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2976/1.561, allocations: 8.315 MB / 0.8717 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.091e-05/1.562, allocations: 60.34 kB / 0.8717 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 7.705e-06/1.562, allocations: 0 / 0.8717 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.07375/1.635, allocations: 28.24 MB / 0.8993 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.514e-05/1.635, allocations: 239.2 kB / 0.8995 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01374/1.649, allocations: 5.965 MB / 0.9054 GB, free: 108 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007482/1.65, allocations: 71.47 kB / 0.9054 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004507/1.655, allocations: 4.575 MB / 0.9099 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001797/1.656, allocations: 1.065 MB / 0.9109 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/1.658, allocations: 166.3 kB / 0.9111 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008799/1.659, allocations: 0.6696 MB / 0.9117 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006065/1.665, allocations: 3.241 MB / 0.9149 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007905/1.673, allocations: 8.31 MB / 0.923 GB, free: 95.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007178/1.68, allocations: 5.077 MB / 0.928 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001905/1.68, allocations: 50.81 kB / 0.928 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.02407/1.704, allocations: 12.77 MB / 0.9405 GB, free: 89.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002476/1.704, allocations: 90.45 kB / 0.9406 GB, free: 89.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003112/1.705, allocations: 181.4 kB / 0.9408 GB, free: 89.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00396/1.709, allocations: 1.698 MB / 0.9424 GB, free: 88.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006717/1.715, allocations: 1.983 MB / 0.9444 GB, free: 88.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.728, allocations: 11.67 MB / 0.9557 GB, free: 82.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007722/1.735, allocations: 0.4886 MB / 0.9562 GB, free: 82.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001624/1.737, allocations: 0.5123 MB / 0.9567 GB, free: 82.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 67 (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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1031): * Single equations (assignments): 1026 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007655/1.745, allocations: 3.046 MB / 0.9597 GB, free: 80.72 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00214/1.747, allocations: 0.5641 MB / 0.9603 GB, free: 80.41 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.758, allocations: 6.131 MB / 0.9662 GB, free: 76.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.7e-05/1.758, allocations: 30.89 kB / 0.9663 GB, free: 76.39 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.847e-05/1.758, allocations: 8 kB / 0.9663 GB, free: 76.38 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.019e-05/1.758, allocations: 23.73 kB / 0.9663 GB, free: 76.37 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02897/1.787, allocations: 13.96 MB / 0.9799 GB, free: 65.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/1.787, allocations: 4 kB / 0.9799 GB, free: 65.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002375/1.789, allocations: 0.4893 MB / 0.9804 GB, free: 64.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003273/1.793, allocations: 1.42 MB / 0.9818 GB, free: 63.77 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003766/1.793, allocations: 53.88 kB / 0.9819 GB, free: 63.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/1.805, allocations: 10.86 MB / 0.9925 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.805, allocations: 7.938 kB / 0.9925 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/1.82, allocations: 10.81 MB / 1.003 GB, free: 44.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002925/1.823, allocations: 0.6339 MB / 1.004 GB, free: 43.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002115/1.826, allocations: 51.84 kB / 1.004 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003723/1.829, allocations: 189 kB / 1.004 GB, free: 43.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006256/1.83, allocations: 175.1 kB / 1.004 GB, free: 43.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000306/1.83, allocations: 76.39 kB / 1.004 GB, free: 43.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008808/1.839, allocations: 4.272 MB / 1.008 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.01e-07/1.839, allocations: 0 / 1.008 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01198/1.851, allocations: 1.548 MB / 1.01 GB, free: 38.39 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 (220): * Single equations (assignments): 215 * 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.001115/1.852, allocations: 197.3 kB / 1.01 GB, free: 38.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01266/1.865, allocations: 8.045 MB / 1.018 GB, free: 30.86 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/1.865, allocations: 0 / 1.018 GB, free: 30.86 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00487/1.87, allocations: 3.137 MB / 1.021 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005243/1.875, allocations: 0.6973 MB / 1.022 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/1.905, allocations: 17 MB / 1.038 GB, free: 9.992 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009087/1.914, allocations: 4.765 MB / 1.043 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008753/1.923, allocations: 2.787 MB / 1.046 GB, free: 2.453 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002072/1.925, allocations: 387.4 kB / 1.046 GB, free: 2.074 MB / 0.5105 GB Notification: Performance of SimCode: time 1.273e-06/1.925, allocations: 0 / 1.046 GB, free: 2.074 MB / 0.5105 GB Notification: Performance of Templates: time 0.4321/2.357, allocations: 60.31 MB / 1.105 GB, free: 127.4 MB / 0.5417 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches