Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 113.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 179.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2189/0.2189, allocations: 44.19 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3005, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01098/0.3115, allocations: 9.737 MB / 0.5279 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006802/0.3184, allocations: 2.916 MB / 0.5308 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001847/0.3203, allocations: 53.72 kB / 0.5308 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00434/0.3247, allocations: 1.987 MB / 0.5328 GB, free: 9.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00329/0.328, allocations: 1.132 MB / 0.5339 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009087/0.3289, allocations: 286.9 kB / 0.5341 GB, free: 8.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003682/0.3326, allocations: 2.325 MB / 0.5364 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003332/0.336, allocations: 2.343 MB / 0.5387 GB, free: 5.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001928/0.338, allocations: 0.9032 MB / 0.5396 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002152/0.3401, allocations: 1.177 MB / 0.5407 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006289/0.3408, allocations: 197.9 kB / 0.5409 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.3425, allocations: 0.6987 MB / 0.5416 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001593/0.3441, allocations: 1.143 MB / 0.5427 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002072/0.3462, allocations: 1.359 MB / 0.5441 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006536/0.3527, allocations: 4.46 MB / 0.5484 GB, free: 13.28 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3528, allocations: 0 / 0.5484 GB, free: 13.28 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3528, allocations: 0 / 0.5484 GB, free: 13.28 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001269/0.3529, allocations: 0 / 0.5484 GB, free: 13.28 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.006372/0.3593, allocations: 3.024 MB / 0.5514 GB, free: 10.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/0.3594, allocations: 8.031 kB / 0.5514 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008501/0.3602, allocations: 495.8 kB / 0.5518 GB, free: 9.691 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005494/0.3657, allocations: 1.602 MB / 0.5534 GB, free: 8.086 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.3686, allocations: 1.364 MB / 0.5547 GB, free: 6.676 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.3688, allocations: 147.9 kB / 0.5549 GB, free: 6.531 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005635/0.3694, allocations: 191.9 kB / 0.5551 GB, free: 6.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.3811, allocations: 6.432 MB / 0.5613 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-05/0.3812, allocations: 15.88 kB / 0.5614 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00037/0.3816, allocations: 87.91 kB / 0.5614 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00252/0.3841, allocations: 1.407 MB / 0.5628 GB, free: 14.13 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/0.3955, allocations: 5.487 MB / 0.5682 GB, free: 8.629 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03259/0.4282, allocations: 20.5 MB / 0.5882 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004502/0.4327, allocations: 2.009 MB / 0.5902 GB, free: 1.414 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.4339, allocations: 0.6914 MB / 0.5908 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007309/0.4412, allocations: 3.644 MB / 0.5944 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.417e-05/0.4413, allocations: 38.94 kB / 0.5944 GB, free: 12.88 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 4.418e-06/0.4413, allocations: 0 / 0.5944 GB, free: 12.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005805/0.4472, allocations: 1.994 MB / 0.5964 GB, free: 10.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/0.4473, allocations: 55.84 kB / 0.5964 GB, free: 10.81 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003479/0.4507, allocations: 1.967 MB / 0.5984 GB, free: 8.844 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.4509, allocations: 37.7 kB / 0.5984 GB, free: 8.801 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001735/0.4526, allocations: 1.954 MB / 0.6003 GB, free: 6.824 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004445/0.4531, allocations: 333.5 kB / 0.6006 GB, free: 6.496 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001143/0.4543, allocations: 0.6235 MB / 0.6012 GB, free: 5.863 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.4545, allocations: 357.9 kB / 0.6016 GB, free: 5.508 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.4561, allocations: 0.8959 MB / 0.6024 GB, free: 4.609 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003261/0.4593, allocations: 2.774 MB / 0.6051 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005051/0.4644, allocations: 4.003 MB / 0.6091 GB, free: 11.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.625e-05/0.4645, allocations: 20 kB / 0.6091 GB, free: 11.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.006763/0.4713, allocations: 3.566 MB / 0.6126 GB, free: 8.363 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.708e-05/0.4714, allocations: 36 kB / 0.6126 GB, free: 8.328 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.4716, allocations: 64 kB / 0.6127 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001209/0.4717, allocations: 88 kB / 0.6127 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/0.4738, allocations: 0.6628 MB / 0.6134 GB, free: 7.516 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001331/0.474, allocations: 127.5 kB / 0.6135 GB, free: 7.391 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.4762, allocations: 433.2 kB / 0.6139 GB, free: 6.965 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004084/0.4766, allocations: 184 kB / 0.6141 GB, free: 6.785 MB / 478.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002326/0.479, allocations: 1.377 MB / 0.6154 GB, free: 5.398 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/0.4793, allocations: 174.8 kB / 0.6156 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004454/0.4797, allocations: 193.2 kB / 0.6158 GB, free: 5.035 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/0.4798, allocations: 12 kB / 0.6158 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4798, allocations: 4 kB / 0.6158 GB, free: 5.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.4798, allocations: 7.922 kB / 0.6158 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007312/0.4871, allocations: 4.093 MB / 0.6198 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/0.4872, allocations: 8.844 kB / 0.6198 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.4877, allocations: 99.83 kB / 0.6199 GB, free: 0.668 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-05/0.4877, allocations: 15.98 kB / 0.6199 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.4877, allocations: 23.94 kB / 0.62 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-05/0.4878, allocations: 8 kB / 0.62 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.4878, allocations: 11.94 kB / 0.62 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.4895, allocations: 1.275 MB / 0.6212 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004695/0.49, allocations: 259.7 kB / 0.6215 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002606/0.4903, allocations: 12 kB / 0.6215 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005601/0.4908, allocations: 35.88 kB / 0.6215 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.491, allocations: 63.75 kB / 0.6216 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.531e-05/0.491, allocations: 32 kB / 0.6216 GB, free: 14.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002165/0.4932, allocations: 1.279 MB / 0.6228 GB, free: 13.55 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4932, allocations: 0 / 0.6228 GB, free: 13.55 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002756/0.496, allocations: 0.7202 MB / 0.6236 GB, free: 12.82 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.002322/0.4983, allocations: 1.877 MB / 0.6254 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003442/0.5018, allocations: 2.062 MB / 0.6274 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/0.5018, allocations: 4.062 kB / 0.6274 GB, free: 8.781 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006663/0.5025, allocations: 465.5 kB / 0.6278 GB, free: 8.328 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.5041, allocations: 256 kB / 0.6281 GB, free: 8.082 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03543/0.5396, allocations: 21.2 MB / 0.6488 GB, free: 324 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003591/0.5432, allocations: 2.319 MB / 0.6511 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002395/0.5456, allocations: 0.9601 MB / 0.652 GB, free: 13 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/0.5475, allocations: 1.069 MB / 0.653 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of SimCode: time 1.142e-06/0.5476, allocations: 0 / 0.653 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07209/0.6197, allocations: 33.12 MB / 0.6854 GB, free: 10.99 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/13.01, allocations: 8.25 kB / 0.6854 GB, free: 10.98 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches