Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.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.CutTorque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1985/0.1985, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3188, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01021/0.3291, allocations: 9.535 MB / 0.5398 GB, free: 5.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005868/0.335, allocations: 2.928 MB / 0.5427 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001337/0.3364, allocations: 49.25 kB / 0.5427 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003724/0.3401, allocations: 1.986 MB / 0.5447 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002968/0.3431, allocations: 1.137 MB / 0.5458 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.344, allocations: 290.6 kB / 0.546 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00331/0.3474, allocations: 2.327 MB / 0.5483 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002823/0.3502, allocations: 2.304 MB / 0.5506 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001278/0.3515, allocations: 0.8722 MB / 0.5514 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.353, allocations: 1.156 MB / 0.5526 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004916/0.3535, allocations: 195.9 kB / 0.5527 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.3548, allocations: 0.6982 MB / 0.5534 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001135/0.356, allocations: 1.114 MB / 0.5545 GB, free: 9.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.3577, allocations: 1.308 MB / 0.5558 GB, free: 7.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005108/0.3628, allocations: 4.33 MB / 0.56 GB, free: 3.473 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3629, allocations: 0 / 0.56 GB, free: 3.473 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3629, allocations: 4 kB / 0.56 GB, free: 3.469 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.363, allocations: 0 / 0.56 GB, free: 3.469 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.005738/0.3688, allocations: 2.942 MB / 0.5629 GB, free: 476 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3688, allocations: 8.031 kB / 0.5629 GB, free: 468 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006859/0.3695, allocations: 479.2 kB / 0.5634 GB, free: 15.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004953/0.3745, allocations: 1.578 MB / 0.5649 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/0.3774, allocations: 1.344 MB / 0.5662 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.3775, allocations: 147.8 kB / 0.5663 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004133/0.3779, allocations: 187.9 kB / 0.5665 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009248/0.3872, allocations: 6.246 MB / 0.5726 GB, free: 6.164 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.998e-05/0.3873, allocations: 11.88 kB / 0.5726 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002635/0.3875, allocations: 87.91 kB / 0.5727 GB, free: 6.066 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001991/0.3895, allocations: 1.344 MB / 0.574 GB, free: 4.719 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00935/0.3989, allocations: 5.33 MB / 0.5792 GB, free: 15.37 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02591/0.4249, allocations: 20.08 MB / 0.5989 GB, free: 10.72 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004267/0.4292, allocations: 2.015 MB / 0.6008 GB, free: 8.578 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009491/0.4302, allocations: 0.6936 MB / 0.6015 GB, free: 7.883 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007217/0.4374, allocations: 3.609 MB / 0.605 GB, free: 4.129 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.4375, allocations: 50.98 kB / 0.6051 GB, free: 4.07 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.807e-06/0.4375, allocations: 0 / 0.6051 GB, free: 4.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005692/0.4432, allocations: 1.982 MB / 0.607 GB, free: 2.078 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.4433, allocations: 59.84 kB / 0.6071 GB, free: 2.008 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/0.4467, allocations: 1.946 MB / 0.609 GB, free: 60 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.437e-05/0.4468, allocations: 33.7 kB / 0.609 GB, free: 20 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001325/0.4482, allocations: 1.919 MB / 0.6109 GB, free: 14.08 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/0.4485, allocations: 321.5 kB / 0.6112 GB, free: 13.76 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009066/0.4494, allocations: 0.6273 MB / 0.6118 GB, free: 13.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.4496, allocations: 357.9 kB / 0.6121 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.4511, allocations: 0.8842 MB / 0.613 GB, free: 11.88 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002471/0.4536, allocations: 2.759 MB / 0.6157 GB, free: 8.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/0.4576, allocations: 3.954 MB / 0.6195 GB, free: 3.312 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.028e-05/0.4576, allocations: 20 kB / 0.6196 GB, free: 3.293 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.00564/0.4633, allocations: 3.536 MB / 0.623 GB, free: 15.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.828e-05/0.4634, allocations: 36 kB / 0.6231 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.531e-05/0.4635, allocations: 64 kB / 0.6231 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.128e-05/0.4636, allocations: 91.94 kB / 0.6232 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.4654, allocations: 0.6511 MB / 0.6238 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000104/0.4656, allocations: 131.5 kB / 0.624 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.4675, allocations: 437.1 kB / 0.6244 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002977/0.4678, allocations: 188 kB / 0.6246 GB, free: 14.17 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.001833/0.4696, allocations: 1.334 MB / 0.6259 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.4699, allocations: 166.9 kB / 0.626 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003753/0.4702, allocations: 192.9 kB / 0.6262 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/0.4703, allocations: 19.92 kB / 0.6262 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4703, allocations: 4 kB / 0.6262 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.4703, allocations: 3.984 kB / 0.6262 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006679/0.477, allocations: 4.025 MB / 0.6302 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/0.477, allocations: 8 kB / 0.6302 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000416/0.4775, allocations: 107.9 kB / 0.6303 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.334e-05/0.4775, allocations: 8 kB / 0.6303 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.842e-05/0.4775, allocations: 16 kB / 0.6303 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.041e-05/0.4776, allocations: 11.94 kB / 0.6303 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.4776, allocations: 11.94 kB / 0.6303 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.4791, allocations: 1.275 MB / 0.6316 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004259/0.4795, allocations: 259.7 kB / 0.6318 GB, free: 6.453 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.4798, allocations: 20 kB / 0.6318 GB, free: 6.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005452/0.4803, allocations: 27.92 kB / 0.6319 GB, free: 6.406 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.537e-05/0.4804, allocations: 55.83 kB / 0.6319 GB, free: 6.352 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.805e-05/0.4805, allocations: 31.98 kB / 0.6319 GB, free: 6.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001813/0.4823, allocations: 1.275 MB / 0.6332 GB, free: 5.055 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4823, allocations: 4 kB / 0.6332 GB, free: 5.051 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002485/0.4848, allocations: 0.6813 MB / 0.6339 GB, free: 4.367 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.001879/0.4867, allocations: 1.881 MB / 0.6357 GB, free: 2.375 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002927/0.4897, allocations: 2.046 MB / 0.6377 GB, free: 356 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.4897, allocations: 4 kB / 0.6377 GB, free: 352 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005555/0.4902, allocations: 461.4 kB / 0.6381 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.4916, allocations: 249.6 kB / 0.6384 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02907/0.5207, allocations: 20.95 MB / 0.6588 GB, free: 8.164 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002687/0.5234, allocations: 2.271 MB / 0.661 GB, free: 5.863 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.002044/0.5255, allocations: 0.9597 MB / 0.662 GB, free: 4.898 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/0.5269, allocations: 1.042 MB / 0.663 GB, free: 3.855 MB / 0.5138 GB Notification: Performance of SimCode: time 8.71e-07/0.5269, allocations: 0 / 0.663 GB, free: 3.855 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0565/0.5834, allocations: 32.6 MB / 0.6948 GB, free: 3.387 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.11, allocations: 3.938 kB / 0.6948 GB, free: 3.383 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3_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_CutTorque3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches