Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques") translateModel(ModelicaTest.MultiBody.Forces.WorldTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 196.5 kB / 15.79 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007707/0.0007706, allocations: 94.84 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1761/0.1761, allocations: 44.84 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1022, allocations: 62.95 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.2666/0.3689, allocations: 90.53 MB / 0.6037 GB, free: 2.926 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03898/0.4079, allocations: 18.27 MB / 0.6216 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01721/0.4252, allocations: 430.9 kB / 0.622 GB, free: 184 kB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0164/0.4416, allocations: 4.81 MB / 0.6267 GB, free: 11.35 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03563/0.4773, allocations: 13.89 MB / 0.6402 GB, free: 13.41 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00519/0.4825, allocations: 1.022 MB / 0.6412 GB, free: 12.39 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.3289/0.8114, allocations: 91.8 MB / 0.7309 GB, free: 75.61 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008297/0.8198, allocations: 7.289 MB / 0.738 GB, free: 74.96 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00323/0.823, allocations: 2.025 MB / 0.74 GB, free: 74.96 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004084/0.8271, allocations: 3.211 MB / 0.7431 GB, free: 74.95 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0006674/0.8278, allocations: 222.6 kB / 0.7433 GB, free: 74.95 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001985/0.8298, allocations: 1.105 MB / 0.7444 GB, free: 74.95 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.00192/0.8317, allocations: 2.819 MB / 0.7472 GB, free: 74.95 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.8328, allocations: 1.296 MB / 0.7484 GB, free: 74.91 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.005937/0.8388, allocations: 8.651 MB / 0.7569 GB, free: 71.54 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.8388, allocations: 0 / 0.7569 GB, free: 71.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.605e-06/0.8388, allocations: 3.984 kB / 0.7569 GB, free: 71.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000189/0.839, allocations: 0 / 0.7569 GB, free: 71.54 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.01107/0.8501, allocations: 6.448 MB / 0.7632 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.8502, allocations: 8.031 kB / 0.7632 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01277/0.8629, allocations: 3.225 MB / 0.7663 GB, free: 64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008477/0.8714, allocations: 4.697 MB / 0.7709 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.8716, allocations: 381 kB / 0.7713 GB, free: 60.34 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009384/0.8726, allocations: 0.4898 MB / 0.7718 GB, free: 60.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02067/0.8933, allocations: 14.85 MB / 0.7863 GB, free: 48.31 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001832/0.8935, allocations: 77.23 kB / 0.7863 GB, free: 48.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005595/0.894, allocations: 241.2 kB / 0.7866 GB, free: 48.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003568/0.8976, allocations: 2.721 MB / 0.7892 GB, free: 45.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02026/0.9179, allocations: 12.29 MB / 0.8012 GB, free: 37.36 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05454/0.9725, allocations: 57.4 MB / 0.8573 GB, free: 4.969 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.9838, allocations: 4.653 MB / 0.8618 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003465/0.9873, allocations: 2.901 MB / 0.8647 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001418/0.9875, allocations: 44.05 kB / 0.8647 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/0.9875, allocations: 59.39 kB / 0.8648 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=186): time 4.438e-06/0.9875, allocations: 0 / 0.8648 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=204): time 0.06173/1.049, allocations: 23.28 MB / 0.8875 GB, free: 11.15 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/1.049, allocations: 248.8 kB / 0.8877 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01139/1.061, allocations: 6.696 MB / 0.8943 GB, free: 4.172 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005002/1.061, allocations: 57.7 kB / 0.8943 GB, free: 4.109 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003793/1.065, allocations: 4.609 MB / 0.8988 GB, free: 15.53 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001174/1.066, allocations: 0.824 MB / 0.8996 GB, free: 14.71 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007647/1.067, allocations: 164 kB / 0.8998 GB, free: 14.55 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006338/1.068, allocations: 0.6452 MB / 0.9004 GB, free: 13.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004858/1.073, allocations: 2.881 MB / 0.9032 GB, free: 11.01 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008642/1.081, allocations: 7.837 MB / 0.9109 GB, free: 0.7773 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008014/1.089, allocations: 4.613 MB / 0.9154 GB, free: 12.32 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001627/1.09, allocations: 48 kB / 0.9154 GB, free: 12.27 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1062) (initialization): time 0.02183/1.111, allocations: 11.94 MB / 0.9271 GB, free: 1.367 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001688/1.112, allocations: 83.98 kB / 0.9272 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002494/1.112, allocations: 172 kB / 0.9274 GB, free: 1.117 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004503/1.116, allocations: 1.814 MB / 0.9291 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005893/1.122, allocations: 1.865 MB / 0.9309 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01372/1.136, allocations: 11.72 MB / 0.9424 GB, free: 1.582 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006577/1.143, allocations: 471.4 kB / 0.9428 GB, free: 1.121 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0015/1.144, allocations: 492 kB / 0.9433 GB, free: 0.6406 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (996): * Single equations (assignments): 990 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 13,(2,100.0%) 13,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2029/1.347, allocations: 3.051 MB / 0.9463 GB, free: 238.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.348, allocations: 0.539 MB / 0.9468 GB, free: 238.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009121/1.357, allocations: 4.871 MB / 0.9516 GB, free: 238.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.193e-05/1.357, allocations: 22 kB / 0.9516 GB, free: 238.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.804e-05/1.357, allocations: 8.906 kB / 0.9516 GB, free: 238.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.021e-05/1.358, allocations: 12.72 kB / 0.9516 GB, free: 238.2 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02029/1.378, allocations: 11.26 MB / 0.9626 GB, free: 234.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/1.378, allocations: 3.688 kB / 0.9626 GB, free: 234.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/1.379, allocations: 324.2 kB / 0.9629 GB, free: 234.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003771/1.383, allocations: 1.5 MB / 0.9644 GB, free: 234 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/1.383, allocations: 32.44 kB / 0.9644 GB, free: 234 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/1.394, allocations: 10.83 MB / 0.975 GB, free: 227.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.394, allocations: 0 / 0.975 GB, free: 227.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/1.405, allocations: 7.958 MB / 0.9828 GB, free: 224.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001611/1.406, allocations: 0.6171 MB / 0.9834 GB, free: 224.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001124/1.407, allocations: 39.52 kB / 0.9834 GB, free: 224.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0024/1.41, allocations: 153.8 kB / 0.9836 GB, free: 224.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003246/1.41, allocations: 125.9 kB / 0.9837 GB, free: 224.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/1.41, allocations: 52.58 kB / 0.9837 GB, free: 224.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.006763/1.417, allocations: 4.252 MB / 0.9879 GB, free: 223.1 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.6e-07/1.417, allocations: 0 / 0.9879 GB, free: 223.1 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0073/1.424, allocations: 1.498 MB / 0.9893 GB, free: 222.9 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (153): * Single equations (assignments): 147 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005894/1.425, allocations: 161.5 kB / 0.9895 GB, free: 222.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01115/1.436, allocations: 7.124 MB / 0.9965 GB, free: 220.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.436, allocations: 0 / 0.9965 GB, free: 220.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002879/1.439, allocations: 2.291 MB / 0.9987 GB, free: 219.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004982/1.444, allocations: 0.7474 MB / 0.9994 GB, free: 218.9 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/1.467, allocations: 16.89 MB / 1.016 GB, free: 202.9 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005505/1.473, allocations: 4.618 MB / 1.02 GB, free: 198.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/1.474, allocations: 403.4 kB / 1.021 GB, free: 197.9 MB / 0.6042 GB Notification: Performance of SimCode: time 8.61e-07/1.474, allocations: 4 kB / 1.021 GB, free: 197.9 MB / 0.6042 GB Notification: Performance of Templates: time 0.1483/1.622, allocations: 168.7 MB / 1.186 GB, free: 29.07 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldTorques/WorldTorques.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches