Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutForce2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce.force.3.|cutForce.force.2.|cutForce.force.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2") translateModel(ModelicaTest.MultiBody.Sensors.CutForce2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForce.force.3.|cutForce.force.2.|cutForce.force.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 200.4 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007624/0.0007624, allocations: 104.4 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.173/0.173, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002244/0.0002244, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.08958, allocations: 62.95 MB / 0.5153 GB, free: 2.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce2): time 0.196/0.2856, allocations: 34.11 MB / 0.5486 GB, free: 5.641 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01698/0.3027, allocations: 7.249 MB / 0.5557 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006129/0.3088, allocations: 151.8 kB / 0.5559 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004276/0.3131, allocations: 1.502 MB / 0.5573 GB, free: 164 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0112/0.3243, allocations: 4.416 MB / 0.5616 GB, free: 13.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.3257, allocations: 244.9 kB / 0.5619 GB, free: 13.08 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003376/0.3291, allocations: 2.693 MB / 0.5645 GB, free: 11.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003882/0.333, allocations: 2.974 MB / 0.5674 GB, free: 8.164 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.334, allocations: 0.6888 MB / 0.5681 GB, free: 7.473 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.3354, allocations: 1.032 MB / 0.5691 GB, free: 6.438 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002955/0.3357, allocations: 88 kB / 0.5692 GB, free: 6.352 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001015/0.3367, allocations: 0.5303 MB / 0.5697 GB, free: 5.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009449/0.3377, allocations: 0.9817 MB / 0.5706 GB, free: 4.836 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000737/0.3384, allocations: 0.5273 MB / 0.5712 GB, free: 4.301 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003175/0.3416, allocations: 3.415 MB / 0.5745 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3416, allocations: 3.938 kB / 0.5745 GB, free: 0.875 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3416, allocations: 4 kB / 0.5745 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000129/0.3418, allocations: 0 / 0.5745 GB, free: 0.8711 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.004053/0.3458, allocations: 2.455 MB / 0.5769 GB, free: 14.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.3459, allocations: 12.03 kB / 0.5769 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004809/0.3507, allocations: 1.63 MB / 0.5785 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.3528, allocations: 1.327 MB / 0.5798 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.691e-05/0.3529, allocations: 143.7 kB / 0.5799 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003574/0.3533, allocations: 183.9 kB / 0.5801 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008188/0.3615, allocations: 6.421 MB / 0.5864 GB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/0.3616, allocations: 15.88 kB / 0.5864 GB, free: 4.312 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002288/0.3618, allocations: 87.89 kB / 0.5865 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001907/0.3637, allocations: 1.403 MB / 0.5879 GB, free: 2.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008319/0.372, allocations: 5.462 MB / 0.5932 GB, free: 13.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02425/0.3963, allocations: 20.58 MB / 0.6133 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003874/0.4002, allocations: 2.071 MB / 0.6153 GB, free: 5.984 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000882/0.4012, allocations: 0.6914 MB / 0.616 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005408/0.4066, allocations: 3.507 MB / 0.6194 GB, free: 1.637 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.4066, allocations: 39 kB / 0.6194 GB, free: 1.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 2.906e-06/0.4066, allocations: 0 / 0.6194 GB, free: 1.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=78): time 0.004809/0.4115, allocations: 1.966 MB / 0.6214 GB, free: 15.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.4115, allocations: 63.8 kB / 0.6214 GB, free: 15.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002457/0.414, allocations: 1.958 MB / 0.6233 GB, free: 13.58 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.414, allocations: 33.7 kB / 0.6234 GB, free: 13.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.4152, allocations: 1.883 MB / 0.6252 GB, free: 11.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.4154, allocations: 312.1 kB / 0.6255 GB, free: 11.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.4156, allocations: 56 kB / 0.6256 GB, free: 11.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002471/0.4158, allocations: 493.3 kB / 0.626 GB, free: 10.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.417, allocations: 0.8803 MB / 0.6269 GB, free: 9.887 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002183/0.4192, allocations: 2.762 MB / 0.6296 GB, free: 6.184 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.4211, allocations: 1.565 MB / 0.6311 GB, free: 4.617 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.495e-05/0.4212, allocations: 20 kB / 0.6311 GB, free: 4.598 MB / 442.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004908/0.4261, allocations: 3.529 MB / 0.6346 GB, free: 1.062 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/0.4261, allocations: 32 kB / 0.6346 GB, free: 1.031 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.908e-05/0.4262, allocations: 68 kB / 0.6347 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.044e-05/0.4263, allocations: 99.94 kB / 0.6348 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.4281, allocations: 0.6628 MB / 0.6354 GB, free: 208 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-05/0.4282, allocations: 139.4 kB / 0.6355 GB, free: 68 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.4298, allocations: 424 kB / 0.6359 GB, free: 15.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.4301, allocations: 188 kB / 0.6361 GB, free: 15.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,WorldForce1.color[3],WorldForce1.color[2],WorldForce1.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (365): * Single equations (assignments): 360 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001738/0.4318, allocations: 1.377 MB / 0.6375 GB, free: 14.08 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.432, allocations: 153.9 kB / 0.6376 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002808/0.4323, allocations: 205.2 kB / 0.6378 GB, free: 13.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.4323, allocations: 8 kB / 0.6378 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/0.4324, allocations: 0 / 0.6378 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.4324, allocations: 7.938 kB / 0.6378 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006074/0.4385, allocations: 4.13 MB / 0.6419 GB, free: 9.441 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.4385, allocations: 4 kB / 0.6419 GB, free: 9.438 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.4389, allocations: 103.9 kB / 0.642 GB, free: 9.336 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.4389, allocations: 8 kB / 0.642 GB, free: 9.328 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.772e-05/0.4389, allocations: 20 kB / 0.642 GB, free: 9.309 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/0.4389, allocations: 15.89 kB / 0.642 GB, free: 9.293 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-06/0.439, allocations: 4 kB / 0.642 GB, free: 9.289 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.4402, allocations: 1.238 MB / 0.6432 GB, free: 7.953 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.4406, allocations: 262.5 kB / 0.6435 GB, free: 7.676 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.4408, allocations: 20 kB / 0.6435 GB, free: 7.656 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/0.4413, allocations: 27.97 kB / 0.6435 GB, free: 7.629 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.4413, allocations: 55.8 kB / 0.6436 GB, free: 7.574 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.434e-05/0.4414, allocations: 28 kB / 0.6436 GB, free: 7.547 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001534/0.4429, allocations: 1.271 MB / 0.6448 GB, free: 6.285 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.443, allocations: 0 / 0.6448 GB, free: 6.285 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002125/0.4451, allocations: 0.7038 MB / 0.6455 GB, free: 5.578 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (54): * Single equations (assignments): 51 * 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.000281/0.4454, allocations: 150.9 kB / 0.6457 GB, free: 5.422 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002667/0.448, allocations: 2.023 MB / 0.6476 GB, free: 3.414 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4481, allocations: 0 / 0.6476 GB, free: 3.414 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.4486, allocations: 450.9 kB / 0.6481 GB, free: 2.977 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.4497, allocations: 238.8 kB / 0.6483 GB, free: 2.746 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008579/0.4583, allocations: 6.581 MB / 0.6547 GB, free: 12.05 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/0.4606, allocations: 2.32 MB / 0.657 GB, free: 9.695 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.461, allocations: 143.4 kB / 0.6571 GB, free: 9.555 MB / 474.7 MB Notification: Performance of SimCode: time 5.71e-07/0.461, allocations: 0 / 0.6571 GB, free: 9.555 MB / 474.7 MB Notification: Performance of Templates: time 0.03993/0.5009, allocations: 30.09 MB / 0.6865 GB, free: 11.5 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForce2/CutForce2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches