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.001141/0.001141, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001419/0.001419, allocations: 192 kB / 18.55 MB, free: 4.566 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.308/1.308, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.1948/0.1948, allocations: 44.17 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.66 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.1008, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01099/0.1119, allocations: 9.739 MB / 479.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005577/0.1175, allocations: 2.913 MB / 482 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008142/0.1183, allocations: 47.94 kB / 482.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00323/0.1215, allocations: 2.009 MB / 484.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002068/0.1237, allocations: 1.121 MB / 485.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006164/0.1243, allocations: 291.4 kB / 485.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002554/0.1269, allocations: 2.333 MB / 487.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00258/0.1295, allocations: 2.336 MB / 490.1 MB, free: 9.363 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.1307, allocations: 0.8995 MB / 491 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.1323, allocations: 1.176 MB / 492.2 MB, free: 7.281 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005079/0.1328, allocations: 196 kB / 492.4 MB, free: 7.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001254/0.1341, allocations: 0.6982 MB / 493.1 MB, free: 6.391 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001125/0.1352, allocations: 1.142 MB / 494.2 MB, free: 5.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.1366, allocations: 1.351 MB / 495.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003788/0.1404, allocations: 4.291 MB / 499.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.1405, allocations: 4 kB / 499.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1405, allocations: 0 / 499.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.355e-05/0.1405, 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.00407/0.1446, allocations: 2.931 MB / 0.491 GB, free: 12.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1447, allocations: 12.03 kB / 0.491 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004972/0.1452, allocations: 0.492 MB / 0.4915 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005129/0.1503, allocations: 1.584 MB / 0.4931 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/0.1527, allocations: 1.348 MB / 0.4944 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.1528, allocations: 151.8 kB / 0.4945 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003159/0.1532, allocations: 187.9 kB / 0.4947 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008591/0.1618, allocations: 6.425 MB / 0.501 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.205e-05/0.1618, allocations: 15.88 kB / 0.501 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002165/0.1621, allocations: 87.89 kB / 0.5011 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002017/0.1641, allocations: 1.407 MB / 0.5025 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2264/0.3905, allocations: 5.486 MB / 0.5078 GB, free: 45.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02785/0.4184, allocations: 20.6 MB / 0.5279 GB, free: 32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00331/0.4218, allocations: 2.011 MB / 0.5299 GB, free: 30.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007742/0.4226, allocations: 0.7009 MB / 0.5306 GB, free: 30.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004855/0.4274, allocations: 3.627 MB / 0.5341 GB, free: 28.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.545e-05/0.4275, allocations: 37.06 kB / 0.5342 GB, free: 27.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.715e-06/0.4275, allocations: 0 / 0.5342 GB, free: 27.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004338/0.4318, allocations: 1.989 MB / 0.5361 GB, free: 26.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.4318, allocations: 59.78 kB / 0.5362 GB, free: 26.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.4336, allocations: 1.958 MB / 0.5381 GB, free: 24.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.4336, allocations: 37.7 kB / 0.5381 GB, free: 24.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005862/0.4342, allocations: 1.887 MB / 0.54 GB, free: 22.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.4344, allocations: 310.6 kB / 0.5402 GB, free: 21.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005209/0.4349, allocations: 0.623 MB / 0.5409 GB, free: 21.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.313e-05/0.435, allocations: 353.9 kB / 0.5412 GB, free: 20.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.4359, allocations: 0.896 MB / 0.5421 GB, free: 20.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.4373, allocations: 2.776 MB / 0.5448 GB, free: 16.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002816/0.4401, allocations: 3.995 MB / 0.5487 GB, free: 11.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.352e-05/0.4402, allocations: 24 kB / 0.5487 GB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004289/0.4445, allocations: 3.549 MB / 0.5522 GB, free: 7.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/0.4445, allocations: 32 kB / 0.5522 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.372e-05/0.4446, allocations: 68 kB / 0.5523 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.581e-05/0.4446, allocations: 88 kB / 0.5524 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.4462, allocations: 0.6628 MB / 0.553 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.305e-05/0.4463, allocations: 132.3 kB / 0.5531 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.4479, allocations: 419.7 kB / 0.5535 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.4481, allocations: 192 kB / 0.5537 GB, free: 6.281 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.001495/0.4496, allocations: 1.373 MB / 0.555 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.4498, allocations: 161.9 kB / 0.5552 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000275/0.4501, allocations: 197.2 kB / 0.5554 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.4501, allocations: 11.94 kB / 0.5554 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.4502, allocations: 4 kB / 0.5554 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4502, allocations: 7.984 kB / 0.5554 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005234/0.4554, allocations: 4.089 MB / 0.5594 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.4555, allocations: 8 kB / 0.5594 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.4559, allocations: 104.7 kB / 0.5595 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.4559, allocations: 8 kB / 0.5595 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.4559, allocations: 24 kB / 0.5595 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.4559, allocations: 15.92 kB / 0.5596 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.456, allocations: 11.94 kB / 0.5596 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.4574, allocations: 1.275 MB / 0.5608 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003807/0.4578, allocations: 242.8 kB / 0.561 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.458, allocations: 19.98 kB / 0.5611 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004662/0.4584, allocations: 23.98 kB / 0.5611 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4586, allocations: 55.83 kB / 0.5611 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.724e-05/0.4586, allocations: 35.98 kB / 0.5612 GB, free: 14.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001751/0.4604, allocations: 1.279 MB / 0.5624 GB, free: 13.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4604, allocations: 0 / 0.5624 GB, free: 13.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002476/0.4629, allocations: 0.7088 MB / 0.5631 GB, free: 12.39 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.001785/0.4647, allocations: 1.874 MB / 0.5649 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003087/0.4678, allocations: 2.258 MB / 0.5672 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4678, allocations: 448 / 0.5672 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005234/0.4683, allocations: 467.8 kB / 0.5676 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.4695, allocations: 248.6 kB / 0.5678 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02708/0.4966, allocations: 22.38 MB / 0.5897 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002176/0.4988, allocations: 2.323 MB / 0.592 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002159/0.501, allocations: 0.9636 MB / 0.5929 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.5021, allocations: 1.069 MB / 0.594 GB, free: 9.699 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5021, allocations: 0 / 0.594 GB, free: 9.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05459/0.5567, allocations: 32.48 MB / 0.6257 GB, free: 9.371 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.353/8.91, allocations: 11.47 kB / 0.6257 GB, free: 9.363 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.mat","/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