Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.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.WorldForces2,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.WorldForces2") translateModel(ModelicaTest.MultiBody.Forces.WorldForces2,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.WorldForces2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001872/0.001872, allocations: 198.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 226.6 MB / 243.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007504/0.0007504, allocations: 99.25 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3132/0.3132, allocations: 44.81 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002702, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3225, allocations: 62.96 MB / 0.5159 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.0721/0.3946, allocations: 90.57 MB / 0.6043 GB, free: 14.51 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04435/0.439, allocations: 18.25 MB / 0.6221 GB, free: 12.37 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01858/0.4577, allocations: 430.9 kB / 0.6226 GB, free: 11.95 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01505/0.4728, allocations: 4.813 MB / 0.6273 GB, free: 7.113 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03866/0.5115, allocations: 13.91 MB / 0.6408 GB, free: 9.148 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006983/0.5185, allocations: 1.073 MB / 0.6419 GB, free: 8.074 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.4243/0.9428, allocations: 91.83 MB / 0.7316 GB, free: 30.81 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01059/0.9535, allocations: 7.796 MB / 0.7392 GB, free: 25.2 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0039/0.9574, allocations: 2.016 MB / 0.7411 GB, free: 23.85 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004104/0.9616, allocations: 3.193 MB / 0.7443 GB, free: 21.57 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001013/0.9626, allocations: 220 kB / 0.7445 GB, free: 21.36 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002548/0.9652, allocations: 1.293 MB / 0.7457 GB, free: 20.36 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002253/0.9674, allocations: 2.816 MB / 0.7485 GB, free: 18.3 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002862/0.9703, allocations: 2.956 MB / 0.7514 GB, free: 17.27 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006839/0.9771, allocations: 8.621 MB / 0.7598 GB, free: 9.785 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.9772, allocations: 0 / 0.7598 GB, free: 9.785 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.9772, allocations: 0 / 0.7598 GB, free: 9.785 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003057/0.9775, allocations: 4 kB / 0.7598 GB, free: 9.781 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: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.01205/0.9896, allocations: 6.334 MB / 0.766 GB, free: 3.934 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.9896, allocations: 16.02 kB / 0.766 GB, free: 3.918 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01329/1.003, allocations: 3.187 MB / 0.7691 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/1.014, allocations: 4.79 MB / 0.7738 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003644/1.014, allocations: 369 kB / 0.7741 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001926/1.016, allocations: 0.4885 MB / 0.7746 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02601/1.042, allocations: 14.82 MB / 0.7891 GB, free: 1.102 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/1.042, allocations: 72.44 kB / 0.7892 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000768/1.043, allocations: 238 kB / 0.7894 GB, free: 0.9922 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004358/1.047, allocations: 2.724 MB / 0.792 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02678/1.074, allocations: 12.21 MB / 0.804 GB, free: 6.219 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06926/1.143, allocations: 57.21 MB / 0.8598 GB, free: 6.016 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/1.155, allocations: 4.686 MB / 0.8644 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003908/1.159, allocations: 2.934 MB / 0.8673 GB, free: 484 kB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001472/1.159, allocations: 44.28 kB / 0.8673 GB, free: 456 kB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/1.159, allocations: 60.27 kB / 0.8674 GB, free: 392 kB / 0.5573 GB Notification: Performance of pre-optimization done (n=190): time 5.6e-06/1.159, allocations: 0 / 0.8674 GB, free: 392 kB / 0.5573 GB Notification: Performance of matching and sorting (n=208): time 0.06189/1.221, allocations: 23.38 MB / 0.8902 GB, free: 8.828 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/1.221, allocations: 252.8 kB / 0.8905 GB, free: 8.527 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/1.232, allocations: 6.741 MB / 0.897 GB, free: 1.797 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0007583/1.233, allocations: 53.7 kB / 0.8971 GB, free: 1.738 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.2998/1.533, allocations: 4.59 MB / 0.9016 GB, free: 229.5 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001411/1.534, allocations: 0.838 MB / 0.9024 GB, free: 229.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00072/1.535, allocations: 165.4 kB / 0.9026 GB, free: 229.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0004437/1.536, allocations: 0.655 MB / 0.9032 GB, free: 228.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004572/1.54, allocations: 2.869 MB / 0.906 GB, free: 228.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006603/1.547, allocations: 7.83 MB / 0.9136 GB, free: 220.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/1.559, allocations: 11.48 MB / 0.9249 GB, free: 211.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003528/1.559, allocations: 49.88 kB / 0.9249 GB, free: 211.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1066) (initialization): time 0.02515/1.584, allocations: 11.9 MB / 0.9365 GB, free: 207 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001861/1.584, allocations: 83.25 kB / 0.9366 GB, free: 206.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003266/1.585, allocations: 178.7 kB / 0.9368 GB, free: 206.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004993/1.59, allocations: 1.753 MB / 0.9385 GB, free: 206.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006949/1.597, allocations: 1.931 MB / 0.9404 GB, free: 206.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/1.61, allocations: 11.53 MB / 0.9516 GB, free: 199.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00686/1.617, allocations: 460.9 kB / 0.9521 GB, free: 199.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001427/1.618, allocations: 488.8 kB / 0.9525 GB, free: 199.3 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 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1003): * Single equations (assignments): 997 * 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%) 12,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005427/1.624, allocations: 3.058 MB / 0.9555 GB, free: 197.9 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/1.625, allocations: 0.5489 MB / 0.9561 GB, free: 197.6 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00762/1.632, allocations: 4.832 MB / 0.9608 GB, free: 196 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.395e-05/1.632, allocations: 23.28 kB / 0.9608 GB, free: 196 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.779e-05/1.632, allocations: 13.97 kB / 0.9608 GB, free: 196 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.75e-05/1.632, allocations: 7.406 kB / 0.9608 GB, free: 196 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/1.65, allocations: 11.23 MB / 0.9718 GB, free: 187.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.65, allocations: 4 kB / 0.9718 GB, free: 187.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001702/1.652, allocations: 395.4 kB / 0.9722 GB, free: 187.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00355/1.656, allocations: 1.48 MB / 0.9736 GB, free: 185.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002609/1.656, allocations: 32 kB / 0.9736 GB, free: 185.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009778/1.666, allocations: 10.62 MB / 0.984 GB, free: 174.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.666, allocations: 0 / 0.984 GB, free: 174.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.676, allocations: 7.921 MB / 0.9918 GB, free: 166.7 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/1.678, allocations: 0.6228 MB / 0.9924 GB, free: 166 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006842/1.678, allocations: 41.27 kB / 0.9924 GB, free: 166 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/1.68, allocations: 135.8 kB / 0.9925 GB, free: 165.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/1.681, allocations: 129.2 kB / 0.9927 GB, free: 165.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/1.681, allocations: 53.23 kB / 0.9927 GB, free: 165.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.006028/1.687, allocations: 4.279 MB / 0.9969 GB, free: 161.4 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.71e-07/1.687, allocations: 0 / 0.9969 GB, free: 161.4 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007168/1.694, allocations: 1.502 MB / 0.9984 GB, free: 159.9 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,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (160): * Single equations (assignments): 154 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004922/1.695, allocations: 168.3 kB / 0.9985 GB, free: 159.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009358/1.704, allocations: 7.043 MB / 1.005 GB, free: 152.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1.704, allocations: 0 / 1.005 GB, free: 152.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002463/1.706, allocations: 2.259 MB / 1.008 GB, free: 150.4 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004781/1.711, allocations: 0.743 MB / 1.008 GB, free: 149.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02145/1.733, allocations: 16.82 MB / 1.025 GB, free: 132.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004155/1.737, allocations: 4.599 MB / 1.029 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/1.738, allocations: 415.4 kB / 1.03 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of SimCode: time 1.282e-06/1.738, allocations: 0 / 1.03 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of Templates: time 0.4726/2.211, allocations: 168.2 MB / 1.194 GB, free: 192.6 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForces2/WorldForces2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches