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.001616/0.001616, allocations: 105.1 kB / 21.21 MB, free: 0.6484 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.001904/0.001904, allocations: 212.5 kB / 24.51 MB, free: 3.938 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.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.223/0.223, allocations: 44.94 MB / 359.6 MB, free: 6.07 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3",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.002157/0.002157, allocations: 71.84 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2935, allocations: 65.46 MB / 0.5577 GB, free: 7.383 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01184/0.3053, allocations: 8.359 MB / 0.5659 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00645/0.3118, allocations: 2.769 MB / 0.5686 GB, free: 12.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.3131, allocations: 51.88 kB / 0.5686 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004024/0.3171, allocations: 1.939 MB / 0.5705 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003064/0.3202, allocations: 1.14 MB / 0.5716 GB, free: 9.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007743/0.321, allocations: 291.4 kB / 0.5719 GB, free: 9.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003451/0.3244, allocations: 2.333 MB / 0.5742 GB, free: 6.668 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.3268, allocations: 1.746 MB / 0.5759 GB, free: 4.875 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.3283, allocations: 0.884 MB / 0.5768 GB, free: 3.988 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002089/0.3304, allocations: 1.254 MB / 0.578 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004278/0.3309, allocations: 196 kB / 0.5782 GB, free: 2.539 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.3322, allocations: 0.6124 MB / 0.5788 GB, free: 1.926 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001342/0.3335, allocations: 1.141 MB / 0.5799 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.3349, allocations: 0.9472 MB / 0.5808 GB, free: 15.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005605/0.3405, allocations: 4.342 MB / 0.585 GB, free: 11.47 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3405, allocations: 4 kB / 0.5851 GB, free: 11.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3405, allocations: 0 / 0.5851 GB, free: 11.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001117/0.3406, allocations: 0 / 0.5851 GB, free: 11.46 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.005295/0.3459, allocations: 2.862 MB / 0.5878 GB, free: 8.559 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.346, allocations: 12.03 kB / 0.5879 GB, free: 8.547 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.048e-05/0.3461, allocations: 67.88 kB / 0.5879 GB, free: 8.48 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006334/0.3467, allocations: 483 kB / 0.5884 GB, free: 8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005058/0.3518, allocations: 1.582 MB / 0.5899 GB, free: 6.414 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/0.3545, allocations: 1.279 MB / 0.5912 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.3547, allocations: 147.6 kB / 0.5913 GB, free: 4.961 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004167/0.3551, allocations: 187.8 kB / 0.5915 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0102/0.3653, allocations: 6.246 MB / 0.5976 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.618e-05/0.3653, allocations: 15.88 kB / 0.5976 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.3656, allocations: 91.91 kB / 0.5977 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002121/0.3677, allocations: 1.34 MB / 0.599 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01065/0.3783, allocations: 5.33 MB / 0.6042 GB, free: 7.465 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03007/0.4084, allocations: 19.06 MB / 0.6228 GB, free: 3.832 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/0.4126, allocations: 1.488 MB / 0.6243 GB, free: 2.332 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009763/0.4136, allocations: 0.6406 MB / 0.6249 GB, free: 1.676 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006629/0.4202, allocations: 3.02 MB / 0.6279 GB, free: 14.63 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.4203, allocations: 38.94 kB / 0.6279 GB, free: 14.59 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 3.988e-06/0.4203, allocations: 0 / 0.6279 GB, free: 14.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005571/0.4258, allocations: 1.99 MB / 0.6298 GB, free: 12.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.4259, allocations: 59.84 kB / 0.6299 GB, free: 12.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.4287, allocations: 1.942 MB / 0.6318 GB, free: 10.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.007e-05/0.4288, allocations: 41.69 kB / 0.6318 GB, free: 10.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.4302, allocations: 1.903 MB / 0.6337 GB, free: 8.598 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003522/0.4306, allocations: 337.5 kB / 0.634 GB, free: 8.266 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008326/0.4314, allocations: 0.6156 MB / 0.6346 GB, free: 7.641 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.4316, allocations: 357.9 kB / 0.6349 GB, free: 7.285 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.4329, allocations: 0.8842 MB / 0.6358 GB, free: 6.398 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002838/0.4358, allocations: 2.755 MB / 0.6385 GB, free: 2.711 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004845/0.4406, allocations: 3.966 MB / 0.6424 GB, free: 13.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.224e-05/0.4407, allocations: 20 kB / 0.6424 GB, free: 13.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006683/0.4474, allocations: 3.534 MB / 0.6458 GB, free: 10.26 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.541e-05/0.4474, allocations: 36.22 kB / 0.6459 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.719e-05/0.4475, allocations: 68 kB / 0.6459 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000105/0.4476, allocations: 91.94 kB / 0.646 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/0.4497, allocations: 0.6589 MB / 0.6467 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001141/0.4498, allocations: 127.5 kB / 0.6468 GB, free: 9.285 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.4517, allocations: 428.8 kB / 0.6472 GB, free: 8.863 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/0.452, allocations: 184 kB / 0.6474 GB, free: 8.684 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.002079/0.4541, allocations: 1.346 MB / 0.6487 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002609/0.4543, allocations: 162.9 kB / 0.6489 GB, free: 7.164 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003731/0.4547, allocations: 196.8 kB / 0.649 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.4547, allocations: 12 kB / 0.6491 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.4547, allocations: 3.984 kB / 0.6491 GB, free: 6.953 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.4547, allocations: 3.984 kB / 0.6491 GB, free: 6.949 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006823/0.4616, allocations: 3.911 MB / 0.6529 GB, free: 2.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.4616, allocations: 8.031 kB / 0.6529 GB, free: 2.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.462, allocations: 107.8 kB / 0.653 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.471e-05/0.462, allocations: 8 kB / 0.653 GB, free: 2.773 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.4621, allocations: 16 kB / 0.653 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.198e-05/0.4621, allocations: 11.94 kB / 0.653 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.4621, allocations: 11.94 kB / 0.653 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.4637, allocations: 1.274 MB / 0.6543 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/0.4641, allocations: 182.6 kB / 0.6545 GB, free: 1.176 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.4643, allocations: 23.98 kB / 0.6545 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004815/0.4647, allocations: 27.94 kB / 0.6545 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.4648, allocations: 55.8 kB / 0.6546 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-05/0.4649, allocations: 28 kB / 0.6546 GB, free: 1.043 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001957/0.4669, allocations: 1.279 MB / 0.6558 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4669, allocations: 0 / 0.6558 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0026/0.4695, allocations: 0.6813 MB / 0.6565 GB, free: 15.09 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.002145/0.4716, allocations: 1.872 MB / 0.6583 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003219/0.4748, allocations: 1.956 MB / 0.6602 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.4748, allocations: 0.9375 kB / 0.6602 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005934/0.4754, allocations: 436.1 kB / 0.6607 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.4768, allocations: 241.9 kB / 0.6609 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03403/0.5108, allocations: 20.94 MB / 0.6813 GB, free: 3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002555/0.5134, allocations: 1.697 MB / 0.683 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00216/0.5155, allocations: 0.9675 MB / 0.6839 GB, free: 304 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/0.5172, allocations: 1.042 MB / 0.685 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of SimCode: time 1.443e-06/0.5172, allocations: 0 / 0.685 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07274/0.59, allocations: 34.04 MB / 0.7182 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/16.4, allocations: 6.812 kB / 0.7182 GB, free: 13.64 MB / 0.5606 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.27618318295572]