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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 98.84 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001335, allocations: 192 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.7 MB / 246.4 MB, free: 11.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2309/0.2309, allocations: 46.18 MB / 344.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002645, allocations: 8.219 kB / 418.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1415, allocations: 63.57 MB / 482.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3194/0.461, allocations: 73.87 MB / 0.5432 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04116/0.5022, allocations: 14.95 MB / 0.5578 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02195/0.5242, allocations: 351.6 kB / 0.5582 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.5381, allocations: 3.898 MB / 0.562 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03825/0.5764, allocations: 11.23 MB / 0.5729 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006454/0.5828, allocations: 0.8504 MB / 0.5738 GB, free: 9.344 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0832/0.6661, allocations: 62.99 MB / 0.6353 GB, free: 10.27 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01249/0.6786, allocations: 7.256 MB / 0.6424 GB, free: 2.93 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004878/0.6835, allocations: 1.888 MB / 0.6442 GB, free: 1.035 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005617/0.6892, allocations: 2.917 MB / 0.6471 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001913/0.6911, allocations: 204 kB / 0.6473 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004069/0.6952, allocations: 0.9909 MB / 0.6482 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004875/0.7002, allocations: 2.587 MB / 0.6507 GB, free: 10.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003116/0.7033, allocations: 1.209 MB / 0.6519 GB, free: 9.105 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01175/0.7151, allocations: 7.969 MB / 0.6597 GB, free: 1.117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.7151, allocations: 0 / 0.6597 GB, free: 1.117 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7151, allocations: 0 / 0.6597 GB, free: 1.117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0004468/0.7156, allocations: 0 / 0.6597 GB, free: 1.117 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01669/0.7323, allocations: 6.161 MB / 0.6657 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.7324, allocations: 8.031 kB / 0.6657 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01231/0.7447, allocations: 2.78 MB / 0.6685 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01052/0.7553, allocations: 4.109 MB / 0.6725 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004017/0.7557, allocations: 361.2 kB / 0.6728 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00232/0.758, allocations: 475.7 kB / 0.6733 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03437/0.7924, allocations: 14.22 MB / 0.6872 GB, free: 3.82 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004706/0.793, allocations: 75.3 kB / 0.6872 GB, free: 3.746 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002366/0.7953, allocations: 231.8 kB / 0.6874 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005151/0.8005, allocations: 2.699 MB / 0.6901 GB, free: 0.8164 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02767/0.8282, allocations: 11.99 MB / 0.7018 GB, free: 4.797 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3279/1.156, allocations: 57.58 MB / 0.758 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/1.169, allocations: 6.276 MB / 0.7642 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003483/1.172, allocations: 3.703 MB / 0.7678 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009962/1.182, allocations: 8.51 MB / 0.7761 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/1.182, allocations: 62.77 kB / 0.7761 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 3.978e-06/1.182, allocations: 0 / 0.7761 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.06307/1.245, allocations: 30.25 MB / 0.8057 GB, free: 99.86 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/1.245, allocations: 247.5 kB / 0.8059 GB, free: 99.56 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007286/1.253, allocations: 6.65 MB / 0.8124 GB, free: 92.91 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005128/1.253, allocations: 67.03 kB / 0.8125 GB, free: 92.84 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001995/1.255, allocations: 4.414 MB / 0.8168 GB, free: 88.44 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009692/1.256, allocations: 1.069 MB / 0.8178 GB, free: 87.38 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003788/1.257, allocations: 168.9 kB / 0.818 GB, free: 87.21 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003034/1.257, allocations: 0.6778 MB / 0.8186 GB, free: 86.52 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004125/1.261, allocations: 3.538 MB / 0.8221 GB, free: 82.98 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005895/1.267, allocations: 8.613 MB / 0.8305 GB, free: 71.86 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006259/1.273, allocations: 5.373 MB / 0.8358 GB, free: 66.49 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/1.273, allocations: 48 kB / 0.8358 GB, free: 66.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.02131/1.295, allocations: 13.94 MB / 0.8494 GB, free: 52.49 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001905/1.295, allocations: 80 kB / 0.8495 GB, free: 52.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002987/1.295, allocations: 176.6 kB / 0.8497 GB, free: 52.24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00515/1.3, allocations: 2.308 MB / 0.8519 GB, free: 49.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007124/1.308, allocations: 2.012 MB / 0.8539 GB, free: 47.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01453/1.322, allocations: 13.41 MB / 0.867 GB, free: 34.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00717/1.329, allocations: 0.5032 MB / 0.8675 GB, free: 33.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/1.331, allocations: 0.5167 MB / 0.868 GB, free: 33.22 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.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 (1058): * Single equations (assignments): 1051 * Array equations: 5 * 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.00623/1.337, allocations: 2.993 MB / 0.8709 GB, free: 30.21 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.339, allocations: 0.5522 MB / 0.8714 GB, free: 29.65 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/1.351, allocations: 7.063 MB / 0.8783 GB, free: 22.57 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.185e-05/1.351, allocations: 29.17 kB / 0.8784 GB, free: 22.54 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.827e-05/1.351, allocations: 15.95 kB / 0.8784 GB, free: 22.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.853e-05/1.351, allocations: 11.95 kB / 0.8784 GB, free: 22.51 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02386/1.375, allocations: 14.88 MB / 0.8929 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-05/1.375, allocations: 4 kB / 0.8929 GB, free: 7.566 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/1.377, allocations: 467.3 kB / 0.8934 GB, free: 7.109 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004348/1.381, allocations: 2.03 MB / 0.8954 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003323/1.382, allocations: 50.89 kB / 0.8954 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01637/1.398, allocations: 12.67 MB / 0.9078 GB, free: 8.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/1.398, allocations: 4 kB / 0.9078 GB, free: 8.086 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2662/1.664, allocations: 11.19 MB / 0.9187 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/1.666, allocations: 0.6403 MB / 0.9193 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001846/1.668, allocations: 54.23 kB / 0.9194 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003468/1.671, allocations: 196.9 kB / 0.9196 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00079/1.672, allocations: 175.6 kB / 0.9197 GB, free: 182.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003898/1.673, allocations: 77.09 kB / 0.9198 GB, free: 182.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008287/1.681, allocations: 4.245 MB / 0.924 GB, free: 181.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.91e-07/1.681, allocations: 0 / 0.924 GB, free: 181.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008531/1.689, allocations: 1.579 MB / 0.9255 GB, free: 181.4 MB / 0.545 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.001/1.69, allocations: 189.1 kB / 0.9257 GB, free: 181.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0152/1.706, allocations: 8.623 MB / 0.9341 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.706, allocations: 5.375 kB / 0.9341 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006105/1.712, allocations: 3.415 MB / 0.9374 GB, free: 177 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007082/1.719, allocations: 0.6917 MB / 0.9381 GB, free: 176.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/1.746, allocations: 17.12 MB / 0.9548 GB, free: 167.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005964/1.752, allocations: 4.54 MB / 0.9593 GB, free: 164 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007244/1.76, allocations: 2.765 MB / 0.962 GB, free: 162.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001789/1.761, allocations: 382.8 kB / 0.9623 GB, free: 161.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.232e-06/1.761, allocations: 0 / 0.9623 GB, free: 161.8 MB / 0.545 GB Notification: Performance of Templates: time 0.1012/1.863, allocations: 62.07 MB / 1.023 GB, free: 100.5 MB / 0.545 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches