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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.00108/0.001081, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008527/0.0008528, allocations: 94.55 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2949/0.2949, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002846, allocations: 8 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3248, allocations: 63.23 MB / 0.5192 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.4586, allocations: 109.9 MB / 0.6265 GB, free: 11.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.4589, allocations: 87.94 kB / 0.6266 GB, free: 11.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5107/0.9696, allocations: 128.3 MB / 0.7519 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.475e-06/0.9697, allocations: 0 / 0.7519 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004246/0.9701, allocations: 130.5 kB / 0.752 GB, free: 95.52 MB / 0.4948 GB 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.02257/0.9927, allocations: 6.949 MB / 0.7588 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.9928, allocations: 9.719 kB / 0.7588 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02586/1.019, allocations: 7.065 MB / 0.7657 GB, free: 91.41 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01893/1.038, allocations: 6.347 MB / 0.7719 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005853/1.038, allocations: 475.5 kB / 0.7724 GB, free: 88.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00364/1.042, allocations: 0.6291 MB / 0.773 GB, free: 88.59 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03243/1.074, allocations: 15.28 MB / 0.7879 GB, free: 80.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004147/1.075, allocations: 87.61 kB / 0.788 GB, free: 80.12 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002607/1.077, allocations: 306.5 kB / 0.7883 GB, free: 79.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001906/1.079, allocations: 1.429 MB / 0.7897 GB, free: 79.47 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02456/1.104, allocations: 12.29 MB / 0.8017 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0706/1.175, allocations: 69.89 MB / 0.8699 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01482/1.189, allocations: 6.15 MB / 0.8759 GB, free: 9.133 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/1.204, allocations: 8.325 MB / 0.8841 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/1.204, allocations: 64.16 kB / 0.8841 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 5.511e-06/1.204, allocations: 0 / 0.8841 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.3396/1.544, allocations: 28.22 MB / 0.9117 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/1.544, allocations: 240.8 kB / 0.9119 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009792/1.554, allocations: 5.965 MB / 0.9177 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007371/1.555, allocations: 65.8 kB / 0.9178 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003155/1.558, allocations: 4.577 MB / 0.9223 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00152/1.559, allocations: 1.068 MB / 0.9233 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006162/1.56, allocations: 166.3 kB / 0.9235 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003847/1.56, allocations: 0.6707 MB / 0.9241 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004429/1.565, allocations: 3.242 MB / 0.9273 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007347/1.572, allocations: 8.308 MB / 0.9354 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007994/1.58, allocations: 5.079 MB / 0.9404 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002506/1.58, allocations: 51.5 kB / 0.9404 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.02986/1.61, allocations: 12.77 MB / 0.9529 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003552/1.611, allocations: 83.89 kB / 0.953 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004728/1.611, allocations: 179.9 kB / 0.9531 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004734/1.616, allocations: 1.696 MB / 0.9548 GB, free: 96.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00818/1.624, allocations: 1.992 MB / 0.9567 GB, free: 96.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01293/1.637, allocations: 11.67 MB / 0.9681 GB, free: 90.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008289/1.645, allocations: 0.4917 MB / 0.9686 GB, free: 90.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/1.647, allocations: 0.5091 MB / 0.9691 GB, free: 90.13 MB / 0.5261 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.008624/1.656, allocations: 3.052 MB / 0.9721 GB, free: 88.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00185/1.658, allocations: 0.5621 MB / 0.9726 GB, free: 88.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/1.669, allocations: 6.12 MB / 0.9786 GB, free: 86.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.687e-05/1.669, allocations: 28.69 kB / 0.9786 GB, free: 86.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-05/1.669, allocations: 10.16 kB / 0.9786 GB, free: 86.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-05/1.669, allocations: 18.33 kB / 0.9787 GB, free: 86.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02854/1.698, allocations: 13.95 MB / 0.9923 GB, free: 81.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-05/1.698, allocations: 6.891 kB / 0.9923 GB, free: 81.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002348/1.7, allocations: 0.4983 MB / 0.9928 GB, free: 81.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003393/1.703, allocations: 1.409 MB / 0.9942 GB, free: 80.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004056/1.704, allocations: 54.62 kB / 0.9942 GB, free: 80.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01162/1.716, allocations: 10.86 MB / 1.005 GB, free: 75.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.716, allocations: 15.7 kB / 1.005 GB, free: 75.05 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0143/1.73, allocations: 10.81 MB / 1.015 GB, free: 66.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/1.732, allocations: 0.6383 MB / 1.016 GB, free: 66 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002051/1.734, allocations: 50.67 kB / 1.016 GB, free: 65.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003855/1.738, allocations: 182.4 kB / 1.016 GB, free: 65.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006756/1.739, allocations: 177.2 kB / 1.016 GB, free: 65.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003538/1.739, allocations: 80.55 kB / 1.016 GB, free: 65.65 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009053/1.748, allocations: 4.27 MB / 1.021 GB, free: 62.15 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.71e-07/1.748, allocations: 3.938 kB / 1.021 GB, free: 62.15 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01099/1.759, allocations: 1.546 MB / 1.022 GB, free: 60.61 MB / 0.5261 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.001072/1.761, allocations: 207 kB / 1.022 GB, free: 60.42 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01256/1.773, allocations: 8.052 MB / 1.03 GB, free: 53.33 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/1.773, allocations: 0 / 1.03 GB, free: 53.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005201/1.778, allocations: 3.131 MB / 1.033 GB, free: 50.61 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005266/1.784, allocations: 0.6861 MB / 1.034 GB, free: 50.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03073/1.814, allocations: 17.01 MB / 1.051 GB, free: 34.44 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008475/1.823, allocations: 4.757 MB / 1.055 GB, free: 30.93 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007873/1.831, allocations: 2.792 MB / 1.058 GB, free: 29.14 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/1.833, allocations: 385.8 kB / 1.058 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of SimCode: time 8.11e-07/1.833, allocations: 0 / 1.058 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of Templates: time 0.4034/2.236, allocations: 60.3 MB / 1.117 GB, free: 113 MB / 0.5417 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches