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.001292/0.001292, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00171/0.00171, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.422/1.422, allocations: 230.6 MB / 258.3 MB, free: 7.953 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.2279/0.2279, allocations: 44.92 MB / 359.6 MB, free: 6.293 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.002012/0.002012, allocations: 56.09 kB / 0.4938 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3084, allocations: 65.48 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01214/0.3205, allocations: 9.594 MB / 0.5672 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00648/0.327, allocations: 2.963 MB / 0.57 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/0.3282, allocations: 55.81 kB / 0.5701 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003928/0.3322, allocations: 2.029 MB / 0.5721 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002831/0.335, allocations: 1.136 MB / 0.5732 GB, free: 7.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008031/0.3358, allocations: 287.5 kB / 0.5735 GB, free: 7.676 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00342/0.3392, allocations: 2.329 MB / 0.5757 GB, free: 5.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002422/0.3417, allocations: 1.746 MB / 0.5774 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.3431, allocations: 0.8878 MB / 0.5783 GB, free: 2.656 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002059/0.3451, allocations: 1.25 MB / 0.5795 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004826/0.3456, allocations: 196 kB / 0.5797 GB, free: 1.211 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.3471, allocations: 0.7294 MB / 0.5804 GB, free: 492 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.3485, allocations: 1.141 MB / 0.5815 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001834/0.3504, allocations: 1.305 MB / 0.5828 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005874/0.3562, allocations: 4.326 MB / 0.587 GB, free: 9.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3563, allocations: 0 / 0.587 GB, free: 9.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3563, allocations: 0 / 0.587 GB, free: 9.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001398/0.3564, allocations: 0 / 0.587 GB, free: 9.68 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.006243/0.3626, allocations: 2.878 MB / 0.5899 GB, free: 6.758 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3627, allocations: 12.03 kB / 0.5899 GB, free: 6.746 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.384e-05/0.3628, allocations: 63.94 kB / 0.5899 GB, free: 6.684 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007913/0.3636, allocations: 479.1 kB / 0.5904 GB, free: 6.207 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005271/0.3688, allocations: 1.578 MB / 0.5919 GB, free: 4.625 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002971/0.3718, allocations: 1.267 MB / 0.5932 GB, free: 3.328 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.3719, allocations: 151.6 kB / 0.5933 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005013/0.3724, allocations: 195.8 kB / 0.5935 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/0.3837, allocations: 6.246 MB / 0.5996 GB, free: 12.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-05/0.3837, allocations: 11.88 kB / 0.5996 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000301/0.384, allocations: 87.91 kB / 0.5997 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002233/0.3863, allocations: 1.344 MB / 0.601 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.397, allocations: 5.334 MB / 0.6062 GB, free: 5.676 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03265/0.4296, allocations: 19.99 MB / 0.6257 GB, free: 1.105 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004285/0.4339, allocations: 1.49 MB / 0.6272 GB, free: 15.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.435, allocations: 0.6367 MB / 0.6278 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00711/0.4421, allocations: 3.152 MB / 0.6309 GB, free: 11.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.693e-05/0.4422, allocations: 42.94 kB / 0.6309 GB, free: 11.72 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 5.701e-06/0.4422, allocations: 4 kB / 0.6309 GB, free: 11.72 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.005829/0.448, allocations: 1.99 MB / 0.6329 GB, free: 9.719 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.4481, allocations: 55.84 kB / 0.6329 GB, free: 9.652 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.4519, allocations: 1.946 MB / 0.6348 GB, free: 7.703 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.452, allocations: 41.69 kB / 0.6349 GB, free: 7.656 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001767/0.4538, allocations: 1.907 MB / 0.6367 GB, free: 5.727 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/0.4543, allocations: 329.5 kB / 0.637 GB, free: 5.402 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/0.4555, allocations: 0.6195 MB / 0.6377 GB, free: 4.773 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.4557, allocations: 353.9 kB / 0.638 GB, free: 4.422 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.4572, allocations: 0.892 MB / 0.6389 GB, free: 3.527 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003469/0.4606, allocations: 2.751 MB / 0.6415 GB, free: 15.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005418/0.4661, allocations: 3.962 MB / 0.6454 GB, free: 10.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.881e-05/0.4661, allocations: 20 kB / 0.6454 GB, free: 10.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006977/0.4731, allocations: 3.538 MB / 0.6489 GB, free: 7.395 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.914e-05/0.4732, allocations: 32 kB / 0.6489 GB, free: 7.363 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/0.4733, allocations: 71.98 kB / 0.649 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001172/0.4734, allocations: 91.94 kB / 0.6491 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002132/0.4756, allocations: 0.655 MB / 0.6497 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001492/0.4757, allocations: 127.5 kB / 0.6498 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.4781, allocations: 428.9 kB / 0.6503 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004292/0.4785, allocations: 192 kB / 0.6504 GB, free: 5.812 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.002483/0.481, allocations: 1.335 MB / 0.6517 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/0.4813, allocations: 166.9 kB / 0.6519 GB, free: 4.301 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005084/0.4818, allocations: 200.8 kB / 0.6521 GB, free: 4.102 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-05/0.4818, allocations: 11.98 kB / 0.6521 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.4818, allocations: 3.984 kB / 0.6521 GB, free: 4.086 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4818, allocations: 4 kB / 0.6521 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008449/0.4903, allocations: 3.996 MB / 0.656 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/0.4903, allocations: 8 kB / 0.656 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.4908, allocations: 104.7 kB / 0.6561 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.421e-05/0.4908, allocations: 8 kB / 0.6561 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.833e-05/0.4908, allocations: 23.94 kB / 0.6561 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.187e-05/0.4909, allocations: 12 kB / 0.6562 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/0.4909, allocations: 15.92 kB / 0.6562 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/0.4928, allocations: 1.267 MB / 0.6574 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000536/0.4933, allocations: 182.6 kB / 0.6576 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003252/0.4936, allocations: 23.98 kB / 0.6576 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/0.4943, allocations: 27.92 kB / 0.6576 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.4944, allocations: 55.81 kB / 0.6577 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.088e-05/0.4945, allocations: 35.98 kB / 0.6577 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00244/0.4969, allocations: 1.267 MB / 0.659 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4969, allocations: 0 / 0.659 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003/0.4999, allocations: 0.6813 MB / 0.6596 GB, free: 12.14 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.002545/0.5024, allocations: 1.876 MB / 0.6615 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003397/0.5058, allocations: 1.96 MB / 0.6634 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.5058, allocations: 0 / 0.6634 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006269/0.5065, allocations: 432 kB / 0.6638 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.508, allocations: 248 kB / 0.664 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03516/0.5431, allocations: 20.94 MB / 0.6845 GB, free: 52 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00315/0.5463, allocations: 2.275 MB / 0.6867 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002226/0.5485, allocations: 0.9597 MB / 0.6876 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/0.5501, allocations: 1.038 MB / 0.6886 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/0.5501, allocations: 0 / 0.6886 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07463/0.6247, allocations: 35.33 MB / 0.7231 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.2, allocations: 10.58 kB / 0.7232 GB, free: 8.637 MB / 0.5606 GB " [Timeout remaining time 644] (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.998349983012304]