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.001429/0.001429, allocations: 114.3 kB / 17.78 MB, free: 5.129 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.001641/0.001641, allocations: 184.2 kB / 18.72 MB, free: 4.203 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.323/1.323, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.1989/0.1989, allocations: 44.19 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 68.12 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2817, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.009403/0.2911, allocations: 9.738 MB / 0.5279 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004996/0.2961, allocations: 2.929 MB / 0.5308 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006062/0.2967, allocations: 53.38 kB / 0.5308 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003314/0.3001, allocations: 1.984 MB / 0.5328 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.3022, allocations: 1.152 MB / 0.5339 GB, free: 8.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005998/0.3028, allocations: 299.4 kB / 0.5342 GB, free: 8.129 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002328/0.3052, allocations: 2.328 MB / 0.5365 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002279/0.3075, allocations: 2.328 MB / 0.5387 GB, free: 5.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009476/0.3084, allocations: 0.8952 MB / 0.5396 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.3096, allocations: 1.18 MB / 0.5408 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003029/0.3099, allocations: 202.1 kB / 0.5409 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.3111, allocations: 0.7034 MB / 0.5416 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009637/0.3121, allocations: 1.159 MB / 0.5428 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.3132, allocations: 1.351 MB / 0.5441 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003964/0.3172, allocations: 4.471 MB / 0.5484 GB, free: 13.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3172, allocations: 0 / 0.5484 GB, free: 13.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3172, allocations: 0 / 0.5484 GB, free: 13.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.567e-05/0.3173, allocations: 0 / 0.5484 GB, free: 13.26 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.004049/0.3213, allocations: 3.024 MB / 0.5514 GB, free: 10.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3214, allocations: 16.03 kB / 0.5514 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005022/0.3219, allocations: 495.8 kB / 0.5519 GB, free: 9.664 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00502/0.3269, allocations: 1.598 MB / 0.5534 GB, free: 8.062 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.3293, allocations: 1.36 MB / 0.5548 GB, free: 6.656 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.3294, allocations: 147.9 kB / 0.5549 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003148/0.3298, allocations: 195.9 kB / 0.5551 GB, free: 6.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008004/0.3378, allocations: 6.432 MB / 0.5614 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.261e-05/0.3378, allocations: 11.88 kB / 0.5614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.3381, allocations: 91.91 kB / 0.5615 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002077/0.3401, allocations: 1.407 MB / 0.5629 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00845/0.3486, allocations: 5.494 MB / 0.5682 GB, free: 8.598 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02425/0.3729, allocations: 20.5 MB / 0.5882 GB, free: 3.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003757/0.3767, allocations: 2.005 MB / 0.5902 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008329/0.3775, allocations: 0.6953 MB / 0.5909 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005903/0.3834, allocations: 3.64 MB / 0.5944 GB, free: 12.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.3835, allocations: 38.98 kB / 0.5945 GB, free: 12.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 2.405e-06/0.3835, allocations: 0 / 0.5945 GB, free: 12.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.004973/0.3885, allocations: 1.99 MB / 0.5964 GB, free: 10.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.3885, allocations: 55.84 kB / 0.5965 GB, free: 10.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.3906, allocations: 1.974 MB / 0.5984 GB, free: 8.816 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.3907, allocations: 37.69 kB / 0.5984 GB, free: 8.773 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.3918, allocations: 1.954 MB / 0.6003 GB, free: 6.797 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.392, allocations: 333.5 kB / 0.6007 GB, free: 6.469 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006536/0.3927, allocations: 0.6196 MB / 0.6013 GB, free: 5.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3928, allocations: 357.9 kB / 0.6016 GB, free: 5.484 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.3939, allocations: 0.8959 MB / 0.6025 GB, free: 4.586 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00221/0.3961, allocations: 2.774 MB / 0.6052 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003619/0.3998, allocations: 4.007 MB / 0.6091 GB, free: 11.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.551e-05/0.3998, allocations: 20 kB / 0.6091 GB, free: 11.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004525/0.4043, allocations: 3.563 MB / 0.6126 GB, free: 8.34 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.4044, allocations: 32 kB / 0.6126 GB, free: 8.309 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-05/0.4045, allocations: 68 kB / 0.6127 GB, free: 8.242 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.267e-05/0.4045, allocations: 88 kB / 0.6128 GB, free: 8.156 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.4062, allocations: 0.6511 MB / 0.6134 GB, free: 7.504 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.463e-05/0.4063, allocations: 135.4 kB / 0.6135 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.4079, allocations: 437.1 kB / 0.614 GB, free: 6.941 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.4081, allocations: 184 kB / 0.6141 GB, free: 6.762 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.001585/0.4097, allocations: 1.381 MB / 0.6155 GB, free: 5.371 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.4098, allocations: 166.8 kB / 0.6156 GB, free: 5.207 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.4101, allocations: 197.2 kB / 0.6158 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.4101, allocations: 11.98 kB / 0.6158 GB, free: 5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.4102, allocations: 7.984 kB / 0.6159 GB, free: 4.992 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4102, allocations: 4 kB / 0.6159 GB, free: 4.988 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005564/0.4157, allocations: 4.096 MB / 0.6199 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.4158, allocations: 8 kB / 0.6199 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.4161, allocations: 104.7 kB / 0.62 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/0.4162, allocations: 8 kB / 0.62 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.4162, allocations: 20 kB / 0.62 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.876e-06/0.4162, allocations: 11.94 kB / 0.62 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.4162, allocations: 11.94 kB / 0.62 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.4175, allocations: 1.268 MB / 0.6213 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.4178, allocations: 263.6 kB / 0.6215 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.418, allocations: 23.91 kB / 0.6215 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004702/0.4185, allocations: 31.92 kB / 0.6216 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/0.4185, allocations: 59.77 kB / 0.6216 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-05/0.4186, allocations: 32 kB / 0.6216 GB, free: 14.79 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001452/0.4201, allocations: 1.287 MB / 0.6229 GB, free: 13.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4201, allocations: 0 / 0.6229 GB, free: 13.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002006/0.4221, allocations: 0.7086 MB / 0.6236 GB, free: 12.8 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.001666/0.4238, allocations: 1.885 MB / 0.6254 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.4262, allocations: 2.054 MB / 0.6274 GB, free: 8.766 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4262, allocations: 4.062 kB / 0.6274 GB, free: 8.762 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005083/0.4267, allocations: 463.9 kB / 0.6279 GB, free: 8.309 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.4279, allocations: 261.3 kB / 0.6281 GB, free: 8.059 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/0.4514, allocations: 21.21 MB / 0.6488 GB, free: 292 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002149/0.4535, allocations: 2.312 MB / 0.6511 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001918/0.4555, allocations: 0.964 MB / 0.652 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.4567, allocations: 1.069 MB / 0.6531 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of SimCode: time 8.92e-07/0.4567, allocations: 0 / 0.6531 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05207/0.5088, allocations: 33.11 MB / 0.6854 GB, free: 10.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12.02, allocations: 7.359 kB / 0.6854 GB, free: 10.96 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