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.001207/0.001212, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.001293/0.001293, allocations: 183.9 kB / 18.71 MB, free: 4.371 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.352/1.352, 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.2057/0.2057, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3551, 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.01172/0.3669, allocations: 9.73 MB / 0.5279 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007257/0.3742, allocations: 2.931 MB / 0.5308 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.3762, allocations: 54.5 kB / 0.5308 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00448/0.3807, allocations: 1.984 MB / 0.5328 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003518/0.3843, allocations: 1.161 MB / 0.5339 GB, free: 8.344 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.3853, allocations: 290.4 kB / 0.5342 GB, free: 8.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004236/0.3896, allocations: 2.329 MB / 0.5365 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004257/0.3939, allocations: 2.332 MB / 0.5387 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.3961, allocations: 0.8994 MB / 0.5396 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002393/0.3986, allocations: 1.176 MB / 0.5408 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008608/0.3995, allocations: 201.1 kB / 0.5409 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.4016, allocations: 0.7039 MB / 0.5416 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001877/0.4035, allocations: 1.156 MB / 0.5428 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00285/0.4063, allocations: 1.351 MB / 0.5441 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006763/0.4131, allocations: 4.449 MB / 0.5484 GB, free: 13.31 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.4132, allocations: 0 / 0.5484 GB, free: 13.31 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4132, allocations: 0 / 0.5484 GB, free: 13.31 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002088/0.4134, allocations: 0 / 0.5484 GB, free: 13.31 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.00818/0.4216, allocations: 2.943 MB / 0.5513 GB, free: 10.31 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.4217, allocations: 12.03 kB / 0.5513 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001368/0.4231, allocations: 495.8 kB / 0.5518 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005822/0.4289, allocations: 1.588 MB / 0.5533 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003298/0.4322, allocations: 1.367 MB / 0.5547 GB, free: 6.797 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.4324, allocations: 147.9 kB / 0.5548 GB, free: 6.652 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007277/0.4332, allocations: 191.9 kB / 0.555 GB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.4451, allocations: 6.429 MB / 0.5613 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.958e-05/0.4452, allocations: 11.88 kB / 0.5613 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005503/0.4457, allocations: 91.84 kB / 0.5614 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002236/0.448, allocations: 1.407 MB / 0.5627 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01154/0.4596, allocations: 5.488 MB / 0.5681 GB, free: 8.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03123/0.4908, allocations: 20.45 MB / 0.5881 GB, free: 3.715 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004251/0.4951, allocations: 2.001 MB / 0.59 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.4962, allocations: 0.6992 MB / 0.5907 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006896/0.5031, allocations: 3.631 MB / 0.5943 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.5031, allocations: 39 kB / 0.5943 GB, free: 13.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.777e-06/0.5032, allocations: 4 kB / 0.5943 GB, free: 13.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005473/0.5086, allocations: 1.981 MB / 0.5962 GB, free: 11.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.5087, allocations: 59.83 kB / 0.5963 GB, free: 11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003181/0.5119, allocations: 1.966 MB / 0.5982 GB, free: 9.027 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.457e-05/0.512, allocations: 33.7 kB / 0.5982 GB, free: 8.988 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.5134, allocations: 1.879 MB / 0.6001 GB, free: 7.078 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003737/0.5138, allocations: 316.1 kB / 0.6004 GB, free: 6.766 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009751/0.5148, allocations: 0.6268 MB / 0.601 GB, free: 6.129 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.515, allocations: 353.9 kB / 0.6013 GB, free: 5.777 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.5164, allocations: 0.892 MB / 0.6022 GB, free: 4.883 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002985/0.5194, allocations: 2.778 MB / 0.6049 GB, free: 1.164 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004877/0.5243, allocations: 3.996 MB / 0.6088 GB, free: 12.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.648e-05/0.5243, allocations: 20 kB / 0.6088 GB, free: 12.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.006171/0.5305, allocations: 3.554 MB / 0.6123 GB, free: 8.648 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.258e-05/0.5306, allocations: 32 kB / 0.6123 GB, free: 8.617 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-05/0.5307, allocations: 72.09 kB / 0.6124 GB, free: 8.547 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001068/0.5308, allocations: 88 kB / 0.6125 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001956/0.5328, allocations: 0.6589 MB / 0.6131 GB, free: 7.801 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001165/0.5329, allocations: 131.5 kB / 0.6133 GB, free: 7.672 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/0.535, allocations: 419.5 kB / 0.6137 GB, free: 7.258 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003407/0.5353, allocations: 192 kB / 0.6138 GB, free: 7.07 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.00198/0.5373, allocations: 1.373 MB / 0.6152 GB, free: 5.688 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.5376, allocations: 157.8 kB / 0.6153 GB, free: 5.531 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003786/0.538, allocations: 201.2 kB / 0.6155 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.538, allocations: 8 kB / 0.6155 GB, free: 5.324 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.538, allocations: 0 / 0.6155 GB, free: 5.324 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.538, allocations: 7.938 kB / 0.6155 GB, free: 5.316 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006778/0.5448, allocations: 4.093 MB / 0.6195 GB, free: 1.078 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.5449, allocations: 4 kB / 0.6195 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/0.5453, allocations: 107.8 kB / 0.6196 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/0.5453, allocations: 8 kB / 0.6196 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.148e-05/0.5454, allocations: 20 kB / 0.6197 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.238e-05/0.5454, allocations: 11.94 kB / 0.6197 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.5454, allocations: 16.39 kB / 0.6197 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.5469, allocations: 1.263 MB / 0.6209 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004441/0.5474, allocations: 254.7 kB / 0.6212 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002641/0.5476, allocations: 20 kB / 0.6212 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.5482, allocations: 31.88 kB / 0.6212 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.5483, allocations: 63.77 kB / 0.6213 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.873e-05/0.5484, allocations: 24 kB / 0.6213 GB, free: 15.14 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002015/0.5504, allocations: 1.291 MB / 0.6226 GB, free: 13.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5504, allocations: 0 / 0.6226 GB, free: 13.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002733/0.5532, allocations: 0.7038 MB / 0.6233 GB, free: 13.15 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.002145/0.5553, allocations: 1.872 MB / 0.6251 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003092/0.5585, allocations: 2.058 MB / 0.6271 GB, free: 9.121 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.5585, allocations: 7.938 kB / 0.6271 GB, free: 9.113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.5591, allocations: 469 kB / 0.6275 GB, free: 8.656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.5604, allocations: 256.4 kB / 0.6278 GB, free: 8.414 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0315/0.592, allocations: 21.09 MB / 0.6484 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003243/0.5953, allocations: 2.323 MB / 0.6507 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002277/0.5976, allocations: 0.9601 MB / 0.6516 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.5992, allocations: 1.066 MB / 0.6526 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.5992, allocations: 0 / 0.6526 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06537/0.6646, allocations: 33.12 MB / 0.685 GB, free: 11.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.75, allocations: 5.016 kB / 0.685 GB, free: 11.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.mat","/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