Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.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.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",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.001623/0.001622, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001792/0.001792, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.383/1.383, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2125/0.2125, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 64.73 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01051/0.1223, allocations: 9.716 MB / 479.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00571/0.1281, allocations: 2.92 MB / 482 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/0.1292, allocations: 63.81 kB / 482.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003647/0.1329, allocations: 1.99 MB / 484 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002863/0.1358, allocations: 1.125 MB / 485.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007813/0.1366, allocations: 307.4 kB / 485.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003326/0.1399, allocations: 2.329 MB / 487.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002554/0.1425, allocations: 2.332 MB / 490.1 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.1437, allocations: 0.9073 MB / 491 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.145, allocations: 1.176 MB / 492.2 MB, free: 7.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000309/0.1453, allocations: 200 kB / 492.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001273/0.1466, allocations: 0.6982 MB / 493.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000896/0.1475, allocations: 1.138 MB / 494.2 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.1486, allocations: 1.343 MB / 495.6 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00389/0.1525, allocations: 4.287 MB / 499.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1525, allocations: 0 / 499.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1526, allocations: 0 / 499.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.42e-05/0.1526, allocations: 0 / 499.9 MB, free: 15.58 MB / 382.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.005082/0.1577, allocations: 2.946 MB / 0.491 GB, free: 12.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.1578, allocations: 12.03 kB / 0.491 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006533/0.1585, allocations: 495.8 kB / 0.4915 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005199/0.1637, allocations: 1.588 MB / 0.4931 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002706/0.1664, allocations: 1.34 MB / 0.4944 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.1666, allocations: 147.9 kB / 0.4945 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003451/0.1669, allocations: 191.9 kB / 0.4947 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009224/0.1762, allocations: 6.436 MB / 0.501 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.464e-05/0.1762, allocations: 11.88 kB / 0.501 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002243/0.1765, allocations: 87.91 kB / 0.5011 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002072/0.1785, allocations: 1.403 MB / 0.5025 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2543/0.4329, allocations: 5.485 MB / 0.5078 GB, free: 45.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02851/0.4614, allocations: 20.61 MB / 0.5279 GB, free: 31.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003599/0.4651, allocations: 2.008 MB / 0.5299 GB, free: 30.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008427/0.4659, allocations: 0.6958 MB / 0.5306 GB, free: 30.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005217/0.4712, allocations: 3.627 MB / 0.5341 GB, free: 27.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.4712, allocations: 39 kB / 0.5342 GB, free: 27.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 3.336e-06/0.4712, allocations: 4 kB / 0.5342 GB, free: 27.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004892/0.4761, allocations: 1.981 MB / 0.5361 GB, free: 26.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.4762, allocations: 59.78 kB / 0.5362 GB, free: 26.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002209/0.4784, allocations: 1.966 MB / 0.5381 GB, free: 24.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.506e-05/0.4785, allocations: 37.7 kB / 0.5381 GB, free: 24.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007235/0.4792, allocations: 1.885 MB / 0.5399 GB, free: 22.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.4793, allocations: 311.9 kB / 0.5402 GB, free: 21.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005447/0.4799, allocations: 0.6267 MB / 0.5409 GB, free: 21.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.346e-05/0.48, allocations: 353.9 kB / 0.5412 GB, free: 20.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009156/0.4809, allocations: 0.892 MB / 0.5421 GB, free: 19.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.4829, allocations: 2.776 MB / 0.5448 GB, free: 16.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004634/0.4876, allocations: 3.997 MB / 0.5487 GB, free: 11.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.801e-05/0.4876, allocations: 20 kB / 0.5487 GB, free: 11.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005558/0.4932, allocations: 3.549 MB / 0.5522 GB, free: 7.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.4933, allocations: 36 kB / 0.5522 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-05/0.4934, allocations: 67.98 kB / 0.5523 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-05/0.4934, allocations: 92.06 kB / 0.5524 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.495, allocations: 0.6627 MB / 0.553 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.696e-05/0.4951, allocations: 132.1 kB / 0.5531 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4968, allocations: 415.5 kB / 0.5535 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001881/0.497, allocations: 195 kB / 0.5537 GB, free: 6.148 MB / 382.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.001842/0.4989, allocations: 1.373 MB / 0.555 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/0.4991, allocations: 153.9 kB / 0.5552 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.4994, allocations: 197.2 kB / 0.5554 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.4994, allocations: 19.88 kB / 0.5554 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.4994, allocations: 0 / 0.5554 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4994, allocations: 3.984 kB / 0.5554 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004965/0.5044, allocations: 4.094 MB / 0.5594 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.5044, allocations: 8 kB / 0.5594 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.5048, allocations: 103.8 kB / 0.5595 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.5048, allocations: 8 kB / 0.5595 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.5049, allocations: 22.42 kB / 0.5595 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.338e-06/0.5049, allocations: 15.92 kB / 0.5596 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.5049, allocations: 8 kB / 0.5596 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.5064, allocations: 1.276 MB / 0.5608 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.5068, allocations: 246.8 kB / 0.561 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.5069, allocations: 15.98 kB / 0.5611 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.5074, allocations: 27.98 kB / 0.5611 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5075, allocations: 51.83 kB / 0.5611 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.274e-05/0.5076, allocations: 43.02 kB / 0.5612 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001842/0.5094, allocations: 1.279 MB / 0.5624 GB, free: 12.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5094, allocations: 3.938 kB / 0.5624 GB, free: 12.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002903/0.5123, allocations: 0.7063 MB / 0.5631 GB, free: 12.25 MB / 398.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.001953/0.5143, allocations: 1.872 MB / 0.5649 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003532/0.5178, allocations: 2.261 MB / 0.5672 GB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5179, allocations: 0 / 0.5672 GB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005138/0.5184, allocations: 469 kB / 0.5676 GB, free: 7.578 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.5198, allocations: 241.6 kB / 0.5678 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03213/0.5519, allocations: 22.38 MB / 0.5897 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004782/0.5568, allocations: 2.319 MB / 0.592 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003482/0.5603, allocations: 0.9635 MB / 0.5929 GB, free: 10.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/0.5619, allocations: 1.073 MB / 0.5939 GB, free: 9.559 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5619, allocations: 0 / 0.5939 GB, free: 9.559 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06539/0.6273, allocations: 32.5 MB / 0.6257 GB, free: 9.215 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.408/9.036, allocations: 13.94 kB / 0.6257 GB, free: 9.207 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches