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.001071/0.001076, allocations: 191.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.5 MB / 243.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008129/0.0008127, allocations: 112.2 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3206/0.3206, allocations: 44.81 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002672, allocations: 11.98 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3276, allocations: 62.95 MB / 0.5159 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.07301/0.4006, allocations: 90.56 MB / 0.6043 GB, free: 14.52 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04655/0.4472, allocations: 18.25 MB / 0.6221 GB, free: 12.4 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01864/0.4659, allocations: 427 kB / 0.6225 GB, free: 11.98 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01516/0.4811, allocations: 4.813 MB / 0.6272 GB, free: 7.148 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03867/0.5199, allocations: 13.93 MB / 0.6408 GB, free: 9.168 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006406/0.5263, allocations: 1.069 MB / 0.6419 GB, free: 8.098 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.3622/0.8885, allocations: 91.86 MB / 0.7316 GB, free: 30.74 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009315/0.8978, allocations: 7.824 MB / 0.7392 GB, free: 25.11 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003801/0.9017, allocations: 2.012 MB / 0.7412 GB, free: 23.76 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004704/0.9064, allocations: 3.214 MB / 0.7443 GB, free: 21.47 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.9078, allocations: 220 kB / 0.7445 GB, free: 21.25 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003097/0.9109, allocations: 1.299 MB / 0.7458 GB, free: 20.25 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003053/0.914, allocations: 2.814 MB / 0.7486 GB, free: 18.19 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004908/0.9189, allocations: 2.966 MB / 0.7515 GB, free: 17.15 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008759/0.9277, allocations: 8.651 MB / 0.7599 GB, free: 9.648 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.9278, allocations: 4 kB / 0.7599 GB, free: 9.645 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.9278, allocations: 0 / 0.7599 GB, free: 9.645 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00046/0.9283, allocations: 0 / 0.7599 GB, free: 9.645 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.01542/0.9437, allocations: 6.375 MB / 0.7661 GB, free: 3.758 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.9437, allocations: 8.031 kB / 0.7661 GB, free: 3.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01442/0.9582, allocations: 3.222 MB / 0.7693 GB, free: 0.6523 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01128/0.9695, allocations: 4.797 MB / 0.774 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003435/0.9699, allocations: 372.6 kB / 0.7743 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002029/0.9719, allocations: 0.4928 MB / 0.7748 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03233/1.004, allocations: 14.86 MB / 0.7893 GB, free: 0.8555 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003348/1.005, allocations: 72.48 kB / 0.7894 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001698/1.006, allocations: 234.5 kB / 0.7896 GB, free: 0.7461 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004906/1.011, allocations: 2.723 MB / 0.7923 GB, free: 14.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02478/1.036, allocations: 12.28 MB / 0.8043 GB, free: 5.91 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08345/1.12, allocations: 57.44 MB / 0.8604 GB, free: 5.473 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01248/1.132, allocations: 4.659 MB / 0.8649 GB, free: 1.707 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004545/1.137, allocations: 2.893 MB / 0.8677 GB, free: 15.98 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002294/1.137, allocations: 46.34 kB / 0.8678 GB, free: 15.96 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.475e-05/1.137, allocations: 57.78 kB / 0.8678 GB, free: 15.91 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 6.021e-06/1.137, allocations: 1.75 kB / 0.8678 GB, free: 15.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.06814/1.205, allocations: 23.29 MB / 0.8906 GB, free: 8.449 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/1.206, allocations: 252.8 kB / 0.8908 GB, free: 8.148 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01321/1.219, allocations: 6.702 MB / 0.8974 GB, free: 1.457 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005809/1.219, allocations: 54.8 kB / 0.8974 GB, free: 1.398 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.2958/1.515, allocations: 4.605 MB / 0.9019 GB, free: 230.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001265/1.517, allocations: 0.8199 MB / 0.9027 GB, free: 229.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006467/1.517, allocations: 162.5 kB / 0.9029 GB, free: 229.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0004096/1.518, allocations: 0.6555 MB / 0.9035 GB, free: 229.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004209/1.522, allocations: 2.882 MB / 0.9063 GB, free: 229.3 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006165/1.528, allocations: 7.835 MB / 0.914 GB, free: 221.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/1.54, allocations: 11.48 MB / 0.9252 GB, free: 212.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002608/1.54, allocations: 49.91 kB / 0.9252 GB, free: 212.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1062) (initialization): time 0.02538/1.565, allocations: 11.94 MB / 0.9369 GB, free: 207.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001811/1.566, allocations: 81.94 kB / 0.937 GB, free: 207.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000407/1.566, allocations: 174.4 kB / 0.9371 GB, free: 207.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005694/1.572, allocations: 1.789 MB / 0.9389 GB, free: 207.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007054/1.579, allocations: 1.857 MB / 0.9407 GB, free: 207.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/1.592, allocations: 11.73 MB / 0.9522 GB, free: 200.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006711/1.599, allocations: 477.5 kB / 0.9526 GB, free: 200.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001384/1.6, allocations: 495.2 kB / 0.9531 GB, free: 200.2 MB / 0.5886 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.006174/1.606, allocations: 3.055 MB / 0.9561 GB, free: 198.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.607, allocations: 0.5382 MB / 0.9566 GB, free: 198.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008285/1.616, allocations: 4.868 MB / 0.9613 GB, free: 196.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.523e-05/1.616, allocations: 23.62 kB / 0.9614 GB, free: 196.8 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.628e-05/1.616, allocations: 10.75 kB / 0.9614 GB, free: 196.8 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.279e-05/1.616, allocations: 11.41 kB / 0.9614 GB, free: 196.8 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/1.635, allocations: 11.26 MB / 0.9724 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/1.635, allocations: 0 / 0.9724 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/1.636, allocations: 323.5 kB / 0.9727 GB, free: 188.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003509/1.64, allocations: 1.497 MB / 0.9742 GB, free: 186.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002554/1.64, allocations: 35.61 kB / 0.9742 GB, free: 186.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/1.65, allocations: 10.85 MB / 0.9848 GB, free: 175.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.65, allocations: 0 / 0.9848 GB, free: 175.4 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/1.66, allocations: 7.966 MB / 0.9926 GB, free: 167.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001717/1.662, allocations: 0.615 MB / 0.9932 GB, free: 166.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008417/1.663, allocations: 37.47 kB / 0.9932 GB, free: 166.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/1.665, allocations: 147.8 kB / 0.9933 GB, free: 166.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000406/1.665, allocations: 133.1 kB / 0.9935 GB, free: 166.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/1.665, allocations: 57.31 kB / 0.9935 GB, free: 166.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.006611/1.672, allocations: 4.242 MB / 0.9977 GB, free: 162.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.82e-07/1.672, allocations: 0 / 0.9977 GB, free: 162.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007959/1.68, allocations: 1.495 MB / 0.9991 GB, free: 160.7 MB / 0.5886 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.0005547/1.681, allocations: 166 kB / 0.9993 GB, free: 160.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01013/1.691, allocations: 7.113 MB / 1.006 GB, free: 153.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.691, allocations: 3.938 kB / 1.006 GB, free: 153.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002732/1.694, allocations: 2.286 MB / 1.008 GB, free: 151.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004917/1.698, allocations: 0.7289 MB / 1.009 GB, free: 150.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/1.722, allocations: 16.91 MB / 1.026 GB, free: 133.4 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005049/1.727, allocations: 4.618 MB / 1.03 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/1.728, allocations: 407.4 kB / 1.031 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of SimCode: time 6.91e-07/1.728, allocations: 0 / 1.031 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of Templates: time 0.4901/2.218, allocations: 168.5 MB / 1.195 GB, free: 193.9 MB / 0.5886 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