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.001656/0.001656, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002261/0.002261, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.442/1.442, allocations: 230.6 MB / 258.3 MB, free: 8 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.2229/0.2229, allocations: 44.91 MB / 359.6 MB, free: 6.297 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.002084/0.002084, allocations: 67.89 kB / 0.4939 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2852, allocations: 65.47 MB / 0.5578 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01202/0.2972, allocations: 9.592 MB / 0.5672 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005996/0.3032, allocations: 2.955 MB / 0.57 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.3043, allocations: 51.88 kB / 0.5701 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004056/0.3083, allocations: 2.033 MB / 0.5721 GB, free: 9.086 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002765/0.3111, allocations: 1.137 MB / 0.5732 GB, free: 7.945 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007472/0.3119, allocations: 295.4 kB / 0.5735 GB, free: 7.656 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003304/0.3152, allocations: 2.326 MB / 0.5757 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002566/0.3177, allocations: 1.742 MB / 0.5774 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.3191, allocations: 0.8916 MB / 0.5783 GB, free: 2.641 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00204/0.3212, allocations: 1.258 MB / 0.5795 GB, free: 1.379 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00051/0.3217, allocations: 196 kB / 0.5797 GB, free: 1.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/0.3231, allocations: 0.7216 MB / 0.5804 GB, free: 476 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.3245, allocations: 1.137 MB / 0.5815 GB, free: 15.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.3263, allocations: 1.308 MB / 0.5828 GB, free: 14.01 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005156/0.3314, allocations: 4.334 MB / 0.5871 GB, free: 9.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3314, allocations: 0 / 0.5871 GB, free: 9.656 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3314, allocations: 0 / 0.5871 GB, free: 9.656 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001189/0.3316, allocations: 3.938 kB / 0.5871 GB, free: 9.652 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.005134/0.3367, allocations: 2.862 MB / 0.5898 GB, free: 6.746 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3367, allocations: 8.031 kB / 0.5899 GB, free: 6.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.295e-05/0.3368, allocations: 67.92 kB / 0.5899 GB, free: 6.672 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005726/0.3374, allocations: 483.1 kB / 0.5904 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005251/0.3426, allocations: 1.582 MB / 0.5919 GB, free: 4.605 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002436/0.3451, allocations: 1.278 MB / 0.5932 GB, free: 3.297 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.3452, allocations: 151.6 kB / 0.5933 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003483/0.3455, allocations: 183.9 kB / 0.5935 GB, free: 2.969 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009458/0.355, allocations: 6.242 MB / 0.5996 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.762e-05/0.355, allocations: 11.88 kB / 0.5996 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.3553, allocations: 87.91 kB / 0.5997 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002166/0.3574, allocations: 1.344 MB / 0.601 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009729/0.3672, allocations: 5.338 MB / 0.6062 GB, free: 5.656 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/0.3945, allocations: 20 MB / 0.6257 GB, free: 1.078 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/0.3985, allocations: 1.486 MB / 0.6272 GB, free: 15.58 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009746/0.3994, allocations: 0.6367 MB / 0.6278 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006426/0.4059, allocations: 3.156 MB / 0.6309 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.4059, allocations: 39 kB / 0.6309 GB, free: 11.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 3.487e-06/0.4059, allocations: 0 / 0.6309 GB, free: 11.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005461/0.4114, allocations: 1.986 MB / 0.6329 GB, free: 9.703 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4114, allocations: 67.78 kB / 0.6329 GB, free: 9.625 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/0.4141, allocations: 1.946 MB / 0.6348 GB, free: 7.676 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.681e-05/0.4141, allocations: 29.7 kB / 0.6349 GB, free: 7.641 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/0.4156, allocations: 1.911 MB / 0.6367 GB, free: 5.707 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003196/0.4159, allocations: 329.4 kB / 0.637 GB, free: 5.383 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008339/0.4167, allocations: 0.6234 MB / 0.6377 GB, free: 4.75 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.4169, allocations: 353.9 kB / 0.638 GB, free: 4.398 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.4182, allocations: 0.8881 MB / 0.6389 GB, free: 3.508 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/0.4211, allocations: 2.751 MB / 0.6415 GB, free: 15.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004639/0.4258, allocations: 3.97 MB / 0.6454 GB, free: 10.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.279e-05/0.4258, allocations: 16 kB / 0.6454 GB, free: 10.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005544/0.4314, allocations: 3.531 MB / 0.6489 GB, free: 7.375 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.25e-05/0.4314, allocations: 32 kB / 0.6489 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.342e-05/0.4315, allocations: 64 kB / 0.649 GB, free: 7.281 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.545e-05/0.4316, allocations: 91.94 kB / 0.6491 GB, free: 7.191 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.4335, allocations: 0.655 MB / 0.6497 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001152/0.4336, allocations: 131.5 kB / 0.6498 GB, free: 6.406 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.4353, allocations: 429.3 kB / 0.6502 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002441/0.4355, allocations: 188 kB / 0.6504 GB, free: 5.801 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.001927/0.4375, allocations: 1.342 MB / 0.6517 GB, free: 4.445 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.4377, allocations: 166.9 kB / 0.6519 GB, free: 4.281 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003544/0.4381, allocations: 200.8 kB / 0.6521 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.4381, allocations: 12 kB / 0.6521 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4381, allocations: 4 kB / 0.6521 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4381, allocations: 3.984 kB / 0.6521 GB, free: 4.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00633/0.4444, allocations: 4.001 MB / 0.656 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.4444, allocations: 8 kB / 0.656 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003934/0.4448, allocations: 99.89 kB / 0.6561 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.4448, allocations: 11.94 kB / 0.6561 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.822e-05/0.4449, allocations: 23.98 kB / 0.6561 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.504e-05/0.4449, allocations: 15.94 kB / 0.6562 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4449, allocations: 4 kB / 0.6562 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.4465, allocations: 1.274 MB / 0.6574 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.4468, allocations: 178.6 kB / 0.6576 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.447, allocations: 19.98 kB / 0.6576 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/0.4475, allocations: 31.94 kB / 0.6576 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.892e-05/0.4476, allocations: 59.73 kB / 0.6577 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.108e-05/0.4477, allocations: 31.98 kB / 0.6577 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001796/0.4495, allocations: 1.271 MB / 0.659 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4495, allocations: 7.938 kB / 0.659 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002448/0.4519, allocations: 0.6852 MB / 0.6596 GB, free: 12.11 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.002081/0.454, allocations: 1.861 MB / 0.6615 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003181/0.4572, allocations: 1.975 MB / 0.6634 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4572, allocations: 0 / 0.6634 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005898/0.4578, allocations: 433.5 kB / 0.6638 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.4591, allocations: 240.3 kB / 0.664 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02937/0.4884, allocations: 20.95 MB / 0.6845 GB, free: 20 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002519/0.4909, allocations: 2.275 MB / 0.6867 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00206/0.493, allocations: 0.9598 MB / 0.6876 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/0.4945, allocations: 1.042 MB / 0.6887 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of SimCode: time 1.222e-06/0.4945, allocations: 0 / 0.6887 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06954/0.564, allocations: 35.31 MB / 0.7231 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.52/16.08, allocations: 13.72 kB / 0.7231 GB, free: 8.617 MB / 0.5606 GB " [Timeout remaining time 644] (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: 19.823961288959254]