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.001574/0.001574, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2059/0.2059, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 71.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3234, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01085/0.3342, allocations: 9.527 MB / 0.5398 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006395/0.3407, allocations: 2.921 MB / 0.5427 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3419, allocations: 52.34 kB / 0.5427 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003586/0.3455, allocations: 1.99 MB / 0.5447 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002532/0.3481, allocations: 1.121 MB / 0.5458 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006702/0.3488, allocations: 294.5 kB / 0.546 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002844/0.3516, allocations: 2.34 MB / 0.5483 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002352/0.354, allocations: 2.301 MB / 0.5506 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.355, allocations: 0.88 MB / 0.5514 GB, free: 12.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.3564, allocations: 1.153 MB / 0.5525 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003374/0.3567, allocations: 192 kB / 0.5527 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.3579, allocations: 0.706 MB / 0.5534 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009387/0.3589, allocations: 1.107 MB / 0.5545 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.3601, allocations: 1.308 MB / 0.5558 GB, free: 7.812 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004351/0.3645, allocations: 4.338 MB / 0.56 GB, free: 3.457 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3645, allocations: 0 / 0.56 GB, free: 3.457 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3645, allocations: 0 / 0.56 GB, free: 3.457 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.003e-05/0.3646, allocations: 0 / 0.56 GB, free: 3.457 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.004581/0.3692, allocations: 2.938 MB / 0.5629 GB, free: 468 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3692, allocations: 12.03 kB / 0.5629 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005395/0.3698, allocations: 479.1 kB / 0.5634 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004877/0.3747, allocations: 1.582 MB / 0.5649 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002521/0.3772, allocations: 1.332 MB / 0.5662 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.3773, allocations: 151.8 kB / 0.5663 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000341/0.3777, allocations: 187.9 kB / 0.5665 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008612/0.3863, allocations: 6.246 MB / 0.5726 GB, free: 6.156 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/0.3864, allocations: 11.88 kB / 0.5726 GB, free: 6.145 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.3866, allocations: 87.91 kB / 0.5727 GB, free: 6.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001819/0.3884, allocations: 1.34 MB / 0.574 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00885/0.3973, allocations: 5.338 MB / 0.5792 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02379/0.4211, allocations: 20.08 MB / 0.5989 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003808/0.4249, allocations: 2.011 MB / 0.6008 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008931/0.4259, allocations: 0.6897 MB / 0.6015 GB, free: 7.879 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005921/0.4318, allocations: 3.621 MB / 0.605 GB, free: 4.113 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.4318, allocations: 35 kB / 0.6051 GB, free: 4.07 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.166e-06/0.4319, allocations: 0 / 0.6051 GB, free: 4.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005277/0.4371, allocations: 1.994 MB / 0.607 GB, free: 2.066 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.4372, allocations: 55.84 kB / 0.6071 GB, free: 2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.4399, allocations: 1.946 MB / 0.609 GB, free: 52 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.44, allocations: 33.7 kB / 0.609 GB, free: 12 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.4411, allocations: 1.911 MB / 0.6109 GB, free: 14.08 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002554/0.4414, allocations: 329.5 kB / 0.6112 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006642/0.442, allocations: 0.6273 MB / 0.6118 GB, free: 13.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4422, allocations: 353.9 kB / 0.6121 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.4433, allocations: 0.888 MB / 0.613 GB, free: 11.88 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002495/0.4458, allocations: 2.759 MB / 0.6157 GB, free: 8.184 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004404/0.4503, allocations: 3.958 MB / 0.6195 GB, free: 3.301 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.467e-05/0.4503, allocations: 20 kB / 0.6196 GB, free: 3.281 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005345/0.4557, allocations: 3.533 MB / 0.623 GB, free: 15.74 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.4558, allocations: 35.94 kB / 0.6231 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-05/0.4558, allocations: 68 kB / 0.6231 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.962e-05/0.4559, allocations: 92 kB / 0.6232 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.4577, allocations: 0.6511 MB / 0.6238 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.453e-05/0.4578, allocations: 127.5 kB / 0.624 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.4595, allocations: 436.7 kB / 0.6244 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.4597, allocations: 184 kB / 0.6246 GB, free: 14.16 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.001713/0.4615, allocations: 1.346 MB / 0.6259 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.4617, allocations: 162.9 kB / 0.626 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.462, allocations: 196.9 kB / 0.6262 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.4621, allocations: 11.94 kB / 0.6262 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.4621, allocations: 0 / 0.6262 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4621, allocations: 3.984 kB / 0.6262 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005946/0.468, allocations: 4.033 MB / 0.6302 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.4681, allocations: 4 kB / 0.6302 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/0.4685, allocations: 107.8 kB / 0.6303 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.4685, allocations: 8 kB / 0.6303 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.4685, allocations: 20 kB / 0.6303 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.528e-06/0.4685, allocations: 11.94 kB / 0.6303 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.4685, allocations: 11.98 kB / 0.6303 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.4699, allocations: 1.271 MB / 0.6316 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/0.4702, allocations: 259.7 kB / 0.6318 GB, free: 6.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.4704, allocations: 19.94 kB / 0.6318 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004519/0.4708, allocations: 35.92 kB / 0.6319 GB, free: 6.391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-05/0.4709, allocations: 55.77 kB / 0.6319 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.112e-05/0.471, allocations: 31.98 kB / 0.6319 GB, free: 6.305 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.4725, allocations: 1.271 MB / 0.6332 GB, free: 5.043 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4725, allocations: 0 / 0.6332 GB, free: 5.043 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002196/0.4747, allocations: 0.6891 MB / 0.6339 GB, free: 4.352 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.001684/0.4764, allocations: 1.873 MB / 0.6357 GB, free: 2.367 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002716/0.4791, allocations: 2.049 MB / 0.6377 GB, free: 344 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.4792, allocations: 1.875 kB / 0.6377 GB, free: 344 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.4797, allocations: 465.1 kB / 0.6381 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.4808, allocations: 251.6 kB / 0.6384 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02398/0.5048, allocations: 20.95 MB / 0.6588 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002049/0.5069, allocations: 2.275 MB / 0.6611 GB, free: 5.844 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001851/0.5087, allocations: 0.9559 MB / 0.662 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/0.5099, allocations: 1.05 MB / 0.663 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.5099, allocations: 0 / 0.663 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05586/0.5657, allocations: 32.59 MB / 0.6948 GB, free: 3.375 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.22, allocations: 16.28 kB / 0.6948 GB, free: 3.363 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