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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 113 kB / 18.49 MB, free: 4.598 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002012/0.002012, allocations: 213.4 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2102/0.2102, allocations: 44.91 MB / 355.8 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.91 kB / 0.4885 GB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1168, allocations: 65.43 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01239/0.1292, allocations: 9.566 MB / 0.5618 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006066/0.1352, allocations: 2.945 MB / 0.5647 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009018/0.1361, allocations: 59.81 kB / 0.5647 GB, free: 13.51 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003858/0.14, allocations: 2.013 MB / 0.5667 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002448/0.1424, allocations: 1.129 MB / 0.5678 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006847/0.1431, allocations: 287.4 kB / 0.5681 GB, free: 10.08 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003/0.1461, allocations: 2.333 MB / 0.5703 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002379/0.1485, allocations: 1.914 MB / 0.5722 GB, free: 5.781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.1497, allocations: 0.8879 MB / 0.5731 GB, free: 4.891 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.1513, allocations: 1.254 MB / 0.5743 GB, free: 3.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003184/0.1516, allocations: 192 kB / 0.5745 GB, free: 3.445 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.1528, allocations: 0.7255 MB / 0.5752 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.154, allocations: 1.145 MB / 0.5763 GB, free: 1.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.1553, allocations: 1.305 MB / 0.5776 GB, free: 264 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004994/0.1603, allocations: 4.334 MB / 0.5818 GB, free: 11.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1603, allocations: 4 kB / 0.5818 GB, free: 11.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1603, allocations: 0 / 0.5818 GB, free: 11.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.297e-05/0.1604, allocations: 0 / 0.5818 GB, free: 11.9 MB / 446.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.005099/0.1655, allocations: 2.938 MB / 0.5847 GB, free: 8.902 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1656, allocations: 8.031 kB / 0.5847 GB, free: 8.895 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.635e-05/0.1656, allocations: 67.94 kB / 0.5848 GB, free: 8.828 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006129/0.1663, allocations: 487.1 kB / 0.5852 GB, free: 8.344 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005426/0.1717, allocations: 1.582 MB / 0.5868 GB, free: 6.758 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002721/0.1744, allocations: 1.336 MB / 0.5881 GB, free: 5.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.1745, allocations: 151.5 kB / 0.5882 GB, free: 5.227 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004165/0.175, allocations: 187.9 kB / 0.5884 GB, free: 5.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.237/0.4119, allocations: 6.248 MB / 0.5945 GB, free: 35.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.792e-05/0.412, allocations: 12.66 kB / 0.5945 GB, free: 35.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.4122, allocations: 85.97 kB / 0.5946 GB, free: 35.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002101/0.4143, allocations: 1.339 MB / 0.5959 GB, free: 35.53 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.4245, allocations: 5.34 MB / 0.6011 GB, free: 34.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02475/0.4492, allocations: 20.06 MB / 0.6207 GB, free: 21.44 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/0.4532, allocations: 1.941 MB / 0.6226 GB, free: 20.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009422/0.4541, allocations: 0.641 MB / 0.6232 GB, free: 19.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005803/0.46, allocations: 3.622 MB / 0.6268 GB, free: 17.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.46, allocations: 43.16 kB / 0.6268 GB, free: 17.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.865e-06/0.46, allocations: 0 / 0.6268 GB, free: 17.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=78): time 0.00477/0.4648, allocations: 1.987 MB / 0.6287 GB, free: 16.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.4648, allocations: 63.41 kB / 0.6288 GB, free: 16.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002096/0.4669, allocations: 1.937 MB / 0.6307 GB, free: 15.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.4669, allocations: 37.67 kB / 0.6307 GB, free: 15.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007169/0.4676, allocations: 1.907 MB / 0.6326 GB, free: 13.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.4678, allocations: 335.8 kB / 0.6329 GB, free: 13.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000561/0.4684, allocations: 0.6194 MB / 0.6335 GB, free: 13.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.4685, allocations: 357.9 kB / 0.6339 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009497/0.4694, allocations: 0.8842 MB / 0.6347 GB, free: 11.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.4708, allocations: 2.759 MB / 0.6374 GB, free: 8.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002611/0.4735, allocations: 3.959 MB / 0.6413 GB, free: 3.293 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.18e-05/0.4735, allocations: 20 kB / 0.6413 GB, free: 3.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.003939/0.4774, allocations: 3.536 MB / 0.6448 GB, free: 15.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.4775, allocations: 32 kB / 0.6448 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-05/0.4775, allocations: 71.62 kB / 0.6449 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.206e-05/0.4776, allocations: 88 kB / 0.6449 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.4795, allocations: 0.6588 MB / 0.6456 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000104/0.4796, allocations: 127.5 kB / 0.6457 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/0.4813, allocations: 433.2 kB / 0.6461 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002348/0.4815, allocations: 192 kB / 0.6463 GB, free: 14.16 MB / 462.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.001826/0.4833, allocations: 1.34 MB / 0.6476 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.4835, allocations: 162.9 kB / 0.6478 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003777/0.4839, allocations: 196.9 kB / 0.648 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.4839, allocations: 11.94 kB / 0.648 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4839, allocations: 4 kB / 0.648 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.484, allocations: 4 kB / 0.648 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006189/0.4901, allocations: 4.036 MB / 0.6519 GB, free: 8.234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.4902, allocations: 8.844 kB / 0.6519 GB, free: 8.227 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/0.4906, allocations: 99.83 kB / 0.652 GB, free: 8.129 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.4906, allocations: 12 kB / 0.652 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.863e-05/0.4906, allocations: 23.98 kB / 0.652 GB, free: 8.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.918e-06/0.4906, allocations: 8 kB / 0.6521 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/0.4906, allocations: 11.94 kB / 0.6521 GB, free: 8.074 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.4922, allocations: 1.267 MB / 0.6533 GB, free: 6.699 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003452/0.4926, allocations: 259.7 kB / 0.6536 GB, free: 6.426 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.4927, allocations: 23.98 kB / 0.6536 GB, free: 6.402 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00049/0.4932, allocations: 27.94 kB / 0.6536 GB, free: 6.375 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/0.4933, allocations: 55.81 kB / 0.6537 GB, free: 6.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-05/0.4934, allocations: 31.98 kB / 0.6537 GB, free: 6.289 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001891/0.4953, allocations: 1.271 MB / 0.6549 GB, free: 5.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4953, allocations: 4 kB / 0.6549 GB, free: 5.023 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002448/0.4977, allocations: 0.6813 MB / 0.6556 GB, free: 4.34 MB / 462.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.00207/0.4998, allocations: 1.877 MB / 0.6574 GB, free: 2.352 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003103/0.5029, allocations: 1.953 MB / 0.6593 GB, free: 432 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5029, allocations: 4.125 kB / 0.6593 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005906/0.5035, allocations: 434 kB / 0.6598 GB, free: 15.99 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.5047, allocations: 238.8 kB / 0.66 GB, free: 15.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02911/0.5338, allocations: 20.94 MB / 0.6804 GB, free: 8.277 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00249/0.5363, allocations: 2.282 MB / 0.6827 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002129/0.5384, allocations: 0.9546 MB / 0.6836 GB, free: 5.008 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/0.5397, allocations: 1.05 MB / 0.6846 GB, free: 3.957 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5397, allocations: 0 / 0.6846 GB, free: 3.957 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06126/0.601, allocations: 32.84 MB / 0.7167 GB, free: 3.316 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.34, allocations: 19.92 kB / 0.7167 GB, free: 3.297 MB / 0.5137 GB " [Timeout remaining time 647] (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 --stepSize=0.000219912 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.77645789500093]