Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.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.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001205/0.001204, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002265/0.002265, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2226/0.2226, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002778/0.002778, allocations: 81.73 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1356, allocations: 62.44 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01754/0.1532, allocations: 15 MB / 495.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.1674, allocations: 5.042 MB / 0.4884 GB, free: 1.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003487/0.1709, allocations: 115.7 kB / 0.4886 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0119/0.1829, allocations: 5.985 MB / 0.4944 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007549/0.1905, allocations: 2.727 MB / 0.4971 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003902/0.1944, allocations: 1.571 MB / 0.4986 GB, free: 6.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.244/0.4385, allocations: 7.775 MB / 0.5062 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01421/0.4528, allocations: 7.393 MB / 0.5134 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006433/0.4592, allocations: 2.969 MB / 0.5163 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006744/0.466, allocations: 3.777 MB / 0.52 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002945/0.469, allocations: 0.569 MB / 0.5206 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005183/0.4742, allocations: 1.389 MB / 0.5219 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005749/0.48, allocations: 3.459 MB / 0.5253 GB, free: 11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009178/0.4892, allocations: 3.851 MB / 0.5291 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.5041, allocations: 11.26 MB / 0.5401 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5042, allocations: 0 / 0.5401 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.5042, allocations: 0 / 0.5401 GB, free: 2.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006441/0.5048, allocations: 0 / 0.5401 GB, free: 2.562 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: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.02488/0.5297, allocations: 8.504 MB / 0.5484 GB, free: 12.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.5298, allocations: 12.03 kB / 0.5484 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003426/0.5332, allocations: 1.169 MB / 0.5495 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/0.5452, allocations: 2.517 MB / 0.552 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01367/0.5589, allocations: 5.293 MB / 0.5571 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005202/0.5595, allocations: 424.5 kB / 0.5575 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002766/0.5623, allocations: 0.5425 MB / 0.5581 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0394/0.6017, allocations: 16.67 MB / 0.5744 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003441/0.6021, allocations: 72.62 kB / 0.5744 GB, free: 1.461 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002137/0.6042, allocations: 269.5 kB / 0.5747 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004974/0.6092, allocations: 2.923 MB / 0.5775 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0314/0.6407, allocations: 12.79 MB / 0.59 GB, free: 1.875 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/0.7412, allocations: 64.29 MB / 0.6528 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01703/0.7583, allocations: 5.368 MB / 0.6581 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003538/0.7619, allocations: 2.122 MB / 0.6601 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01959/0.7815, allocations: 9.921 MB / 0.6698 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/0.7816, allocations: 56.95 kB / 0.6699 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=182): time 5.37e-06/0.7816, allocations: 0 / 0.6699 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=206): time 0.04205/0.8237, allocations: 13.97 MB / 0.6835 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/0.8238, allocations: 153.8 kB / 0.6837 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01395/0.8377, allocations: 6.314 MB / 0.6898 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003673/0.8381, allocations: 53.61 kB / 0.6899 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004404/0.8426, allocations: 5.083 MB / 0.6948 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001004/0.8436, allocations: 0.815 MB / 0.6956 GB, free: 4.27 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003194/0.8468, allocations: 1.66 MB / 0.6973 GB, free: 2.602 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.8469, allocations: 305.1 kB / 0.6975 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003545/0.8505, allocations: 2.292 MB / 0.6998 GB, free: 0 / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006716/0.8572, allocations: 7.637 MB / 0.7072 GB, free: 5.781 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2479/1.105, allocations: 10.81 MB / 0.7178 GB, free: 174.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/1.105, allocations: 55.14 kB / 0.7179 GB, free: 174.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01831/1.124, allocations: 9.563 MB / 0.7272 GB, free: 171.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/1.124, allocations: 90.75 kB / 0.7273 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002932/1.124, allocations: 193.2 kB / 0.7275 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/1.125, allocations: 249.8 kB / 0.7277 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006403/1.131, allocations: 1.9 MB / 0.7296 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002759/1.131, allocations: 375.2 kB / 0.7299 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005861/1.137, allocations: 409.3 kB / 0.7303 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009808/1.138, allocations: 0.5087 MB / 0.7308 GB, free: 171.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1027): * Single equations (assignments): 1016 * Array equations: 11 * 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.005417/1.144, allocations: 3.285 MB / 0.734 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009592/1.144, allocations: 0.5306 MB / 0.7345 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/1.146, allocations: 0.623 MB / 0.7351 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.502e-05/1.146, allocations: 26.67 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/1.146, allocations: 2.266 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/1.146, allocations: 14.42 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0195/1.165, allocations: 14.99 MB / 0.7498 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.124e-05/1.165, allocations: 45.66 kB / 0.7499 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/1.167, allocations: 444.2 kB / 0.7503 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.871e-05/1.167, allocations: 65.56 kB / 0.7503 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/1.167, allocations: 104 kB / 0.7504 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.828e-05/1.167, allocations: 92.03 kB / 0.7505 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-05/1.167, allocations: 73.75 kB / 0.7506 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003542/1.17, allocations: 4.306 MB / 0.7548 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/1.172, allocations: 0.6291 MB / 0.7554 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005432/1.172, allocations: 111 kB / 0.7555 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/1.174, allocations: 112.1 kB / 0.7556 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/1.174, allocations: 309.5 kB / 0.7559 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/1.174, allocations: 132.2 kB / 0.7561 GB, free: 159.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005824/1.18, allocations: 3.952 MB / 0.7599 GB, free: 158.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/1.18, allocations: 0 / 0.7599 GB, free: 158.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007802/1.188, allocations: 1.307 MB / 0.7612 GB, free: 157 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * 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 (238): * Single equations (assignments): 235 * 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.005413/1.193, allocations: 5.029 MB / 0.7661 GB, free: 151.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008193/1.202, allocations: 5.494 MB / 0.7715 GB, free: 146.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.311e-05/1.202, allocations: 8 kB / 0.7715 GB, free: 146.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001574/1.203, allocations: 1.198 MB / 0.7726 GB, free: 145.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005871/1.209, allocations: 0.8872 MB / 0.7735 GB, free: 144.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09076/1.3, allocations: 78.88 MB / 0.8505 GB, free: 54.61 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006959/1.307, allocations: 5.068 MB / 0.8555 GB, free: 49.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008991/1.316, allocations: 2.55 MB / 0.858 GB, free: 46.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006548/1.323, allocations: 3.288 MB / 0.8612 GB, free: 43.66 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/1.323, allocations: 0 / 0.8612 GB, free: 43.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3827/1.705, allocations: 98.17 MB / 0.9571 GB, free: 180.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/12.52, allocations: 1.438 kB / 0.9571 GB, free: 180.1 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_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_CutTorque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches