Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001797/0.001797, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002242/0.002242, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.484/1.484, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2278/0.2278, allocations: 46.93 MB / 357.1 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 75.88 kB / 0.4909 GB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1114, allocations: 65.98 MB / 0.5554 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.0116/0.123, allocations: 9.572 MB / 0.5647 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005897/0.1289, allocations: 2.94 MB / 0.5676 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000857/0.1298, allocations: 55.81 kB / 0.5676 GB, free: 9.227 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003792/0.1336, allocations: 2.013 MB / 0.5696 GB, free: 7.207 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002385/0.136, allocations: 1.136 MB / 0.5707 GB, free: 6.066 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006785/0.1366, allocations: 291.4 kB / 0.571 GB, free: 5.781 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002967/0.1396, allocations: 2.333 MB / 0.5733 GB, free: 3.445 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.1419, allocations: 1.907 MB / 0.5751 GB, free: 1.496 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.1429, allocations: 0.8956 MB / 0.576 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001558/0.1445, allocations: 1.25 MB / 0.5772 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003094/0.1448, allocations: 192 kB / 0.5774 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.146, allocations: 0.7294 MB / 0.5781 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.1471, allocations: 1.133 MB / 0.5792 GB, free: 13.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.1484, allocations: 1.312 MB / 0.5805 GB, free: 11.97 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004639/0.153, allocations: 4.33 MB / 0.5847 GB, free: 7.621 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.153, allocations: 7.984 kB / 0.5847 GB, free: 7.613 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.153, allocations: 0 / 0.5847 GB, free: 7.613 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.914e-05/0.1531, allocations: 0 / 0.5847 GB, free: 7.613 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.004821/0.1579, allocations: 2.938 MB / 0.5876 GB, free: 4.613 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1579, allocations: 8.031 kB / 0.5876 GB, free: 4.605 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005946/0.1585, allocations: 487.1 kB / 0.5881 GB, free: 4.121 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005352/0.1639, allocations: 1.578 MB / 0.5896 GB, free: 2.539 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002375/0.1663, allocations: 1.34 MB / 0.5909 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.1664, allocations: 147.8 kB / 0.5911 GB, free: 1.008 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003385/0.1667, allocations: 183.9 kB / 0.5912 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2221/0.3888, allocations: 6.253 MB / 0.5974 GB, free: 31.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.523e-05/0.3889, allocations: 12.41 kB / 0.5974 GB, free: 31.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000241/0.3891, allocations: 87.08 kB / 0.5975 GB, free: 31.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002174/0.3913, allocations: 1.343 MB / 0.5988 GB, free: 31.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.4015, allocations: 5.331 MB / 0.604 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02233/0.4238, allocations: 20.07 MB / 0.6236 GB, free: 16.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003536/0.4274, allocations: 1.946 MB / 0.6255 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000685/0.4281, allocations: 0.6393 MB / 0.6261 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005097/0.4331, allocations: 3.62 MB / 0.6296 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.4332, allocations: 37.53 kB / 0.6297 GB, free: 12.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.805e-06/0.4332, allocations: 0 / 0.6297 GB, free: 12.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=78): time 0.004693/0.4379, allocations: 1.997 MB / 0.6316 GB, free: 10.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.4379, allocations: 59.83 kB / 0.6317 GB, free: 10.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.4398, allocations: 1.944 MB / 0.6336 GB, free: 8.938 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.4398, allocations: 29.7 kB / 0.6336 GB, free: 8.902 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006572/0.4405, allocations: 1.916 MB / 0.6355 GB, free: 7.113 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.4407, allocations: 322.7 kB / 0.6358 GB, free: 6.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005713/0.4412, allocations: 0.6257 MB / 0.6364 GB, free: 6.168 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.901e-05/0.4413, allocations: 357.9 kB / 0.6367 GB, free: 5.812 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009411/0.4422, allocations: 0.8842 MB / 0.6376 GB, free: 4.926 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.4437, allocations: 2.751 MB / 0.6403 GB, free: 1.242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00431/0.448, allocations: 3.966 MB / 0.6442 GB, free: 12.35 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-05/0.448, allocations: 16 kB / 0.6442 GB, free: 12.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005724/0.4538, allocations: 3.53 MB / 0.6476 GB, free: 8.801 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.4538, allocations: 38.84 kB / 0.6477 GB, free: 8.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.552e-05/0.4539, allocations: 68 kB / 0.6477 GB, free: 8.699 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/0.454, allocations: 87.94 kB / 0.6478 GB, free: 8.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001898/0.4559, allocations: 0.6559 MB / 0.6484 GB, free: 7.957 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001112/0.456, allocations: 131.5 kB / 0.6486 GB, free: 7.828 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.4578, allocations: 424.8 kB / 0.649 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002413/0.458, allocations: 190.5 kB / 0.6492 GB, free: 7.227 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.002043/0.4601, allocations: 1.352 MB / 0.6505 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.4603, allocations: 162.9 kB / 0.6506 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003991/0.4607, allocations: 200.8 kB / 0.6508 GB, free: 5.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-05/0.4607, allocations: 10.27 kB / 0.6508 GB, free: 5.492 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.4607, allocations: 2.812 kB / 0.6508 GB, free: 5.492 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.4607, allocations: 3.984 kB / 0.6508 GB, free: 5.488 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006441/0.4672, allocations: 4.04 MB / 0.6548 GB, free: 1.305 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.4672, allocations: 4 kB / 0.6548 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000415/0.4676, allocations: 103.8 kB / 0.6549 GB, free: 1.199 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.4676, allocations: 8 kB / 0.6549 GB, free: 1.191 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.4677, allocations: 20 kB / 0.6549 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.341e-05/0.4677, allocations: 15.92 kB / 0.6549 GB, free: 1.156 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.4677, allocations: 8 kB / 0.6549 GB, free: 1.148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.4693, allocations: 1.271 MB / 0.6562 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003667/0.4697, allocations: 260.6 kB / 0.6564 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.4699, allocations: 16 kB / 0.6564 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004779/0.4703, allocations: 31.92 kB / 0.6565 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.4705, allocations: 59.77 kB / 0.6565 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.4705, allocations: 28 kB / 0.6566 GB, free: 15.36 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001828/0.4723, allocations: 1.271 MB / 0.6578 GB, free: 14.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4723, allocations: 0 / 0.6578 GB, free: 14.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002407/0.4747, allocations: 0.693 MB / 0.6585 GB, free: 13.41 MB / 478.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.002106/0.4768, allocations: 1.874 MB / 0.6603 GB, free: 11.42 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003093/0.4799, allocations: 1.956 MB / 0.6622 GB, free: 9.484 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4799, allocations: 4 kB / 0.6622 GB, free: 9.48 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006005/0.4805, allocations: 435.5 kB / 0.6626 GB, free: 9.059 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.4817, allocations: 227.7 kB / 0.6628 GB, free: 8.848 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03025/0.512, allocations: 20.95 MB / 0.6833 GB, free: 1.348 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002516/0.5145, allocations: 2.275 MB / 0.6855 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00204/0.5165, allocations: 0.9544 MB / 0.6865 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001304/0.5178, allocations: 1.042 MB / 0.6875 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of SimCode: time 7.62e-07/0.5178, allocations: 0 / 0.6875 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06824/0.5861, allocations: 32.82 MB / 0.7195 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.4, allocations: 3.984 kB / 0.7195 GB, free: 12.4 MB / 0.5294 GB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.578114101896062]