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.001645/0.001645, allocations: 124.5 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.001963/0.001963, allocations: 207.2 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.525/1.525, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.2241/0.2241, allocations: 46.91 MB / 357.1 MB, free: 10.33 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.001898/0.001898, allocations: 63.91 kB / 0.4909 GB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1159, allocations: 65.99 MB / 0.5554 GB, free: 5.867 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01154/0.1274, allocations: 9.558 MB / 0.5647 GB, free: 12.26 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005838/0.1333, allocations: 2.94 MB / 0.5676 GB, free: 9.305 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009237/0.1342, allocations: 55.81 kB / 0.5676 GB, free: 9.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003799/0.138, allocations: 2.021 MB / 0.5696 GB, free: 7.223 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.1407, allocations: 1.129 MB / 0.5707 GB, free: 6.09 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007175/0.1414, allocations: 291.4 kB / 0.571 GB, free: 5.805 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003176/0.1446, allocations: 2.336 MB / 0.5733 GB, free: 3.465 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002339/0.1469, allocations: 1.911 MB / 0.5751 GB, free: 1.512 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.1481, allocations: 0.8956 MB / 0.576 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.1497, allocations: 1.246 MB / 0.5772 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003424/0.1501, allocations: 196 kB / 0.5774 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.1513, allocations: 0.7294 MB / 0.5781 GB, free: 14.44 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.1524, allocations: 1.137 MB / 0.5792 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.1537, allocations: 1.305 MB / 0.5805 GB, free: 11.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005232/0.1589, allocations: 4.334 MB / 0.5847 GB, free: 7.637 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.159, allocations: 0 / 0.5847 GB, free: 7.637 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.159, allocations: 4 kB / 0.5847 GB, free: 7.633 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.981e-05/0.1591, allocations: 0 / 0.5847 GB, free: 7.633 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.005656/0.1647, allocations: 2.942 MB / 0.5876 GB, free: 4.629 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1648, allocations: 12.03 kB / 0.5876 GB, free: 4.617 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007031/0.1655, allocations: 483.1 kB / 0.5881 GB, free: 4.137 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005431/0.1709, allocations: 1.578 MB / 0.5896 GB, free: 2.555 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002631/0.1735, allocations: 1.336 MB / 0.5909 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.1736, allocations: 151.8 kB / 0.5911 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000382/0.174, allocations: 183.9 kB / 0.5912 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2291/0.4031, allocations: 6.247 MB / 0.5973 GB, free: 31.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.097e-05/0.4032, allocations: 13.16 kB / 0.5974 GB, free: 31.72 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002462/0.4034, allocations: 85.66 kB / 0.5974 GB, free: 31.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002349/0.4057, allocations: 1.346 MB / 0.5988 GB, free: 31.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01054/0.4163, allocations: 5.33 MB / 0.604 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02302/0.4393, allocations: 20.07 MB / 0.6236 GB, free: 16.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003728/0.443, allocations: 1.944 MB / 0.6255 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006927/0.4437, allocations: 0.6388 MB / 0.6261 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005177/0.4489, allocations: 3.618 MB / 0.6296 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.4489, allocations: 37.47 kB / 0.6297 GB, free: 12.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.344e-06/0.4489, allocations: 0 / 0.6297 GB, free: 12.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=78): time 0.004741/0.4537, allocations: 1.999 MB / 0.6316 GB, free: 10.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.4537, allocations: 59.84 kB / 0.6317 GB, free: 10.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/0.4556, allocations: 1.937 MB / 0.6336 GB, free: 8.914 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.4556, allocations: 37.7 kB / 0.6336 GB, free: 8.871 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006426/0.4563, allocations: 1.915 MB / 0.6355 GB, free: 7.082 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.4564, allocations: 326.5 kB / 0.6358 GB, free: 6.766 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005446/0.457, allocations: 0.6225 MB / 0.6364 GB, free: 6.137 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.457, allocations: 353.9 kB / 0.6367 GB, free: 5.785 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009396/0.458, allocations: 0.892 MB / 0.6376 GB, free: 4.891 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.4596, allocations: 2.744 MB / 0.6403 GB, free: 1.215 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004525/0.4641, allocations: 3.973 MB / 0.6441 GB, free: 12.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.685e-05/0.4641, allocations: 24 kB / 0.6442 GB, free: 12.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005922/0.47, allocations: 3.527 MB / 0.6476 GB, free: 8.773 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.244e-05/0.4701, allocations: 39.94 kB / 0.6477 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.195e-05/0.4702, allocations: 64 kB / 0.6477 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001156/0.4703, allocations: 95.97 kB / 0.6478 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.4722, allocations: 0.655 MB / 0.6484 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001131/0.4723, allocations: 127.5 kB / 0.6486 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/0.4741, allocations: 428.8 kB / 0.649 GB, free: 7.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002725/0.4744, allocations: 188 kB / 0.6492 GB, free: 7.191 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.002031/0.4764, allocations: 1.35 MB / 0.6505 GB, free: 5.832 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00026/0.4767, allocations: 162.9 kB / 0.6506 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004088/0.4771, allocations: 200.8 kB / 0.6508 GB, free: 5.469 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.4771, allocations: 12 kB / 0.6508 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4771, allocations: 0 / 0.6508 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.4772, allocations: 0 / 0.6508 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006678/0.4838, allocations: 4.035 MB / 0.6548 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.4838, allocations: 8 kB / 0.6548 GB, free: 1.277 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.4843, allocations: 99.83 kB / 0.6549 GB, free: 1.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/0.4843, allocations: 8 kB / 0.6549 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.4843, allocations: 23.98 kB / 0.6549 GB, free: 1.148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-05/0.4844, allocations: 15.94 kB / 0.6549 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.4844, allocations: 4 kB / 0.6549 GB, free: 1.129 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.4861, allocations: 1.283 MB / 0.6562 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00041/0.4865, allocations: 255.7 kB / 0.6564 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.4867, allocations: 16 kB / 0.6564 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005007/0.4872, allocations: 29.42 kB / 0.6565 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.4873, allocations: 63.75 kB / 0.6565 GB, free: 15.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.564e-05/0.4874, allocations: 28 kB / 0.6566 GB, free: 15.34 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00195/0.4893, allocations: 1.271 MB / 0.6578 GB, free: 14.08 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4893, allocations: 0 / 0.6578 GB, free: 14.08 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002635/0.492, allocations: 0.6929 MB / 0.6585 GB, free: 13.38 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.002309/0.4943, allocations: 1.866 MB / 0.6603 GB, free: 11.41 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003484/0.4978, allocations: 1.96 MB / 0.6622 GB, free: 9.465 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.4978, allocations: 0 / 0.6622 GB, free: 9.465 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006543/0.4984, allocations: 443.5 kB / 0.6626 GB, free: 9.035 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.4999, allocations: 235.3 kB / 0.6629 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03065/0.5305, allocations: 20.95 MB / 0.6833 GB, free: 1.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002768/0.5333, allocations: 2.279 MB / 0.6855 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002177/0.5355, allocations: 0.9536 MB / 0.6865 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.537, allocations: 1.046 MB / 0.6875 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of SimCode: time 1.242e-06/0.537, allocations: 0 / 0.6875 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07048/0.6074, allocations: 32.79 MB / 0.7195 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.63, allocations: 18.98 kB / 0.7195 GB, free: 12.38 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 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.csv","/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] "Error: Could not read variable cutTorque.torque[3] in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[3] from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[2] in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[2] from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[1] in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[1] from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.6941163540032]