Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.CutForce") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001228, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.193/0.193, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 79.86 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2933, allocations: 62.43 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce): time 0.01478/0.3081, allocations: 14.99 MB / 0.5463 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.3186, allocations: 5.048 MB / 0.5512 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.3214, allocations: 123.6 kB / 0.5513 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01002/0.3315, allocations: 5.962 MB / 0.5572 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00675/0.3383, allocations: 2.812 MB / 0.5599 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003288/0.3416, allocations: 1.579 MB / 0.5615 GB, free: 3.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00956/0.3512, allocations: 7.777 MB / 0.569 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008021/0.3592, allocations: 7.386 MB / 0.5763 GB, free: 3.848 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004515/0.3638, allocations: 2.941 MB / 0.5791 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005138/0.369, allocations: 3.793 MB / 0.5828 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001535/0.3705, allocations: 0.5703 MB / 0.5834 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002823/0.3734, allocations: 1.389 MB / 0.5848 GB, free: 11.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003529/0.3769, allocations: 3.534 MB / 0.5882 GB, free: 7.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005031/0.382, allocations: 3.829 MB / 0.5919 GB, free: 3.738 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01235/0.3943, allocations: 11.6 MB / 0.6033 GB, free: 8.098 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3944, allocations: 0 / 0.6033 GB, free: 8.098 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3944, allocations: 0 / 0.6033 GB, free: 8.098 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.00035/0.3948, allocations: 0 / 0.6033 GB, free: 8.098 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.01659/0.4113, allocations: 8.452 MB / 0.6115 GB, free: 15.56 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.4114, allocations: 8.031 kB / 0.6115 GB, free: 15.55 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008919/0.4203, allocations: 2.479 MB / 0.6139 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008623/0.429, allocations: 4.509 MB / 0.6184 GB, free: 8.477 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/0.4294, allocations: 434.5 kB / 0.6188 GB, free: 8.051 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001839/0.4312, allocations: 0.5387 MB / 0.6193 GB, free: 7.512 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0295/0.4607, allocations: 16.69 MB / 0.6356 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002996/0.4611, allocations: 71.34 kB / 0.6357 GB, free: 5.637 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00156/0.4627, allocations: 259.8 kB / 0.6359 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006066/0.4687, allocations: 2.924 MB / 0.6388 GB, free: 2.457 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03616/0.5049, allocations: 12.78 MB / 0.6512 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07618/0.5812, allocations: 63.98 MB / 0.7137 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4538/1.035, allocations: 5.485 MB / 0.7191 GB, free: 160.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002994/1.038, allocations: 2.118 MB / 0.7212 GB, free: 159.7 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01422/1.052, allocations: 9.932 MB / 0.7309 GB, free: 154.8 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/1.052, allocations: 51.19 kB / 0.7309 GB, free: 154.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 5.34e-06/1.052, allocations: 0 / 0.7309 GB, free: 154.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.03109/1.083, allocations: 14.06 MB / 0.7446 GB, free: 149.2 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/1.084, allocations: 148.9 kB / 0.7448 GB, free: 149.1 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006625/1.09, allocations: 6.283 MB / 0.7509 GB, free: 145.3 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002658/1.09, allocations: 61.14 kB / 0.751 GB, free: 145.2 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002021/1.093, allocations: 5.082 MB / 0.7559 GB, free: 140.2 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005744/1.093, allocations: 0.8207 MB / 0.7567 GB, free: 139.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/1.095, allocations: 1.673 MB / 0.7584 GB, free: 137.7 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.241e-05/1.095, allocations: 301.1 kB / 0.7586 GB, free: 137.4 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002584/1.097, allocations: 2.327 MB / 0.7609 GB, free: 135 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004169/1.101, allocations: 7.68 MB / 0.7684 GB, free: 124.8 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00733/1.109, allocations: 10.88 MB / 0.779 GB, free: 111.3 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-05/1.109, allocations: 56 kB / 0.7791 GB, free: 111.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.01182/1.121, allocations: 9.652 MB / 0.7885 GB, free: 101.5 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 7.724e-05/1.121, allocations: 88 kB / 0.7886 GB, free: 101.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/1.121, allocations: 188 kB / 0.7888 GB, free: 101.3 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001547/1.121, allocations: 255.9 kB / 0.789 GB, free: 101 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004471/1.126, allocations: 1.922 MB / 0.7909 GB, free: 99.1 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001574/1.126, allocations: 370.5 kB / 0.7913 GB, free: 98.74 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004671/1.13, allocations: 407.7 kB / 0.7916 GB, free: 98.34 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000749/1.131, allocations: 0.5192 MB / 0.7922 GB, free: 97.82 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutForce2b.forceArrow.twoHeadedArrow,cutForce2b.forceArrow.headAtOrigin,cutForce1b.forceArrow.twoHeadedArrow,cutForce1b.forceArrow.headAtOrigin,cutForce2a.forceArrow.twoHeadedArrow,cutForce2a.forceArrow.headAtOrigin,cutForce1a.forceArrow.twoHeadedArrow,cutForce1a.forceArrow.headAtOrigin,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 (1043): * Single equations (assignments): 1032 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003673/1.135, allocations: 3.292 MB / 0.7954 GB, free: 94.52 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006986/1.136, allocations: 0.5244 MB / 0.7959 GB, free: 93.99 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008445/1.136, allocations: 0.6239 MB / 0.7965 GB, free: 93.36 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/1.136, allocations: 24 kB / 0.7965 GB, free: 93.33 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/1.136, allocations: 0 / 0.7965 GB, free: 93.33 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/1.136, allocations: 7.969 kB / 0.7965 GB, free: 93.32 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01716/1.154, allocations: 16.46 MB / 0.8126 GB, free: 76.31 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.204e-05/1.154, allocations: 36 kB / 0.8126 GB, free: 76.27 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/1.155, allocations: 391.2 kB / 0.813 GB, free: 75.89 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.791e-05/1.155, allocations: 51.94 kB / 0.8131 GB, free: 75.84 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/1.155, allocations: 84 kB / 0.8131 GB, free: 75.76 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-05/1.155, allocations: 71.72 kB / 0.8132 GB, free: 75.69 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.16e-05/1.155, allocations: 59.75 kB / 0.8133 GB, free: 75.63 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/1.158, allocations: 3.933 MB / 0.8171 GB, free: 71.14 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/1.159, allocations: 0.6111 MB / 0.8177 GB, free: 70.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004896/1.16, allocations: 95.97 kB / 0.8178 GB, free: 70.41 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/1.161, allocations: 99.94 kB / 0.8179 GB, free: 70.31 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002427/1.162, allocations: 254.8 kB / 0.8181 GB, free: 70.06 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000148/1.162, allocations: 119.6 kB / 0.8182 GB, free: 69.95 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005458/1.167, allocations: 3.931 MB / 0.8221 GB, free: 66.02 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.4e-07/1.167, allocations: 0 / 0.8221 GB, free: 66.02 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006181/1.174, allocations: 1.314 MB / 0.8234 GB, free: 64.71 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 174 * 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 (201): * Single equations (assignments): 198 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004255/1.174, allocations: 244.8 kB / 0.8236 GB, free: 64.47 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.006265/1.18, allocations: 5.426 MB / 0.8289 GB, free: 59.11 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.948e-05/1.18, allocations: 8 kB / 0.8289 GB, free: 59.11 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/1.181, allocations: 1.133 MB / 0.83 GB, free: 57.98 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/1.186, allocations: 0.8617 MB / 0.8308 GB, free: 57.14 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01955/1.205, allocations: 15.48 MB / 0.846 GB, free: 41.07 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004649/1.21, allocations: 5.04 MB / 0.8509 GB, free: 36 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/1.211, allocations: 411.4 kB / 0.8513 GB, free: 35.59 MB / 0.5607 GB Notification: Performance of SimCode: time 5.81e-07/1.211, allocations: 3.938 kB / 0.8513 GB, free: 35.59 MB / 0.5607 GB Notification: Performance of Templates: time 0.1034/1.315, allocations: 84.9 MB / 0.9342 GB, free: 14.74 MB / 0.6232 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForce/CutForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches