Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.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.CutTorque3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 197.9 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 226.5 MB / 243.4 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007911/0.0007911, allocations: 101.1 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2996/0.2996, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003038, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2863, allocations: 62.96 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.02233/0.3087, allocations: 34.14 MB / 0.5493 GB, free: 12.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.3221, allocations: 7.228 MB / 0.5564 GB, free: 7.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0058/0.3279, allocations: 153.1 kB / 0.5565 GB, free: 7.891 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004227/0.3322, allocations: 1.512 MB / 0.558 GB, free: 7.355 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01146/0.3437, allocations: 4.424 MB / 0.5623 GB, free: 5.539 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001698/0.3454, allocations: 278 kB / 0.5626 GB, free: 5.422 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004221/0.3496, allocations: 2.738 MB / 0.5652 GB, free: 4.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004455/0.3541, allocations: 3.234 MB / 0.5684 GB, free: 2.652 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.3556, allocations: 0.6897 MB / 0.5691 GB, free: 2.305 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.3572, allocations: 1.029 MB / 0.5701 GB, free: 1.785 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000497/0.3577, allocations: 88.75 kB / 0.5702 GB, free: 1.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.3591, allocations: 0.6239 MB / 0.5708 GB, free: 1.145 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009835/0.3601, allocations: 0.9895 MB / 0.5717 GB, free: 156 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.3616, allocations: 1.143 MB / 0.5728 GB, free: 14.99 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003492/0.3651, allocations: 3.421 MB / 0.5762 GB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3651, allocations: 0 / 0.5762 GB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3651, allocations: 0 / 0.5762 GB, free: 11.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00017/0.3653, allocations: 0 / 0.5762 GB, free: 11.57 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.004777/0.37, allocations: 2.42 MB / 0.5786 GB, free: 9.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3701, allocations: 12.03 kB / 0.5786 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001104/0.3712, allocations: 491.8 kB / 0.579 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005169/0.3764, allocations: 1.635 MB / 0.5806 GB, free: 6.949 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002369/0.3788, allocations: 1.34 MB / 0.5819 GB, free: 5.566 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.3789, allocations: 155.6 kB / 0.5821 GB, free: 5.414 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004576/0.3794, allocations: 191.9 kB / 0.5823 GB, free: 5.227 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009389/0.3888, allocations: 6.417 MB / 0.5885 GB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.255e-05/0.3889, allocations: 15.88 kB / 0.5886 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/0.3892, allocations: 87.91 kB / 0.5886 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002024/0.3912, allocations: 1.403 MB / 0.59 GB, free: 13.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009192/0.4004, allocations: 5.456 MB / 0.5953 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02496/0.4254, allocations: 20.61 MB / 0.6155 GB, free: 2.359 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003964/0.4294, allocations: 2.004 MB / 0.6174 GB, free: 232 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.4304, allocations: 0.6943 MB / 0.6181 GB, free: 15.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006137/0.4365, allocations: 3.635 MB / 0.6216 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.4366, allocations: 35 kB / 0.6217 GB, free: 11.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 3.347e-06/0.4366, allocations: 4 kB / 0.6217 GB, free: 11.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=78): time 0.00493/0.4415, allocations: 1.97 MB / 0.6236 GB, free: 9.727 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.4416, allocations: 55.84 kB / 0.6237 GB, free: 9.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.4443, allocations: 1.958 MB / 0.6256 GB, free: 7.699 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.4443, allocations: 33.7 kB / 0.6256 GB, free: 7.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.4455, allocations: 1.887 MB / 0.6275 GB, free: 5.742 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.4458, allocations: 308.1 kB / 0.6277 GB, free: 5.438 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.4459, allocations: 60 kB / 0.6278 GB, free: 5.379 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002733/0.4462, allocations: 493.3 kB / 0.6283 GB, free: 4.887 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.4474, allocations: 0.8803 MB / 0.6291 GB, free: 4.004 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002295/0.4497, allocations: 2.766 MB / 0.6318 GB, free: 304 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003763/0.4535, allocations: 3.976 MB / 0.6357 GB, free: 11.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-05/0.4536, allocations: 23.94 kB / 0.6357 GB, free: 11.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005208/0.4588, allocations: 3.535 MB / 0.6392 GB, free: 7.816 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.374e-05/0.4589, allocations: 32 kB / 0.6392 GB, free: 7.785 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-05/0.459, allocations: 68.84 kB / 0.6393 GB, free: 7.719 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.092e-05/0.4591, allocations: 87.98 kB / 0.6394 GB, free: 7.633 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/0.4609, allocations: 0.6628 MB / 0.64 GB, free: 6.969 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001025/0.461, allocations: 135.5 kB / 0.6401 GB, free: 6.836 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.4627, allocations: 415.5 kB / 0.6405 GB, free: 6.426 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002388/0.463, allocations: 192 kB / 0.6407 GB, free: 6.238 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 (cutTorque.torqueArrow.arrowLine.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.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],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[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.001924/0.4649, allocations: 1.381 MB / 0.6421 GB, free: 4.848 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.4652, allocations: 153.9 kB / 0.6422 GB, free: 4.695 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003778/0.4655, allocations: 201.2 kB / 0.6424 GB, free: 4.492 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/0.4656, allocations: 8 kB / 0.6424 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4656, allocations: 0 / 0.6424 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4656, allocations: 3.984 kB / 0.6424 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00648/0.4721, allocations: 4.089 MB / 0.6464 GB, free: 248 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.4721, allocations: 8 kB / 0.6464 GB, free: 240 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003939/0.4725, allocations: 103.8 kB / 0.6465 GB, free: 136 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/0.4726, allocations: 12 kB / 0.6465 GB, free: 124 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.4726, allocations: 20 kB / 0.6466 GB, free: 104 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.858e-06/0.4726, allocations: 11.98 kB / 0.6466 GB, free: 92 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.4726, allocations: 11.94 kB / 0.6466 GB, free: 80 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.474, allocations: 1.27 MB / 0.6478 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.4745, allocations: 258.7 kB / 0.6481 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.4748, allocations: 20 kB / 0.6481 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/0.4754, allocations: 31.89 kB / 0.6481 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.4755, allocations: 55.75 kB / 0.6482 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/0.4756, allocations: 32 kB / 0.6482 GB, free: 14.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001835/0.4774, allocations: 1.271 MB / 0.6494 GB, free: 13.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4774, allocations: 0 / 0.6494 GB, free: 13.03 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002513/0.4799, allocations: 0.7038 MB / 0.6501 GB, free: 12.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * 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.002056/0.482, allocations: 1.873 MB / 0.652 GB, free: 10.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002844/0.4849, allocations: 2.02 MB / 0.6539 GB, free: 8.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4849, allocations: 0 / 0.6539 GB, free: 8.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005101/0.4854, allocations: 471 kB / 0.6544 GB, free: 7.883 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/0.488, allocations: 231.7 kB / 0.6546 GB, free: 7.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/0.51, allocations: 15.8 MB / 0.67 GB, free: 6.316 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002551/0.5126, allocations: 2.323 MB / 0.6723 GB, free: 3.961 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.5139, allocations: 1.097 MB / 0.6734 GB, free: 2.863 MB / 490.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5139, allocations: 0 / 0.6734 GB, free: 2.863 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.677/5.191, allocations: 40.91 MB / 0.7133 GB, free: 119.1 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches