Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.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.001727/0.001727, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002083/0.002083, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2206/0.2206, allocations: 44.93 MB / 358.8 MB, free: 6.016 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.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",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.002065/0.002065, allocations: 63.89 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3188, allocations: 65.47 MB / 0.557 GB, free: 7.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01165/0.3305, allocations: 8.408 MB / 0.5652 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006465/0.3369, allocations: 2.784 MB / 0.5679 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.3382, allocations: 59.75 kB / 0.5679 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003964/0.3422, allocations: 1.932 MB / 0.5698 GB, free: 10.26 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002745/0.3449, allocations: 1.14 MB / 0.5709 GB, free: 9.117 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007469/0.3457, allocations: 291.3 kB / 0.5712 GB, free: 8.832 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003383/0.3491, allocations: 2.321 MB / 0.5735 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002241/0.3513, allocations: 1.738 MB / 0.5752 GB, free: 4.723 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.3525, allocations: 0.8879 MB / 0.5761 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001737/0.3542, allocations: 1.172 MB / 0.5772 GB, free: 2.656 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003564/0.3546, allocations: 195.9 kB / 0.5774 GB, free: 2.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.3557, allocations: 0.6123 MB / 0.578 GB, free: 1.852 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.3568, allocations: 1.141 MB / 0.5791 GB, free: 0.707 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.3578, allocations: 0.9432 MB / 0.58 GB, free: 15.76 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004644/0.3625, allocations: 4.342 MB / 0.5843 GB, free: 11.4 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3625, allocations: 0 / 0.5843 GB, free: 11.4 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3625, allocations: 3.938 kB / 0.5843 GB, free: 11.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.27e-05/0.3626, allocations: 0 / 0.5843 GB, free: 11.39 MB / 430.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.005016/0.3676, allocations: 2.862 MB / 0.5871 GB, free: 8.488 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3676, allocations: 11.97 kB / 0.5871 GB, free: 8.477 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006425/0.3683, allocations: 487.1 kB / 0.5875 GB, free: 7.992 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005229/0.3735, allocations: 1.578 MB / 0.5891 GB, free: 6.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003125/0.3766, allocations: 1.282 MB / 0.5903 GB, free: 5.098 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.3768, allocations: 147.8 kB / 0.5905 GB, free: 4.953 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003785/0.3771, allocations: 183.9 kB / 0.5906 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.3877, allocations: 6.25 MB / 0.5967 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/0.3878, allocations: 11.88 kB / 0.5968 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/0.388, allocations: 87.91 kB / 0.5968 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002192/0.3902, allocations: 1.34 MB / 0.5982 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/0.4006, allocations: 5.333 MB / 0.6034 GB, free: 7.465 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02922/0.4298, allocations: 19.05 MB / 0.622 GB, free: 3.836 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004269/0.4341, allocations: 1.488 MB / 0.6234 GB, free: 2.336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.4351, allocations: 0.6367 MB / 0.624 GB, free: 1.688 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006895/0.442, allocations: 3.024 MB / 0.627 GB, free: 14.64 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.4421, allocations: 35 kB / 0.627 GB, free: 14.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 3.767e-06/0.4421, allocations: 0 / 0.627 GB, free: 14.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005695/0.4478, allocations: 1.998 MB / 0.629 GB, free: 12.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.4478, allocations: 55.84 kB / 0.629 GB, free: 12.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003836/0.4517, allocations: 2.054 MB / 0.631 GB, free: 10.46 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.71e-05/0.4517, allocations: 33.7 kB / 0.6311 GB, free: 10.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001611/0.4533, allocations: 1.911 MB / 0.6329 GB, free: 8.492 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003843/0.4537, allocations: 333.5 kB / 0.6333 GB, free: 8.164 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009652/0.4547, allocations: 0.6195 MB / 0.6339 GB, free: 7.535 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.4549, allocations: 353.9 kB / 0.6342 GB, free: 7.184 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.4564, allocations: 0.8842 MB / 0.6351 GB, free: 6.297 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003132/0.4595, allocations: 2.763 MB / 0.6378 GB, free: 2.602 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004951/0.4644, allocations: 3.965 MB / 0.6416 GB, free: 13.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-05/0.4645, allocations: 20 kB / 0.6416 GB, free: 13.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006042/0.4706, allocations: 3.535 MB / 0.6451 GB, free: 10.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.752e-05/0.4706, allocations: 32 kB / 0.6451 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.935e-05/0.4707, allocations: 71.98 kB / 0.6452 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001004/0.4708, allocations: 91.94 kB / 0.6453 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001964/0.4728, allocations: 0.655 MB / 0.6459 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001402/0.4729, allocations: 123.5 kB / 0.646 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.4748, allocations: 429.1 kB / 0.6465 GB, free: 8.762 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002874/0.4751, allocations: 184 kB / 0.6466 GB, free: 8.582 MB / 494.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.002087/0.4772, allocations: 1.346 MB / 0.6479 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/0.4775, allocations: 166.9 kB / 0.6481 GB, free: 7.059 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.4778, allocations: 192.9 kB / 0.6483 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.208e-05/0.4779, allocations: 11.94 kB / 0.6483 GB, free: 6.855 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.4779, allocations: 3.984 kB / 0.6483 GB, free: 6.852 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.4779, allocations: 4 kB / 0.6483 GB, free: 6.848 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007243/0.4851, allocations: 3.923 MB / 0.6521 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.4851, allocations: 4 kB / 0.6521 GB, free: 2.777 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.4856, allocations: 103.8 kB / 0.6522 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.559e-05/0.4856, allocations: 12 kB / 0.6522 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.961e-05/0.4856, allocations: 23.98 kB / 0.6523 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.598e-06/0.4856, allocations: 8 kB / 0.6523 GB, free: 2.633 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/0.4856, allocations: 11.94 kB / 0.6523 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.4873, allocations: 1.271 MB / 0.6535 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004054/0.4877, allocations: 186.5 kB / 0.6537 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002131/0.4879, allocations: 16 kB / 0.6537 GB, free: 1.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005211/0.4885, allocations: 23.98 kB / 0.6537 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.4886, allocations: 59.8 kB / 0.6538 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.277e-05/0.4886, allocations: 28 kB / 0.6538 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002065/0.4907, allocations: 1.267 MB / 0.6551 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4907, allocations: 0 / 0.6551 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002545/0.4933, allocations: 0.7007 MB / 0.6558 GB, free: 14.98 MB / 0.4981 GB 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.002231/0.4955, allocations: 1.865 MB / 0.6576 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003374/0.4989, allocations: 1.964 MB / 0.6595 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.218e-06/0.4989, allocations: 8.062 kB / 0.6595 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006311/0.4995, allocations: 431.9 kB / 0.6599 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.5009, allocations: 230.9 kB / 0.6601 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03593/0.5369, allocations: 20.94 MB / 0.6806 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003157/0.54, allocations: 1.704 MB / 0.6822 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002238/0.5422, allocations: 0.9597 MB / 0.6832 GB, free: 204 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001749/0.544, allocations: 1.042 MB / 0.6842 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of SimCode: time 1.232e-06/0.544, allocations: 0 / 0.6842 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07603/0.62, allocations: 32.92 MB / 0.7164 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.34, allocations: 10.88 kB / 0.7164 GB, free: 14.63 MB / 0.5606 GB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_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_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable cutTorque.torque[3] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv. Warning: Get data of variable cutTorque.torque[3] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv failed! Error: Could not read variable cutTorque.torque[2] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv. Warning: Get data of variable cutTorque.torque[2] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv failed! Error: Could not read variable cutTorque.torque[1] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv. Warning: Get data of variable cutTorque.torque[1] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.33484809473157]