Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.WorldForces,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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces") translateModel(ModelicaTest.MultiBody.Forces.WorldForces,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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008714/0.0008713, allocations: 174.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007367/0.0007367, allocations: 94.34 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2887/0.2887, allocations: 43.56 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003796, allocations: 16 kB / 432 MB, free: 5.609 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 58.86 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.2526/0.3573, allocations: 102.9 MB / 0.5798 GB, free: 8.918 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04451/0.4018, allocations: 20.44 MB / 0.5998 GB, free: 9.305 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0194/0.4213, allocations: 482.9 kB / 0.6002 GB, free: 8.832 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01584/0.4371, allocations: 5.441 MB / 0.6055 GB, free: 4.641 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04145/0.4786, allocations: 15.71 MB / 0.6209 GB, free: 4.871 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007272/0.4859, allocations: 1.143 MB / 0.622 GB, free: 3.727 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.2991/0.7851, allocations: 51.99 MB / 0.6728 GB, free: 49.81 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01382/0.799, allocations: 9.134 MB / 0.6817 GB, free: 48.83 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004478/0.8035, allocations: 2.325 MB / 0.684 GB, free: 48.83 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00536/0.8089, allocations: 3.788 MB / 0.6877 GB, free: 48.82 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001995/0.8109, allocations: 273.5 kB / 0.6879 GB, free: 48.82 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004831/0.8157, allocations: 1.18 MB / 0.6891 GB, free: 48.81 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004042/0.8198, allocations: 3.283 MB / 0.6923 GB, free: 48.81 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004363/0.8242, allocations: 3.524 MB / 0.6957 GB, free: 48.78 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.8372, allocations: 10.22 MB / 0.7057 GB, free: 48.07 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.8373, allocations: 2.5 kB / 0.7057 GB, free: 48.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.8373, allocations: 0 / 0.7057 GB, free: 48.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005374/0.8378, allocations: 0 / 0.7057 GB, free: 48.07 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: 2705 * Number of variables: 2705 Notification: Performance of Generate backend data structure: time 0.02146/0.8593, allocations: 7.297 MB / 0.7128 GB, free: 43.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.8594, allocations: 9.062 kB / 0.7128 GB, free: 43.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/0.8756, allocations: 3.37 MB / 0.7161 GB, free: 42.15 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01295/0.8886, allocations: 5.453 MB / 0.7215 GB, free: 40.37 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004002/0.8891, allocations: 447.6 kB / 0.7219 GB, free: 40.35 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002779/0.8919, allocations: 0.58 MB / 0.7224 GB, free: 40.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03005/0.9219, allocations: 17.76 MB / 0.7398 GB, free: 29.79 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002682/0.9222, allocations: 93.11 kB / 0.7399 GB, free: 29.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008765/0.9231, allocations: 273.1 kB / 0.7401 GB, free: 29.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004849/0.928, allocations: 3.424 MB / 0.7435 GB, free: 26.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0284/0.9564, allocations: 14.86 MB / 0.758 GB, free: 16.56 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08082/1.037, allocations: 69.06 MB / 0.8254 GB, free: 7.172 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01637/1.054, allocations: 7.368 MB / 0.8326 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005901/1.06, allocations: 4.425 MB / 0.8369 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002155/1.06, allocations: 62.34 kB / 0.837 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/1.06, allocations: 68.06 kB / 0.8371 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=307): time 7.124e-06/1.06, allocations: 4 kB / 0.8371 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of matching and sorting (n=340): time 0.1064/1.166, allocations: 35.24 MB / 0.8715 GB, free: 10.67 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/1.167, allocations: 298.5 kB / 0.8718 GB, free: 10.32 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/1.178, allocations: 7.427 MB / 0.879 GB, free: 2.914 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008771/1.179, allocations: 77.7 kB / 0.8791 GB, free: 2.832 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.2047/1.384, allocations: 5.28 MB / 0.8843 GB, free: 219.3 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002506/1.386, allocations: 1.288 MB / 0.8855 GB, free: 218.6 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001968/1.388, allocations: 199.2 kB / 0.8857 GB, free: 218.6 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001283/1.39, allocations: 0.7269 MB / 0.8864 GB, free: 218.3 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008163/1.398, allocations: 4.117 MB / 0.8904 GB, free: 218.2 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009548/1.407, allocations: 9.759 MB / 0.9 GB, free: 210.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01554/1.423, allocations: 14.89 MB / 0.9145 GB, free: 198.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002151/1.423, allocations: 55.72 kB / 0.9146 GB, free: 198.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.03011/1.453, allocations: 15.69 MB / 0.9299 GB, free: 193.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003926/1.454, allocations: 92 kB / 0.93 GB, free: 193.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004718/1.454, allocations: 200.5 kB / 0.9302 GB, free: 193.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0059/1.46, allocations: 2.318 MB / 0.9324 GB, free: 192.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008281/1.468, allocations: 2.361 MB / 0.9347 GB, free: 192.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/1.484, allocations: 14.51 MB / 0.9489 GB, free: 184.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008323/1.492, allocations: 0.5745 MB / 0.9495 GB, free: 184.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002062/1.494, allocations: 0.5714 MB / 0.95 GB, free: 184.2 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 896 * Number of states: 0 () * Number of discrete variables: 63 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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],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 (1226): * Single equations (assignments): 1220 * 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%) 23,(1,100.0%) 14,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00802/1.502, allocations: 3.598 MB / 0.9535 GB, free: 182.5 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001465/1.504, allocations: 0.6365 MB / 0.9542 GB, free: 182.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/1.518, allocations: 8.107 MB / 0.9621 GB, free: 175.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-05/1.518, allocations: 36.55 kB / 0.9621 GB, free: 175.6 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.56e-05/1.518, allocations: 12 kB / 0.9621 GB, free: 175.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-05/1.519, allocations: 16.59 kB / 0.9621 GB, free: 175.6 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03315/1.552, allocations: 17.12 MB / 0.9789 GB, free: 161.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.472e-05/1.552, allocations: 4 kB / 0.9789 GB, free: 161.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002967/1.555, allocations: 0.627 MB / 0.9795 GB, free: 161.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004886/1.56, allocations: 2.008 MB / 0.9814 GB, free: 160.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006713/1.56, allocations: 58.34 kB / 0.9815 GB, free: 160 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/1.575, allocations: 13.54 MB / 0.9947 GB, free: 147.6 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.575, allocations: 13.77 kB / 0.9947 GB, free: 147.6 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01936/1.594, allocations: 12.92 MB / 1.007 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003717/1.598, allocations: 1.281 MB / 1.009 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001854/1.6, allocations: 61.02 kB / 1.009 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003906/1.604, allocations: 237 kB / 1.009 GB, free: 132.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007405/1.604, allocations: 190.4 kB / 1.009 GB, free: 132.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003599/1.605, allocations: 83.98 kB / 1.009 GB, free: 132.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.008579/1.613, allocations: 4.712 MB / 1.014 GB, free: 128 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.31e-07/1.613, allocations: 4 kB / 1.014 GB, free: 128 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01109/1.625, allocations: 1.906 MB / 1.016 GB, free: 126.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/1.626, allocations: 205.1 kB / 1.016 GB, free: 125.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01556/1.641, allocations: 10.12 MB / 1.026 GB, free: 115.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.641, allocations: 0 / 1.026 GB, free: 115.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005742/1.647, allocations: 3.868 MB / 1.029 GB, free: 111.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008298/1.655, allocations: 0.8266 MB / 1.03 GB, free: 111.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03277/1.688, allocations: 21.39 MB / 1.051 GB, free: 89.64 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005778/1.694, allocations: 5.406 MB / 1.056 GB, free: 84.21 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002251/1.696, allocations: 0.5072 MB / 1.057 GB, free: 83.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.253e-06/1.696, allocations: 0 / 1.057 GB, free: 83.7 MB / 0.573 GB Notification: Performance of Templates: time 0.4461/2.142, allocations: 205.5 MB / 1.258 GB, free: 94.93 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/WorldForces/WorldForces.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches