Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.11 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 79.86 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3146, allocations: 62.43 MB / 0.5306 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01217/0.3268, allocations: 9.522 MB / 0.5399 GB, free: 6.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006972/0.3338, allocations: 2.921 MB / 0.5427 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.3357, allocations: 48.16 kB / 0.5428 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004408/0.3401, allocations: 2.006 MB / 0.5447 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003298/0.3435, allocations: 1.098 MB / 0.5458 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009557/0.3445, allocations: 290.6 kB / 0.5461 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003969/0.3485, allocations: 2.332 MB / 0.5484 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003284/0.3518, allocations: 2.309 MB / 0.5506 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.3537, allocations: 0.88 MB / 0.5515 GB, free: 12.36 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002105/0.3559, allocations: 1.153 MB / 0.5526 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006793/0.3566, allocations: 196 kB / 0.5528 GB, free: 11.01 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.3583, allocations: 0.6982 MB / 0.5535 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001791/0.3601, allocations: 1.099 MB / 0.5545 GB, free: 9.211 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002734/0.3629, allocations: 1.308 MB / 0.5558 GB, free: 7.895 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006623/0.3695, allocations: 4.33 MB / 0.5601 GB, free: 3.547 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3696, allocations: 4 kB / 0.5601 GB, free: 3.543 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3696, allocations: 0 / 0.5601 GB, free: 3.543 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001617/0.3698, allocations: 0 / 0.5601 GB, free: 3.543 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.006598/0.3764, allocations: 2.93 MB / 0.5629 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.3764, allocations: 12.03 kB / 0.5629 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001056/0.3775, allocations: 487 kB / 0.5634 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005386/0.3829, allocations: 1.577 MB / 0.5649 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.3858, allocations: 1.344 MB / 0.5662 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.386, allocations: 145.3 kB / 0.5664 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005905/0.3866, allocations: 183.9 kB / 0.5666 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/0.3976, allocations: 6.25 MB / 0.5727 GB, free: 6.242 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.264e-05/0.3977, allocations: 15.88 kB / 0.5727 GB, free: 6.227 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003781/0.3981, allocations: 91.83 kB / 0.5728 GB, free: 6.137 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00224/0.4004, allocations: 1.34 MB / 0.5741 GB, free: 4.793 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.4115, allocations: 5.334 MB / 0.5793 GB, free: 15.44 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03034/0.4418, allocations: 20.08 MB / 0.5989 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.4463, allocations: 1.995 MB / 0.6008 GB, free: 8.672 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.4475, allocations: 0.6935 MB / 0.6015 GB, free: 7.977 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007202/0.4547, allocations: 3.624 MB / 0.6051 GB, free: 4.207 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.4548, allocations: 35 kB / 0.6051 GB, free: 4.164 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.506e-06/0.4548, allocations: 4 kB / 0.6051 GB, free: 4.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005875/0.4607, allocations: 1.99 MB / 0.607 GB, free: 2.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.4608, allocations: 59.78 kB / 0.6071 GB, free: 2.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003014/0.4638, allocations: 1.942 MB / 0.609 GB, free: 148 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.944e-05/0.4639, allocations: 33.7 kB / 0.609 GB, free: 108 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001617/0.4655, allocations: 1.915 MB / 0.6109 GB, free: 14.17 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000416/0.466, allocations: 329.6 kB / 0.6112 GB, free: 13.84 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000928/0.4669, allocations: 0.6233 MB / 0.6118 GB, free: 13.21 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.4672, allocations: 357.9 kB / 0.6122 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4686, allocations: 0.8881 MB / 0.613 GB, free: 11.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/0.4718, allocations: 2.755 MB / 0.6157 GB, free: 8.277 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005162/0.477, allocations: 3.972 MB / 0.6196 GB, free: 3.383 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.017e-05/0.4771, allocations: 20 kB / 0.6196 GB, free: 3.363 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006617/0.4837, allocations: 3.516 MB / 0.623 GB, free: 15.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.455e-05/0.4838, allocations: 32 kB / 0.6231 GB, free: 15.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.584e-05/0.4839, allocations: 72.16 kB / 0.6231 GB, free: 15.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.599e-05/0.4841, allocations: 84 kB / 0.6232 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002289/0.4863, allocations: 0.6589 MB / 0.6239 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001485/0.4865, allocations: 127.5 kB / 0.624 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/0.489, allocations: 424.8 kB / 0.6244 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000452/0.4895, allocations: 188 kB / 0.6246 GB, free: 14.27 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.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 (362): * Single equations (assignments): 357 * Array equations: 5 * 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.002452/0.4919, allocations: 1.361 MB / 0.6259 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002976/0.4922, allocations: 162.9 kB / 0.6261 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004455/0.4927, allocations: 196.8 kB / 0.6263 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/0.4927, allocations: 8 kB / 0.6263 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.4927, allocations: 0 / 0.6263 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4928, allocations: 3.984 kB / 0.6263 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007579/0.5003, allocations: 4.032 MB / 0.6302 GB, free: 8.348 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.5004, allocations: 4 kB / 0.6302 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/0.5008, allocations: 103.8 kB / 0.6303 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.382e-05/0.5009, allocations: 8 kB / 0.6303 GB, free: 8.234 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.842e-05/0.5009, allocations: 20 kB / 0.6303 GB, free: 8.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.708e-05/0.501, allocations: 23.8 kB / 0.6304 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.501, allocations: 8.531 kB / 0.6304 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.5028, allocations: 1.275 MB / 0.6316 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004874/0.5033, allocations: 255.7 kB / 0.6318 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.5035, allocations: 19.98 kB / 0.6319 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005152/0.5041, allocations: 27.92 kB / 0.6319 GB, free: 6.488 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.5042, allocations: 55.83 kB / 0.6319 GB, free: 6.434 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.308e-05/0.5043, allocations: 31.98 kB / 0.632 GB, free: 6.402 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002231/0.5065, allocations: 1.267 MB / 0.6332 GB, free: 5.145 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.835e-06/0.5065, allocations: 0 / 0.6332 GB, free: 5.145 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002908/0.5094, allocations: 0.6968 MB / 0.6339 GB, free: 4.445 MB / 494.1 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 (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.002473/0.5119, allocations: 1.873 MB / 0.6357 GB, free: 2.461 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003696/0.5157, allocations: 2.053 MB / 0.6377 GB, free: 440 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.5157, allocations: 3.938 kB / 0.6377 GB, free: 436 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007143/0.5165, allocations: 465.1 kB / 0.6382 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.5181, allocations: 247.9 kB / 0.6384 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03692/0.555, allocations: 20.94 MB / 0.6589 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003509/0.5586, allocations: 2.282 MB / 0.6611 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002169/0.5608, allocations: 0.9558 MB / 0.662 GB, free: 4.965 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/0.5626, allocations: 1.042 MB / 0.663 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of SimCode: time 1.302e-06/0.5626, allocations: 0 / 0.663 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0711/0.6337, allocations: 32.6 MB / 0.6949 GB, free: 3.457 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.42, allocations: 8.922 kB / 0.6949 GB, free: 3.449 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches