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.001076/0.001075, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008054/0.0008057, allocations: 106.7 kB / 297.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.312/0.312, allocations: 44.82 MB / 394.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 8 kB / 467.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2944, allocations: 62.96 MB / 0.5184 GB, free: 37.65 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.4244, allocations: 109.9 MB / 0.6257 GB, free: 11.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.4247, allocations: 79.95 kB / 0.6258 GB, free: 11.31 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6071/1.032, allocations: 125.3 MB / 0.7482 GB, free: 91.19 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.915e-06/1.032, allocations: 0 / 0.7482 GB, free: 91.19 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005452/1.032, allocations: 128.8 kB / 0.7483 GB, free: 91.18 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.02221/1.055, allocations: 6.621 MB / 0.7548 GB, free: 86.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/1.055, allocations: 6.781 kB / 0.7548 GB, free: 86.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02309/1.078, allocations: 5.425 MB / 0.7601 GB, free: 83.84 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01339/1.091, allocations: 5.658 MB / 0.7656 GB, free: 79.47 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004247/1.092, allocations: 477 kB / 0.7661 GB, free: 79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002688/1.094, allocations: 0.6212 MB / 0.7667 GB, free: 78.38 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03175/1.126, allocations: 15.14 MB / 0.7815 GB, free: 61.76 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004217/1.127, allocations: 95.31 kB / 0.7815 GB, free: 61.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003405/1.13, allocations: 303.8 kB / 0.7818 GB, free: 61.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002018/1.132, allocations: 1.431 MB / 0.7832 GB, free: 59.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02364/1.156, allocations: 12.11 MB / 0.7951 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07371/1.229, allocations: 69.8 MB / 0.8632 GB, free: 7.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01473/1.244, allocations: 5.996 MB / 0.8691 GB, free: 1.777 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004755/1.249, allocations: 3.411 MB / 0.8724 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01488/1.264, allocations: 8.276 MB / 0.8805 GB, free: 5.902 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.775e-05/1.264, allocations: 60.16 kB / 0.8805 GB, free: 5.836 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=236): time 4.839e-06/1.264, allocations: 4 kB / 0.8806 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of matching and sorting (n=278): time 0.3066/1.571, allocations: 27.46 MB / 0.9074 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.855e-05/1.571, allocations: 239.2 kB / 0.9076 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01249/1.583, allocations: 6.683 MB / 0.9141 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005968/1.584, allocations: 66.17 kB / 0.9142 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003475/1.587, allocations: 4.576 MB / 0.9187 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001509/1.589, allocations: 1.063 MB / 0.9197 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005939/1.59, allocations: 169.4 kB / 0.9199 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005012/1.59, allocations: 0.6672 MB / 0.9205 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005255/1.595, allocations: 3.241 MB / 0.9237 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007815/1.603, allocations: 8.349 MB / 0.9318 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.617, allocations: 12.59 MB / 0.9441 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003298/1.617, allocations: 53.62 kB / 0.9442 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.02927/1.647, allocations: 12.77 MB / 0.9566 GB, free: 99.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003223/1.647, allocations: 86.14 kB / 0.9567 GB, free: 99.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004328/1.647, allocations: 184.6 kB / 0.9569 GB, free: 99.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00451/1.652, allocations: 1.673 MB / 0.9585 GB, free: 99.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007317/1.659, allocations: 1.983 MB / 0.9605 GB, free: 99.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.672, allocations: 11.37 MB / 0.9716 GB, free: 93.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009423/1.682, allocations: 0.4887 MB / 0.9721 GB, free: 93.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003424/1.685, allocations: 0.5076 MB / 0.9726 GB, free: 93.07 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.008777/1.694, allocations: 3.047 MB / 0.9755 GB, free: 90.71 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001815/1.696, allocations: 0.5668 MB / 0.9761 GB, free: 90.13 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/1.707, allocations: 6.131 MB / 0.9821 GB, free: 85.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.387e-05/1.707, allocations: 28.94 kB / 0.9821 GB, free: 85.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.9e-05/1.707, allocations: 12 kB / 0.9821 GB, free: 85.17 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.532e-05/1.707, allocations: 17.81 kB / 0.9821 GB, free: 85.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02989/1.737, allocations: 13.95 MB / 0.9958 GB, free: 73.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.43e-05/1.737, allocations: 7.938 kB / 0.9958 GB, free: 73.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00254/1.74, allocations: 0.4922 MB / 0.9962 GB, free: 73.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003584/1.744, allocations: 1.414 MB / 0.9976 GB, free: 72.56 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007374/1.744, allocations: 51.56 kB / 0.9977 GB, free: 72.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/1.757, allocations: 10.57 MB / 1.008 GB, free: 63.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/1.757, allocations: 4 kB / 1.008 GB, free: 63.09 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/1.772, allocations: 9.981 MB / 1.018 GB, free: 54.38 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002393/1.774, allocations: 0.6406 MB / 1.018 GB, free: 53.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002037/1.776, allocations: 48 kB / 1.018 GB, free: 53.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003835/1.78, allocations: 190.7 kB / 1.019 GB, free: 53.58 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007173/1.781, allocations: 170.1 kB / 1.019 GB, free: 53.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003121/1.781, allocations: 71.16 kB / 1.019 GB, free: 53.41 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009178/1.79, allocations: 4.273 MB / 1.023 GB, free: 49.65 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/1.79, allocations: 4 kB / 1.023 GB, free: 49.65 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01178/1.802, allocations: 1.553 MB / 1.025 GB, free: 48.1 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.001492/1.804, allocations: 197.8 kB / 1.025 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01371/1.817, allocations: 8.054 MB / 1.033 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/1.817, allocations: 192 / 1.033 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005336/1.823, allocations: 3.126 MB / 1.036 GB, free: 36.71 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01032/1.833, allocations: 0.7335 MB / 1.036 GB, free: 36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02602/1.859, allocations: 17.07 MB / 1.053 GB, free: 18.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008134/1.867, allocations: 4.626 MB / 1.058 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007433/1.875, allocations: 2.79 MB / 1.06 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/1.876, allocations: 390.9 kB / 1.061 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of SimCode: time 1.122e-06/1.876, allocations: 0 / 1.061 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of Templates: time 0.4234/2.3, allocations: 60.49 MB / 1.12 GB, free: 125.4 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/jenkins1/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