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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForce2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutForce2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForce2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutForce2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009522/0.0009521, allocations: 197.4 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 226.5 MB / 243.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007609/0.000761, allocations: 96.5 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2805/0.2805, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002625, allocations: 11.98 kB / 465.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2761, allocations: 62.95 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce2): time 0.02222/0.2984, allocations: 34.13 MB / 0.5493 GB, free: 12.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.3117, allocations: 7.238 MB / 0.5564 GB, free: 7.898 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00605/0.3178, allocations: 152.4 kB / 0.5565 GB, free: 7.879 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003908/0.3218, allocations: 1.512 MB / 0.558 GB, free: 7.344 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01126/0.333, allocations: 4.424 MB / 0.5623 GB, free: 5.527 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.3346, allocations: 273.5 kB / 0.5626 GB, free: 5.414 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003749/0.3384, allocations: 2.736 MB / 0.5652 GB, free: 4.516 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004174/0.3426, allocations: 3.242 MB / 0.5684 GB, free: 2.723 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001226/0.3438, allocations: 0.686 MB / 0.5691 GB, free: 2.379 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001534/0.3454, allocations: 1.031 MB / 0.5701 GB, free: 1.844 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004243/0.3458, allocations: 84 kB / 0.5702 GB, free: 1.762 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.3471, allocations: 0.6279 MB / 0.5708 GB, free: 1.133 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008772/0.348, allocations: 0.9856 MB / 0.5717 GB, free: 148 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.3493, allocations: 1.151 MB / 0.5729 GB, free: 14.98 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.3526, allocations: 3.421 MB / 0.5762 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3526, allocations: 0 / 0.5762 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3527, allocations: 3.938 kB / 0.5762 GB, free: 11.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001131/0.3528, allocations: 0 / 0.5762 GB, free: 11.55 MB / 394.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.003958/0.3567, allocations: 2.416 MB / 0.5786 GB, free: 9.074 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3568, allocations: 12.03 kB / 0.5786 GB, free: 9.062 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008103/0.3576, allocations: 495.7 kB / 0.579 GB, free: 8.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004933/0.3625, allocations: 1.639 MB / 0.5806 GB, free: 6.926 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.3649, allocations: 1.336 MB / 0.5819 GB, free: 5.547 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.365, allocations: 147.7 kB / 0.5821 GB, free: 5.402 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003149/0.3653, allocations: 195.9 kB / 0.5823 GB, free: 5.211 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008738/0.374, allocations: 6.421 MB / 0.5885 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.306e-05/0.3741, allocations: 11.88 kB / 0.5886 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002234/0.3744, allocations: 87.91 kB / 0.5886 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002006/0.3764, allocations: 1.403 MB / 0.59 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008817/0.3852, allocations: 5.46 MB / 0.5953 GB, free: 7.535 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02472/0.41, allocations: 20.58 MB / 0.6154 GB, free: 2.379 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004031/0.414, allocations: 2.077 MB / 0.6175 GB, free: 176 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009569/0.415, allocations: 0.6901 MB / 0.6181 GB, free: 15.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005715/0.4208, allocations: 3.511 MB / 0.6216 GB, free: 11.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.4208, allocations: 39 kB / 0.6216 GB, free: 11.78 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 5.61e-06/0.4208, allocations: 0 / 0.6216 GB, free: 11.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=78): time 0.004913/0.4257, allocations: 1.973 MB / 0.6235 GB, free: 9.793 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.4258, allocations: 55.84 kB / 0.6236 GB, free: 9.727 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.4286, allocations: 1.954 MB / 0.6255 GB, free: 7.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.4287, allocations: 29.7 kB / 0.6255 GB, free: 7.734 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.4298, allocations: 1.887 MB / 0.6274 GB, free: 5.816 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/0.4301, allocations: 304.2 kB / 0.6277 GB, free: 5.516 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.4302, allocations: 63.98 kB / 0.6277 GB, free: 5.453 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002853/0.4305, allocations: 497.3 kB / 0.6282 GB, free: 4.957 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.4318, allocations: 0.8842 MB / 0.629 GB, free: 4.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002356/0.4342, allocations: 2.762 MB / 0.6317 GB, free: 376 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003907/0.4381, allocations: 3.978 MB / 0.6356 GB, free: 11.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-05/0.4381, allocations: 20 kB / 0.6357 GB, free: 11.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005239/0.4434, allocations: 3.526 MB / 0.6391 GB, free: 7.895 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.468e-05/0.4435, allocations: 39.94 kB / 0.6391 GB, free: 7.855 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/0.4436, allocations: 64 kB / 0.6392 GB, free: 7.793 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.283e-05/0.4437, allocations: 91.98 kB / 0.6393 GB, free: 7.703 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/0.4455, allocations: 0.6589 MB / 0.6399 GB, free: 7.043 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001054/0.4456, allocations: 132.1 kB / 0.6401 GB, free: 6.914 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/0.4474, allocations: 427.5 kB / 0.6405 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/0.4476, allocations: 188 kB / 0.6406 GB, free: 6.309 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.00196/0.4496, allocations: 1.377 MB / 0.642 GB, free: 4.922 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.4499, allocations: 157.9 kB / 0.6421 GB, free: 4.766 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003808/0.4503, allocations: 201.2 kB / 0.6423 GB, free: 4.562 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-05/0.4503, allocations: 8 kB / 0.6423 GB, free: 4.555 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4503, allocations: 0 / 0.6423 GB, free: 4.555 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4503, allocations: 3.984 kB / 0.6423 GB, free: 4.551 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006718/0.457, allocations: 4.145 MB / 0.6464 GB, free: 272 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.4571, allocations: 8.125 kB / 0.6464 GB, free: 264 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.4575, allocations: 95.88 kB / 0.6465 GB, free: 168 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/0.4575, allocations: 11.94 kB / 0.6465 GB, free: 156 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.4575, allocations: 16 kB / 0.6465 GB, free: 140 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.808e-06/0.4575, allocations: 11.98 kB / 0.6465 GB, free: 128 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.4576, allocations: 11.94 kB / 0.6465 GB, free: 116 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.459, allocations: 1.242 MB / 0.6477 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004246/0.4594, allocations: 250.7 kB / 0.648 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.4597, allocations: 19.98 kB / 0.648 GB, free: 14.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005094/0.4602, allocations: 23.98 kB / 0.648 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.4603, allocations: 55.77 kB / 0.6481 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-05/0.4604, allocations: 31.98 kB / 0.6481 GB, free: 14.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001741/0.4621, allocations: 1.275 MB / 0.6494 GB, free: 13.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4621, allocations: 0 / 0.6494 GB, free: 13.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002358/0.4645, allocations: 0.7075 MB / 0.65 GB, free: 12.41 MB / 474.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.001793/0.4663, allocations: 1.84 MB / 0.6518 GB, free: 10.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002918/0.4692, allocations: 2.023 MB / 0.6538 GB, free: 8.465 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.4692, allocations: 4 kB / 0.6538 GB, free: 8.461 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005229/0.4698, allocations: 454.9 kB / 0.6543 GB, free: 8.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.4722, allocations: 229.3 kB / 0.6545 GB, free: 7.797 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02344/0.4956, allocations: 15.76 MB / 0.6699 GB, free: 6.492 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002719/0.4984, allocations: 2.319 MB / 0.6721 GB, free: 4.145 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.4998, allocations: 1.097 MB / 0.6732 GB, free: 3.047 MB / 490.7 MB Notification: Performance of SimCode: time 7.81e-07/0.4998, allocations: 0 / 0.6732 GB, free: 3.047 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.789/5.289, allocations: 40.92 MB / 0.7132 GB, free: 119.1 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutForce2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutForce2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForce2_res.mat","/var/lib/jenkins1/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