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.001603/0.001606, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001129/0.001128, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2835/0.2835, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006169/0.000617, allocations: 16 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1203, allocations: 58.85 MB / 490.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce): time 0.449/0.5694, allocations: 86.58 MB / 0.5633 GB, free: 13.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05827/0.6277, allocations: 19.21 MB / 0.582 GB, free: 14.32 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02135/0.6491, allocations: 442.9 kB / 0.5825 GB, free: 13.88 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01672/0.6659, allocations: 4.398 MB / 0.5868 GB, free: 9.465 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0498/0.7158, allocations: 12.42 MB / 0.5989 GB, free: 13.02 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008033/0.7238, allocations: 1.237 MB / 0.6001 GB, free: 11.78 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.7359, allocations: 4.569 MB / 0.6046 GB, free: 7.203 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0193/0.7553, allocations: 9.114 MB / 0.6135 GB, free: 14.01 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005404/0.7607, allocations: 2.091 MB / 0.6155 GB, free: 11.91 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005904/0.7667, allocations: 2.672 MB / 0.6181 GB, free: 9.23 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001947/0.7687, allocations: 284 kB / 0.6184 GB, free: 8.953 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004021/0.7727, allocations: 0.9519 MB / 0.6193 GB, free: 8 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005965/0.7788, allocations: 3.137 MB / 0.6224 GB, free: 4.855 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003717/0.7825, allocations: 1.54 MB / 0.6239 GB, free: 3.305 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.7994, allocations: 10.05 MB / 0.6337 GB, free: 9.227 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7995, allocations: 0 / 0.6337 GB, free: 9.227 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.7995, allocations: 0 / 0.6337 GB, free: 9.227 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005071/0.8, allocations: 0 / 0.6337 GB, free: 9.227 MB / 442.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.02621/0.8262, allocations: 7.946 MB / 0.6414 GB, free: 1.199 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.8263, allocations: 12.02 kB / 0.6415 GB, free: 1.188 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02213/0.8484, allocations: 3.085 MB / 0.6445 GB, free: 14.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01759/0.8661, allocations: 5.647 MB / 0.65 GB, free: 8.363 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007348/0.8669, allocations: 468.1 kB / 0.6504 GB, free: 7.906 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002868/0.8697, allocations: 0.5894 MB / 0.651 GB, free: 7.316 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05679/0.9266, allocations: 18.88 MB / 0.6694 GB, free: 3.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/0.927, allocations: 71.39 kB / 0.6695 GB, free: 3.199 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00249/0.9295, allocations: 283.7 kB / 0.6698 GB, free: 2.922 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009929/0.9395, allocations: 3.452 MB / 0.6732 GB, free: 15.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05318/0.9927, allocations: 14.76 MB / 0.6876 GB, free: 0.6992 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8429/1.836, allocations: 70.76 MB / 0.7567 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02915/1.865, allocations: 6.136 MB / 0.7627 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03084/1.896, allocations: 10.99 MB / 0.7734 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.564e-05/1.896, allocations: 63.25 kB / 0.7735 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=238): time 6.713e-06/1.896, allocations: 0 / 0.7735 GB, free: 128.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=262): time 0.07201/1.968, allocations: 16.41 MB / 0.7895 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/1.968, allocations: 157.6 kB / 0.7896 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01479/1.983, allocations: 7.091 MB / 0.7966 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000504/1.983, allocations: 66.56 kB / 0.7966 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004245/1.988, allocations: 5.334 MB / 0.8018 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001393/1.989, allocations: 1.016 MB / 0.8028 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000881/1.99, allocations: 177.3 kB / 0.803 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006263/1.991, allocations: 0.6954 MB / 0.8037 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00742/1.998, allocations: 2.59 MB / 0.8062 GB, free: 105 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01083/2.009, allocations: 8.267 MB / 0.8143 GB, free: 94.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/2.019, allocations: 4.456 MB / 0.8186 GB, free: 89.62 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001768/2.02, allocations: 67.95 kB / 0.8187 GB, free: 89.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.02651/2.046, allocations: 10.33 MB / 0.8288 GB, free: 79.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/2.046, allocations: 92 kB / 0.8289 GB, free: 79.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002664/2.047, allocations: 200.9 kB / 0.8291 GB, free: 78.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002896/2.047, allocations: 296 kB / 0.8293 GB, free: 78.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01239/2.059, allocations: 2.121 MB / 0.8314 GB, free: 76.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003594/2.06, allocations: 394.5 kB / 0.8318 GB, free: 76.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009658/2.069, allocations: 460.8 kB / 0.8322 GB, free: 75.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001721/2.071, allocations: 0.5573 MB / 0.8328 GB, free: 75.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 923 * 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 (1139): * Single equations (assignments): 1128 * Array equations: 11 * 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.008701/2.08, allocations: 3.612 MB / 0.8363 GB, free: 71.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00132/2.081, allocations: 0.5784 MB / 0.8369 GB, free: 70.92 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008006/2.089, allocations: 2.787 MB / 0.8396 GB, free: 68.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.787e-05/2.089, allocations: 28 kB / 0.8396 GB, free: 68.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/2.089, allocations: 4 kB / 0.8396 GB, free: 68.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.592e-05/2.09, allocations: 11.95 kB / 0.8396 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05703/2.147, allocations: 26.58 MB / 0.8656 GB, free: 40.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001451/2.147, allocations: 55.25 kB / 0.8656 GB, free: 40.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003552/2.15, allocations: 0.5232 MB / 0.8661 GB, free: 40.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.772e-05/2.15, allocations: 80 kB / 0.8662 GB, free: 40.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004514/2.151, allocations: 120 kB / 0.8663 GB, free: 39.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.427e-05/2.151, allocations: 103.6 kB / 0.8664 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-05/2.151, allocations: 79.69 kB / 0.8665 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/2.162, allocations: 14.8 MB / 0.881 GB, free: 22.81 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002233/2.165, allocations: 0.7041 MB / 0.8817 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001954/2.167, allocations: 128 kB / 0.8818 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005738/2.172, allocations: 143.9 kB / 0.8819 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008324/2.173, allocations: 350.5 kB / 0.8823 GB, free: 21.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003093/2.174, allocations: 152 kB / 0.8824 GB, free: 21.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01071/2.184, allocations: 4.492 MB / 0.8868 GB, free: 16.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/2.184, allocations: 3.938 kB / 0.8868 GB, free: 16.85 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01099/2.195, allocations: 1.523 MB / 0.8883 GB, free: 15.33 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 243 * 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 (273): * Single equations (assignments): 270 * 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.001266/2.197, allocations: 314.3 kB / 0.8886 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01425/2.211, allocations: 6.051 MB / 0.8945 GB, free: 9.008 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-05/2.211, allocations: 8 kB / 0.8945 GB, free: 9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003631/2.215, allocations: 1.491 MB / 0.8959 GB, free: 7.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007231/2.222, allocations: 0.8679 MB / 0.8968 GB, free: 6.66 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05011/2.272, allocations: 20.97 MB / 0.9173 GB, free: 0.9062 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4096/2.682, allocations: 5.745 MB / 0.9229 GB, free: 173.1 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002515/2.684, allocations: 478.4 kB / 0.9233 GB, free: 173.1 MB / 0.5262 GB Notification: Performance of SimCode: time 1.613e-06/2.684, allocations: 0 / 0.9233 GB, free: 173.1 MB / 0.5262 GB Notification: Performance of Templates: time 0.1849/2.869, allocations: 92.08 MB / 1.013 GB, free: 108.1 MB / 0.5262 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