Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009216/0.0009215, allocations: 200 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.22/1.22, allocations: 226.5 MB / 243.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000757/0.000757, allocations: 92.06 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2841/0.2841, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2993, allocations: 62.96 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.02225/0.3216, allocations: 34.14 MB / 0.5493 GB, free: 12.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.3362, allocations: 7.226 MB / 0.5564 GB, free: 7.801 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006742/0.3429, allocations: 156.2 kB / 0.5565 GB, free: 7.777 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004454/0.3474, allocations: 1.511 MB / 0.558 GB, free: 7.242 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01218/0.3596, allocations: 4.417 MB / 0.5623 GB, free: 5.434 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.3616, allocations: 277.1 kB / 0.5626 GB, free: 5.316 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00445/0.3661, allocations: 2.737 MB / 0.5652 GB, free: 4.418 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004894/0.371, allocations: 3.237 MB / 0.5684 GB, free: 2.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00198/0.373, allocations: 0.6903 MB / 0.5691 GB, free: 2.172 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002199/0.3752, allocations: 1.029 MB / 0.5701 GB, free: 1.652 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007591/0.376, allocations: 86.97 kB / 0.5701 GB, free: 1.652 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.378, allocations: 0.6268 MB / 0.5708 GB, free: 1.105 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001453/0.3795, allocations: 0.9856 MB / 0.5717 GB, free: 120 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002217/0.3817, allocations: 1.143 MB / 0.5728 GB, free: 14.96 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004031/0.3857, allocations: 3.425 MB / 0.5762 GB, free: 11.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.3858, allocations: 0 / 0.5762 GB, free: 11.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3858, allocations: 4 kB / 0.5762 GB, free: 11.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001629/0.386, allocations: 0 / 0.5762 GB, free: 11.52 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.00488/0.3909, allocations: 2.424 MB / 0.5786 GB, free: 9.043 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3909, allocations: 8.031 kB / 0.5786 GB, free: 9.035 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001229/0.3922, allocations: 495.8 kB / 0.579 GB, free: 8.543 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005439/0.3976, allocations: 1.631 MB / 0.5806 GB, free: 6.906 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/0.4003, allocations: 1.344 MB / 0.5819 GB, free: 5.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.4005, allocations: 147.7 kB / 0.5821 GB, free: 5.375 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005962/0.4011, allocations: 187.9 kB / 0.5823 GB, free: 5.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.4116, allocations: 6.421 MB / 0.5885 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.384e-05/0.4117, allocations: 15.88 kB / 0.5885 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004894/0.4122, allocations: 83.91 kB / 0.5886 GB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002186/0.4144, allocations: 1.407 MB / 0.59 GB, free: 12.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009608/0.424, allocations: 5.463 MB / 0.5953 GB, free: 7.512 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02585/0.4499, allocations: 20.61 MB / 0.6155 GB, free: 2.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/0.4538, allocations: 2.009 MB / 0.6174 GB, free: 188 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.4548, allocations: 0.6836 MB / 0.6181 GB, free: 15.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00654/0.4614, allocations: 3.639 MB / 0.6216 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.4614, allocations: 39 kB / 0.6217 GB, free: 11.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 3.166e-06/0.4615, allocations: 0 / 0.6217 GB, free: 11.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=78): time 0.004965/0.4664, allocations: 1.97 MB / 0.6236 GB, free: 9.688 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.4665, allocations: 59.84 kB / 0.6237 GB, free: 9.617 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/0.4694, allocations: 1.95 MB / 0.6256 GB, free: 7.664 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.436e-05/0.4695, allocations: 41.69 kB / 0.6256 GB, free: 7.617 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001245/0.4707, allocations: 1.887 MB / 0.6275 GB, free: 5.699 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.4711, allocations: 308.1 kB / 0.6277 GB, free: 5.395 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.4712, allocations: 60 kB / 0.6278 GB, free: 5.336 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002846/0.4715, allocations: 493.3 kB / 0.6283 GB, free: 4.844 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.4728, allocations: 0.8842 MB / 0.6291 GB, free: 3.957 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002411/0.4752, allocations: 2.762 MB / 0.6318 GB, free: 260 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004232/0.4795, allocations: 3.982 MB / 0.6357 GB, free: 11.33 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.226e-05/0.4795, allocations: 23.94 kB / 0.6357 GB, free: 11.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.00557/0.4851, allocations: 3.523 MB / 0.6392 GB, free: 7.777 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.293e-05/0.4852, allocations: 40.06 kB / 0.6392 GB, free: 7.738 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.351e-05/0.4853, allocations: 64 kB / 0.6393 GB, free: 7.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.093e-05/0.4854, allocations: 88 kB / 0.6394 GB, free: 7.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.4872, allocations: 0.6667 MB / 0.64 GB, free: 6.922 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001023/0.4873, allocations: 123.5 kB / 0.6401 GB, free: 6.801 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.4891, allocations: 423.5 kB / 0.6405 GB, free: 6.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002679/0.4894, allocations: 196 kB / 0.6407 GB, free: 6.191 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.001898/0.4913, allocations: 1.377 MB / 0.6421 GB, free: 4.805 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.4916, allocations: 157.9 kB / 0.6422 GB, free: 4.648 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003601/0.4919, allocations: 197.2 kB / 0.6424 GB, free: 4.449 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.4919, allocations: 8 kB / 0.6424 GB, free: 4.441 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.492, allocations: 0 / 0.6424 GB, free: 4.441 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.492, allocations: 3.984 kB / 0.6424 GB, free: 4.438 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006442/0.4984, allocations: 4.088 MB / 0.6464 GB, free: 204 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/0.4985, allocations: 8 kB / 0.6464 GB, free: 196 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004031/0.4989, allocations: 103.8 kB / 0.6465 GB, free: 92 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/0.4989, allocations: 8 kB / 0.6465 GB, free: 84 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.86e-05/0.499, allocations: 20.72 kB / 0.6465 GB, free: 64 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.166e-05/0.499, allocations: 23.92 kB / 0.6466 GB, free: 40 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/0.499, allocations: 7.938 kB / 0.6466 GB, free: 32 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.5005, allocations: 1.27 MB / 0.6478 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000468/0.501, allocations: 258.7 kB / 0.6481 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.5012, allocations: 20 kB / 0.6481 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.5018, allocations: 27.89 kB / 0.6481 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.5019, allocations: 59.75 kB / 0.6482 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.396e-05/0.502, allocations: 28 kB / 0.6482 GB, free: 14.25 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001784/0.5038, allocations: 1.275 MB / 0.6494 GB, free: 12.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5038, allocations: 0 / 0.6494 GB, free: 12.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002415/0.5062, allocations: 0.6999 MB / 0.6501 GB, free: 12.28 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.001841/0.508, allocations: 1.876 MB / 0.652 GB, free: 10.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002969/0.511, allocations: 2.021 MB / 0.6539 GB, free: 8.293 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.511, allocations: 1 kB / 0.6539 GB, free: 8.293 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005372/0.5116, allocations: 468 kB / 0.6544 GB, free: 7.836 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/0.5143, allocations: 222.5 kB / 0.6546 GB, free: 7.621 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02394/0.5382, allocations: 15.8 MB / 0.67 GB, free: 6.277 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002676/0.541, allocations: 2.327 MB / 0.6723 GB, free: 3.918 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/0.5424, allocations: 1.093 MB / 0.6734 GB, free: 2.824 MB / 490.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5424, allocations: 0 / 0.6734 GB, free: 2.824 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.778/5.32, allocations: 40.92 MB / 0.7133 GB, free: 119 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches