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.001282/0.001282, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001424/0.001424, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.2188/0.2188, allocations: 44.94 MB / 359.6 MB, free: 6.051 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.001996/0.001996, allocations: 63.91 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2898, allocations: 65.46 MB / 0.5577 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01109/0.3008, allocations: 8.356 MB / 0.5659 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006354/0.3072, allocations: 2.769 MB / 0.5686 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.3084, allocations: 55.81 kB / 0.5686 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004019/0.3124, allocations: 1.943 MB / 0.5705 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002845/0.3152, allocations: 1.136 MB / 0.5716 GB, free: 9.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007294/0.316, allocations: 287.4 kB / 0.5719 GB, free: 8.941 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003196/0.3192, allocations: 2.333 MB / 0.5742 GB, free: 6.605 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002308/0.3215, allocations: 1.746 MB / 0.5759 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.3227, allocations: 0.8879 MB / 0.5768 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.3245, allocations: 1.254 MB / 0.578 GB, free: 2.664 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003842/0.3249, allocations: 192 kB / 0.5782 GB, free: 2.477 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.326, allocations: 0.6124 MB / 0.5788 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001113/0.3271, allocations: 1.141 MB / 0.5799 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.3283, allocations: 0.9471 MB / 0.5808 GB, free: 15.76 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004913/0.3332, allocations: 4.338 MB / 0.585 GB, free: 11.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3332, allocations: 0 / 0.585 GB, free: 11.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3332, allocations: 4 kB / 0.585 GB, free: 11.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001051/0.3333, allocations: 0 / 0.585 GB, free: 11.41 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.005157/0.3384, allocations: 2.866 MB / 0.5878 GB, free: 8.496 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3385, allocations: 15.97 kB / 0.5879 GB, free: 8.48 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.031e-05/0.3386, allocations: 67.88 kB / 0.5879 GB, free: 8.414 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005907/0.3392, allocations: 479.1 kB / 0.5884 GB, free: 7.938 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005189/0.3443, allocations: 1.578 MB / 0.5899 GB, free: 6.355 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/0.347, allocations: 1.286 MB / 0.5912 GB, free: 5.039 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.3471, allocations: 143.6 kB / 0.5913 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003826/0.3475, allocations: 187.9 kB / 0.5915 GB, free: 4.715 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009793/0.3573, allocations: 6.246 MB / 0.5976 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.969e-05/0.3573, allocations: 15.88 kB / 0.5976 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002354/0.3576, allocations: 83.91 kB / 0.5977 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002087/0.3597, allocations: 1.348 MB / 0.599 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009756/0.3694, allocations: 5.326 MB / 0.6042 GB, free: 7.406 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02733/0.3967, allocations: 19.06 MB / 0.6228 GB, free: 3.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004109/0.4009, allocations: 1.485 MB / 0.6243 GB, free: 2.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009805/0.4018, allocations: 0.6367 MB / 0.6249 GB, free: 1.617 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006434/0.4083, allocations: 3.024 MB / 0.6278 GB, free: 14.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.4083, allocations: 39 kB / 0.6279 GB, free: 14.52 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 3.747e-06/0.4083, allocations: 0 / 0.6279 GB, free: 14.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005521/0.4138, allocations: 1.986 MB / 0.6298 GB, free: 12.53 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.4139, allocations: 59.84 kB / 0.6299 GB, free: 12.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/0.4166, allocations: 1.949 MB / 0.6318 GB, free: 10.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.4166, allocations: 33.7 kB / 0.6318 GB, free: 10.46 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/0.4181, allocations: 1.915 MB / 0.6337 GB, free: 8.527 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003159/0.4184, allocations: 325.5 kB / 0.634 GB, free: 8.207 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008397/0.4193, allocations: 0.6234 MB / 0.6346 GB, free: 7.574 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4195, allocations: 353.9 kB / 0.6349 GB, free: 7.223 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.4208, allocations: 0.8881 MB / 0.6358 GB, free: 6.332 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002935/0.4237, allocations: 2.747 MB / 0.6385 GB, free: 2.652 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004817/0.4285, allocations: 3.97 MB / 0.6424 GB, free: 13.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.416e-05/0.4286, allocations: 20 kB / 0.6424 GB, free: 13.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006222/0.4348, allocations: 3.531 MB / 0.6458 GB, free: 10.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.042e-05/0.4349, allocations: 34.66 kB / 0.6459 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001109/0.435, allocations: 68.09 kB / 0.6459 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.666e-05/0.4351, allocations: 91.94 kB / 0.646 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/0.4371, allocations: 0.655 MB / 0.6467 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001204/0.4372, allocations: 131.4 kB / 0.6468 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.4392, allocations: 428.8 kB / 0.6472 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003205/0.4395, allocations: 192 kB / 0.6474 GB, free: 8.617 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.002229/0.4417, allocations: 1.338 MB / 0.6487 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/0.442, allocations: 162.9 kB / 0.6488 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003912/0.4424, allocations: 204.8 kB / 0.649 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.66e-05/0.4424, allocations: 11.94 kB / 0.649 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4424, allocations: 3.984 kB / 0.6491 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.4424, allocations: 7.984 kB / 0.6491 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007435/0.4499, allocations: 3.903 MB / 0.6529 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.4499, allocations: 4 kB / 0.6529 GB, free: 2.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/0.4503, allocations: 111.9 kB / 0.653 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.37e-05/0.4503, allocations: 8 kB / 0.653 GB, free: 2.711 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.4504, allocations: 20 kB / 0.653 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.708e-05/0.4504, allocations: 15.92 kB / 0.653 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/0.4504, allocations: 11.94 kB / 0.653 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.4521, allocations: 1.263 MB / 0.6543 GB, free: 1.297 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004058/0.4525, allocations: 182.6 kB / 0.6544 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.4527, allocations: 19.98 kB / 0.6545 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.4531, allocations: 31.94 kB / 0.6545 GB, free: 1.066 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.4532, allocations: 63.72 kB / 0.6546 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.4533, allocations: 28 kB / 0.6546 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002036/0.4553, allocations: 1.271 MB / 0.6558 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4553, allocations: 0 / 0.6558 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002838/0.4582, allocations: 0.6891 MB / 0.6565 GB, free: 15.02 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.002359/0.4605, allocations: 1.869 MB / 0.6583 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003453/0.464, allocations: 1.959 MB / 0.6602 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/0.464, allocations: 0 / 0.6602 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006636/0.4647, allocations: 441.1 kB / 0.6607 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.4661, allocations: 244.1 kB / 0.6609 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03269/0.4988, allocations: 20.95 MB / 0.6813 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/0.5014, allocations: 1.708 MB / 0.683 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002217/0.5036, allocations: 0.9558 MB / 0.6839 GB, free: 236 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/0.5053, allocations: 1.046 MB / 0.685 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of SimCode: time 2.004e-06/0.5053, allocations: 0 / 0.685 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07061/0.5759, allocations: 34.04 MB / 0.7182 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.55/17.12, allocations: 0 / 0.7182 GB, free: 13.58 MB / 0.5606 GB " [Timeout remaining time 643] (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: 20.814466473064385]