Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.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.Sensors.CutForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce2a.force.3.|cutForce2b.force.3.|cutForce1a.force.2.|cutForce2a.force.2.|cutForce2b.force.2.|cutForce1a.force.1.|cutForce2a.force.1.|cutForce2b.force.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce") translateModel(ModelicaTest.MultiBody.Sensors.CutForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce1a.force.3.|cutForce2a.force.3.|cutForce2b.force.3.|cutForce1a.force.2.|cutForce2a.force.2.|cutForce2b.force.2.|cutForce1a.force.1.|cutForce2a.force.1.|cutForce2b.force.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009417/0.0009417, allocations: 180.5 kB / 17.41 MB, free: 4.402 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.185/1.185, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.0006949/0.0006949, allocations: 91.38 kB / 271.9 MB, free: 8.246 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.2918/0.2918, allocations: 43.56 MB / 363.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003473, allocations: 20 kB / 432.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1034, allocations: 58.85 MB / 491.4 MB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2681/0.3716, allocations: 105.1 MB / 0.5826 GB, free: 13.13 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.3718, allocations: 83.95 kB / 0.5827 GB, free: 13.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4967/0.8685, allocations: 156.3 MB / 0.7353 GB, free: 82.63 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.8686, allocations: 0 / 0.7353 GB, free: 82.63 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003262/0.8689, allocations: 155.9 kB / 0.7354 GB, free: 82.62 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: 2799 * Number of variables: 2799 Notification: Performance of Generate backend data structure: time 0.01739/0.8863, allocations: 8.011 MB / 0.7432 GB, free: 79.27 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.8864, allocations: 10.66 kB / 0.7432 GB, free: 79.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01503/0.9014, allocations: 3.503 MB / 0.7467 GB, free: 78.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01389/0.9153, allocations: 8.243 MB / 0.7547 GB, free: 75.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000428/0.9158, allocations: 0.6047 MB / 0.7553 GB, free: 75.51 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002792/0.9186, allocations: 0.7891 MB / 0.7561 GB, free: 75.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/0.9518, allocations: 18.88 MB / 0.7745 GB, free: 66.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003555/0.9521, allocations: 94.25 kB / 0.7746 GB, free: 66.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002398/0.9546, allocations: 387.5 kB / 0.775 GB, free: 65.85 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002345/0.9569, allocations: 1.782 MB / 0.7767 GB, free: 65.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.025/0.9819, allocations: 14.82 MB / 0.7912 GB, free: 55.57 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.549/1.531, allocations: 78.93 MB / 0.8683 GB, free: 42.57 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03003/1.561, allocations: 6.087 MB / 0.8742 GB, free: 41.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006589/1.568, allocations: 2.433 MB / 0.8766 GB, free: 41.87 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03295/1.601, allocations: 10.89 MB / 0.8872 GB, free: 38.95 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.892e-05/1.601, allocations: 58.91 kB / 0.8873 GB, free: 38.91 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=238): time 9.107e-06/1.601, allocations: 0 / 0.8873 GB, free: 38.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=262): time 0.0835/1.684, allocations: 16.03 MB / 0.9029 GB, free: 34.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/1.685, allocations: 162.4 kB / 0.9031 GB, free: 34.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02772/1.712, allocations: 6.671 MB / 0.9096 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007121/1.713, allocations: 65.89 kB / 0.9097 GB, free: 33.69 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007727/1.721, allocations: 5.601 MB / 0.9151 GB, free: 30.64 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002159/1.723, allocations: 1.013 MB / 0.9161 GB, free: 30.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0016/1.725, allocations: 178.4 kB / 0.9163 GB, free: 30.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001457/1.726, allocations: 0.6793 MB / 0.917 GB, free: 29.74 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009979/1.736, allocations: 2.574 MB / 0.9195 GB, free: 29.72 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01427/1.751, allocations: 8.222 MB / 0.9275 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02098/1.772, allocations: 11.67 MB / 0.9389 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003795/1.772, allocations: 58.84 kB / 0.939 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1155) (initialization): time 0.0361/1.808, allocations: 10.47 MB / 0.9492 GB, free: 9.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002259/1.809, allocations: 95.62 kB / 0.9493 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004266/1.809, allocations: 202.1 kB / 0.9495 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000373/1.809, allocations: 265.3 kB / 0.9497 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01311/1.822, allocations: 2.186 MB / 0.9519 GB, free: 9.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005426/1.823, allocations: 400.1 kB / 0.9522 GB, free: 9.391 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01477/1.838, allocations: 0.6106 MB / 0.9528 GB, free: 9.223 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002659/1.841, allocations: 0.5351 MB / 0.9534 GB, free: 9.152 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 915 * Number of states: 0 () * Number of discrete variables: 60 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1131): * Single equations (assignments): 1128 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0135/1.854, allocations: 3.613 MB / 0.9569 GB, free: 7.531 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002653/1.857, allocations: 0.5803 MB / 0.9575 GB, free: 7.211 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.867, allocations: 2.804 MB / 0.9602 GB, free: 6.098 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.244e-05/1.867, allocations: 29.03 kB / 0.9602 GB, free: 6.098 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.229e-05/1.867, allocations: 3.938 kB / 0.9602 GB, free: 6.094 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-05/1.867, allocations: 10.88 kB / 0.9602 GB, free: 6.094 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07167/1.939, allocations: 26.48 MB / 0.9861 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000239/1.939, allocations: 52 kB / 0.9861 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.943, allocations: 0.5174 MB / 0.9866 GB, free: 10.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001212/1.943, allocations: 72 kB / 0.9867 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005839/1.943, allocations: 115.6 kB / 0.9868 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001162/1.944, allocations: 110.4 kB / 0.9869 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001053/1.944, allocations: 80.81 kB / 0.987 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0118/1.955, allocations: 5.173 MB / 0.9921 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003536/1.959, allocations: 0.6953 MB / 0.9927 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002353/1.961, allocations: 119.5 kB / 0.9929 GB, free: 3.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006155/1.968, allocations: 200.5 kB / 0.993 GB, free: 3.504 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000977/1.969, allocations: 356.3 kB / 0.9934 GB, free: 3.219 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005732/1.969, allocations: 153.8 kB / 0.9935 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01864/1.988, allocations: 4.324 MB / 0.9978 GB, free: 0 / 0.5105 GB Notification: Performance of sort global known variables: time 1.072e-06/1.988, allocations: 336 / 0.9978 GB, free: 0 / 0.5105 GB Notification: Performance of remove unused functions: time 0.03348/2.021, allocations: 2.196 MB / 0.9999 GB, free: 0 / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 240 * Number of states: 0 () * 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 (270): * Single equations (assignments): 267 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001834/2.023, allocations: 304.9 kB / 1 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0197/2.043, allocations: 5.988 MB / 1.006 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-05/2.043, allocations: 9.5 kB / 1.006 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004414/2.048, allocations: 1.474 MB / 1.007 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.09356/2.141, allocations: 0.9126 MB / 1.008 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06929/2.211, allocations: 21.01 MB / 1.029 GB, free: 4.32 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02172/2.232, allocations: 5.578 MB / 1.034 GB, free: 140 kB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004033/2.237, allocations: 0.5014 MB / 1.035 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of SimCode: time 1.663e-06/2.237, allocations: 0 / 1.035 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of Templates: time 0.6702/2.907, allocations: 93.26 MB / 1.126 GB, free: 152.8 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutForce/CutForce.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches