Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,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.ForcesAndTorques") translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,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.ForcesAndTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001615/0.001614, allocations: 184.1 kB / 16.41 MB, free: 5.574 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.72/1.72, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.0008162/0.0008162, allocations: 95.78 kB / 270.9 MB, free: 8.359 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.4128/0.4128, allocations: 43.57 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004046, allocations: 12 kB / 431.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.146, allocations: 58.86 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForcesAndTorques): time 0.3364/0.4824, allocations: 96.41 MB / 0.5729 GB, free: 13.89 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05565/0.5382, allocations: 19.14 MB / 0.5916 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02779/0.566, allocations: 454 kB / 0.592 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02154/0.5876, allocations: 5.085 MB / 0.597 GB, free: 13.29 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05369/0.6413, allocations: 14.69 MB / 0.6113 GB, free: 14.55 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008348/0.6497, allocations: 0.987 MB / 0.6123 GB, free: 13.56 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.04757/0.6973, allocations: 37.06 MB / 0.6485 GB, free: 8.449 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01557/0.7129, allocations: 8.904 MB / 0.6572 GB, free: 15.5 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005873/0.7189, allocations: 2.269 MB / 0.6594 GB, free: 13.22 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006683/0.7256, allocations: 3.594 MB / 0.6629 GB, free: 9.613 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002294/0.7279, allocations: 276 kB / 0.6632 GB, free: 9.344 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004328/0.7323, allocations: 1.042 MB / 0.6642 GB, free: 8.301 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005456/0.7377, allocations: 3.206 MB / 0.6673 GB, free: 5.086 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003782/0.7416, allocations: 1.516 MB / 0.6688 GB, free: 3.559 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3004/1.042, allocations: 10.2 MB / 0.6788 GB, free: 45.15 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/1.042, allocations: 4.156 kB / 0.6788 GB, free: 45.15 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.042, allocations: 3.438 kB / 0.6788 GB, free: 45.15 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006201/1.043, allocations: 0.7188 kB / 0.6788 GB, free: 45.15 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: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.02259/1.065, allocations: 7.316 MB / 0.6859 GB, free: 42.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/1.065, allocations: 10.83 kB / 0.6859 GB, free: 42.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01669/1.082, allocations: 3.049 MB / 0.6889 GB, free: 41.49 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/1.096, allocations: 4.798 MB / 0.6936 GB, free: 40.67 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004296/1.096, allocations: 450.6 kB / 0.694 GB, free: 40.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003091/1.099, allocations: 0.5898 MB / 0.6946 GB, free: 40.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04059/1.14, allocations: 18.46 MB / 0.7126 GB, free: 37.69 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003092/1.14, allocations: 72.28 kB / 0.7127 GB, free: 37.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001391/1.142, allocations: 279.3 kB / 0.713 GB, free: 37.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00582/1.147, allocations: 3.548 MB / 0.7164 GB, free: 37.65 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03244/1.18, allocations: 15.63 MB / 0.7317 GB, free: 35.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09726/1.277, allocations: 70.24 MB / 0.8003 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02246/1.3, allocations: 8.451 MB / 0.8085 GB, free: 3.527 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00758/1.307, allocations: 4.985 MB / 0.8134 GB, free: 500 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0254/1.333, allocations: 11.86 MB / 0.825 GB, free: 6.238 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.797e-05/1.333, allocations: 76.47 kB / 0.8251 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=347): time 8.767e-06/1.333, allocations: 3.656 kB / 0.8251 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=389): time 0.1147/1.448, allocations: 38.89 MB / 0.863 GB, free: 15.11 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/1.448, allocations: 247.9 kB / 0.8633 GB, free: 14.82 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01528/1.463, allocations: 7.384 MB / 0.8705 GB, free: 7.453 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001192/1.464, allocations: 84.2 kB / 0.8706 GB, free: 7.367 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005202/1.47, allocations: 5.213 MB / 0.8757 GB, free: 2.184 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002937/1.473, allocations: 1.441 MB / 0.8771 GB, free: 0.7539 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002026/1.475, allocations: 204 kB / 0.8773 GB, free: 0.5547 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001367/1.476, allocations: 0.744 MB / 0.878 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008887/1.485, allocations: 4.428 MB / 0.8823 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2402/1.725, allocations: 10.05 MB / 0.8921 GB, free: 233.6 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/1.737, allocations: 6.527 MB / 0.8985 GB, free: 233.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001836/1.738, allocations: 56.03 kB / 0.8985 GB, free: 233.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1343) (initialization): time 0.03297/1.771, allocations: 16.38 MB / 0.9145 GB, free: 228.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000151/1.771, allocations: 89.06 kB / 0.9146 GB, free: 228.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003/1.771, allocations: 195.3 kB / 0.9148 GB, free: 228.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006641/1.778, allocations: 2.344 MB / 0.9171 GB, free: 227.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01065/1.788, allocations: 2.441 MB / 0.9195 GB, free: 227.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01802/1.806, allocations: 13.48 MB / 0.9327 GB, free: 220.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01092/1.817, allocations: 0.595 MB / 0.9332 GB, free: 220.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002691/1.82, allocations: 0.5893 MB / 0.9338 GB, free: 220.5 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 890 * Number of states: 0 () * Number of discrete variables: 69 (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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[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 (1261): * Single equations (assignments): 1254 * 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 {(3,100.0%) 22,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009919/1.83, allocations: 3.627 MB / 0.9374 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002189/1.832, allocations: 0.6353 MB / 0.938 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01964/1.852, allocations: 9.188 MB / 0.947 GB, free: 215.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.65e-05/1.852, allocations: 41.86 kB / 0.947 GB, free: 215.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.837e-05/1.852, allocations: 10.69 kB / 0.947 GB, free: 215.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.099e-05/1.852, allocations: 18.47 kB / 0.947 GB, free: 215.6 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04178/1.894, allocations: 19.34 MB / 0.9659 GB, free: 200.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.013e-05/1.894, allocations: 8 kB / 0.9659 GB, free: 200.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003507/1.898, allocations: 0.7106 MB / 0.9666 GB, free: 199.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005066/1.903, allocations: 2.04 MB / 0.9686 GB, free: 197.8 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009559/1.904, allocations: 75.98 kB / 0.9687 GB, free: 197.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01446/1.918, allocations: 12.73 MB / 0.9811 GB, free: 184.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.918, allocations: 11.94 kB / 0.9811 GB, free: 184.9 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02105/1.939, allocations: 14.27 MB / 0.995 GB, free: 170.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004174/1.943, allocations: 1.371 MB / 0.9964 GB, free: 169.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002195/1.946, allocations: 68 kB / 0.9965 GB, free: 169 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004513/1.95, allocations: 275.4 kB / 0.9967 GB, free: 168.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008584/1.951, allocations: 244.7 kB / 0.9969 GB, free: 168.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005411/1.952, allocations: 106 kB / 0.997 GB, free: 168.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.008696/1.96, allocations: 4.735 MB / 1.002 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.81e-07/1.96, allocations: 0 / 1.002 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0115/1.972, allocations: 1.941 MB / 1.004 GB, free: 161.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (329): * Single equations (assignments): 324 * 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.001175/1.973, allocations: 233.1 kB / 1.004 GB, free: 161.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01598/1.989, allocations: 10.74 MB / 1.014 GB, free: 150.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/1.989, allocations: 0 / 1.014 GB, free: 150.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006728/1.996, allocations: 4.319 MB / 1.019 GB, free: 146.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007075/2.003, allocations: 0.7937 MB / 1.019 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03487/2.038, allocations: 22.12 MB / 1.041 GB, free: 123.5 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007081/2.045, allocations: 5.463 MB / 1.046 GB, free: 118 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002472/2.048, allocations: 0.5189 MB / 1.047 GB, free: 117.4 MB / 0.5886 GB Notification: Performance of SimCode: time 1.042e-06/2.048, allocations: 0 / 1.047 GB, free: 117.4 MB / 0.5886 GB Notification: Performance of Templates: time 0.4084/2.456, allocations: 174.7 MB / 1.217 GB, free: 186.2 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForcesAndTorques/ForcesAndTorques.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches