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.001367/0.001367, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001507/0.001507, allocations: 213.1 kB / 23.75 MB, free: 4.668 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.433/1.433, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2228/0.2228, allocations: 44.91 MB / 358.8 MB, free: 6.285 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.002197/0.002197, allocations: 71.89 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2958, allocations: 65.47 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01131/0.3071, allocations: 9.593 MB / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005484/0.3126, allocations: 2.959 MB / 0.5693 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008479/0.3135, allocations: 55.81 kB / 0.5693 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003875/0.3173, allocations: 2.021 MB / 0.5713 GB, free: 9.109 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002566/0.3199, allocations: 1.144 MB / 0.5724 GB, free: 7.961 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007206/0.3206, allocations: 295.4 kB / 0.5727 GB, free: 7.672 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003076/0.3237, allocations: 2.329 MB / 0.575 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/0.3258, allocations: 1.742 MB / 0.5767 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.3269, allocations: 0.8917 MB / 0.5775 GB, free: 2.652 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.3285, allocations: 1.246 MB / 0.5788 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003161/0.3288, allocations: 196 kB / 0.579 GB, free: 1.211 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.33, allocations: 0.7255 MB / 0.5797 GB, free: 496 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.331, allocations: 1.141 MB / 0.5808 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.3324, allocations: 1.308 MB / 0.5821 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00511/0.3375, allocations: 4.334 MB / 0.5863 GB, free: 9.672 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3375, allocations: 0 / 0.5863 GB, free: 9.672 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.055e-06/0.3375, allocations: 3.938 kB / 0.5863 GB, free: 9.668 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.945e-05/0.3376, allocations: 0 / 0.5863 GB, free: 9.668 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.004915/0.3425, allocations: 2.87 MB / 0.5891 GB, free: 6.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3425, allocations: 8.031 kB / 0.5891 GB, free: 6.746 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000559/0.3431, allocations: 483.1 kB / 0.5896 GB, free: 6.266 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004898/0.348, allocations: 1.578 MB / 0.5911 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.3507, allocations: 1.275 MB / 0.5923 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.3508, allocations: 151.8 kB / 0.5925 GB, free: 3.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003576/0.3512, allocations: 183.9 kB / 0.5927 GB, free: 3.051 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00916/0.3604, allocations: 6.246 MB / 0.5988 GB, free: 12.53 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.374e-05/0.3604, allocations: 15.88 kB / 0.5988 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002283/0.3606, allocations: 83.91 kB / 0.5989 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002019/0.3627, allocations: 1.34 MB / 0.6002 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009219/0.3719, allocations: 5.338 MB / 0.6054 GB, free: 5.738 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02676/0.3986, allocations: 19.99 MB / 0.6249 GB, free: 1.164 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003883/0.4025, allocations: 1.492 MB / 0.6264 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.4036, allocations: 0.6328 MB / 0.627 GB, free: 15 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006834/0.4105, allocations: 3.16 MB / 0.6301 GB, free: 11.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.4105, allocations: 39 kB / 0.6301 GB, free: 11.78 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 2.935e-06/0.4105, allocations: 0 / 0.6301 GB, free: 11.78 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.00552/0.416, allocations: 1.99 MB / 0.6321 GB, free: 9.777 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.4161, allocations: 55.84 kB / 0.6321 GB, free: 9.711 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003282/0.4193, allocations: 1.942 MB / 0.634 GB, free: 7.766 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.592e-05/0.4194, allocations: 37.69 kB / 0.634 GB, free: 7.723 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001647/0.4211, allocations: 1.911 MB / 0.6359 GB, free: 5.789 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003694/0.4214, allocations: 321.5 kB / 0.6362 GB, free: 5.473 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009639/0.4224, allocations: 0.6312 MB / 0.6368 GB, free: 4.832 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.4226, allocations: 353.9 kB / 0.6372 GB, free: 4.48 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.4241, allocations: 0.8919 MB / 0.638 GB, free: 3.586 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003338/0.4274, allocations: 2.751 MB / 0.6407 GB, free: 15.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005176/0.4326, allocations: 3.962 MB / 0.6446 GB, free: 11.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.343e-05/0.4327, allocations: 20 kB / 0.6446 GB, free: 11 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.00631/0.439, allocations: 3.533 MB / 0.6481 GB, free: 7.457 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.418e-05/0.4391, allocations: 36.94 kB / 0.6481 GB, free: 7.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.4392, allocations: 64 kB / 0.6482 GB, free: 7.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001258/0.4393, allocations: 95.92 kB / 0.6482 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002099/0.4414, allocations: 0.655 MB / 0.6489 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001518/0.4415, allocations: 127.5 kB / 0.649 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.4436, allocations: 424.9 kB / 0.6494 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.4439, allocations: 192 kB / 0.6496 GB, free: 5.879 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.002262/0.4462, allocations: 1.346 MB / 0.6509 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/0.4465, allocations: 166.9 kB / 0.6511 GB, free: 4.355 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004406/0.4469, allocations: 192.9 kB / 0.6513 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.509e-05/0.447, allocations: 11.94 kB / 0.6513 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.447, allocations: 4 kB / 0.6513 GB, free: 4.148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.447, allocations: 4 kB / 0.6513 GB, free: 4.145 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007732/0.4547, allocations: 4.005 MB / 0.6552 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.4547, allocations: 4 kB / 0.6552 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.4552, allocations: 107.8 kB / 0.6553 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.351e-05/0.4552, allocations: 8 kB / 0.6553 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.4552, allocations: 16 kB / 0.6553 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.366e-05/0.4553, allocations: 8 kB / 0.6553 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.4553, allocations: 15.77 kB / 0.6553 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.457, allocations: 1.275 MB / 0.6566 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004762/0.4575, allocations: 182.6 kB / 0.6568 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/0.4578, allocations: 20 kB / 0.6568 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/0.4584, allocations: 31.92 kB / 0.6568 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.4585, allocations: 51.81 kB / 0.6569 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.616e-05/0.4586, allocations: 35.98 kB / 0.6569 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002272/0.4608, allocations: 1.267 MB / 0.6581 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.4608, allocations: 0 / 0.6581 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002768/0.4636, allocations: 0.6891 MB / 0.6588 GB, free: 12.2 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.002396/0.466, allocations: 1.876 MB / 0.6606 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00344/0.4694, allocations: 1.955 MB / 0.6625 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.4694, allocations: 3.938 kB / 0.6625 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.4701, allocations: 439 kB / 0.663 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.4716, allocations: 234.6 kB / 0.6632 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03626/0.5078, allocations: 20.96 MB / 0.6837 GB, free: 104 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003678/0.5115, allocations: 2.271 MB / 0.6859 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002384/0.5139, allocations: 0.9519 MB / 0.6868 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/0.5156, allocations: 1.042 MB / 0.6878 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.202e-06/0.5156, allocations: 4 kB / 0.6878 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08109/0.5967, allocations: 35.3 MB / 0.7223 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.9/16.5, allocations: 0 / 0.7223 GB, free: 8.711 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: 19.895372444065288]