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.001696/0.001696, allocations: 113.1 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.002123/0.002123, allocations: 215.7 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.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.2327/0.2327, allocations: 44.92 MB / 358.8 MB, free: 6.301 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",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.002018/0.002018, allocations: 67.89 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2897, allocations: 65.47 MB / 0.557 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01137/0.3011, allocations: 9.595 MB / 0.5664 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005765/0.3069, allocations: 2.959 MB / 0.5693 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.3079, allocations: 55.81 kB / 0.5693 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004009/0.3119, allocations: 2.029 MB / 0.5713 GB, free: 9.109 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002641/0.3146, allocations: 1.129 MB / 0.5724 GB, free: 7.977 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.3153, allocations: 295.3 kB / 0.5727 GB, free: 7.688 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003025/0.3183, allocations: 2.326 MB / 0.575 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002043/0.3204, allocations: 1.75 MB / 0.5767 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.3215, allocations: 0.8956 MB / 0.5776 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.3231, allocations: 1.254 MB / 0.5788 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003202/0.3234, allocations: 192 kB / 0.579 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.3246, allocations: 0.7255 MB / 0.5797 GB, free: 500 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.3257, allocations: 1.133 MB / 0.5808 GB, free: 15.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.3269, allocations: 1.312 MB / 0.5821 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004606/0.3315, allocations: 4.326 MB / 0.5863 GB, free: 9.688 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.3315, allocations: 7.984 kB / 0.5863 GB, free: 9.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3315, allocations: 4 kB / 0.5863 GB, free: 9.676 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.163e-05/0.3316, allocations: 3.938 kB / 0.5863 GB, free: 9.672 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.004847/0.3364, allocations: 2.855 MB / 0.5891 GB, free: 6.773 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3365, allocations: 12.03 kB / 0.5891 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005739/0.3371, allocations: 487 kB / 0.5896 GB, free: 6.277 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004926/0.342, allocations: 1.574 MB / 0.5911 GB, free: 4.699 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.3448, allocations: 1.279 MB / 0.5923 GB, free: 3.391 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.345, allocations: 147.8 kB / 0.5925 GB, free: 3.246 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/0.3453, allocations: 183.9 kB / 0.5927 GB, free: 3.066 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009925/0.3552, allocations: 6.246 MB / 0.5988 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.155e-05/0.3553, allocations: 11.88 kB / 0.5988 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002456/0.3555, allocations: 87.91 kB / 0.5989 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002032/0.3576, allocations: 1.344 MB / 0.6002 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009443/0.367, allocations: 5.33 MB / 0.6054 GB, free: 5.758 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03269/0.3997, allocations: 19.99 MB / 0.6249 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006651/0.4064, allocations: 1.498 MB / 0.6264 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.4079, allocations: 0.6367 MB / 0.627 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009921/0.4178, allocations: 3.156 MB / 0.6301 GB, free: 11.84 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.4179, allocations: 39 kB / 0.6301 GB, free: 11.79 MB / 478.1 MB Notification: Performance of pre-optimization done (n=78): time 2.745e-06/0.4179, allocations: 0 / 0.6301 GB, free: 11.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=78): time 0.007715/0.4256, allocations: 1.99 MB / 0.632 GB, free: 9.793 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.4257, allocations: 63.84 kB / 0.6321 GB, free: 9.719 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00416/0.4298, allocations: 1.946 MB / 0.634 GB, free: 7.77 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.388e-05/0.4299, allocations: 33.64 kB / 0.634 GB, free: 7.73 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.432, allocations: 1.907 MB / 0.6359 GB, free: 5.801 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004185/0.4324, allocations: 329.5 kB / 0.6362 GB, free: 5.477 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/0.4335, allocations: 0.6233 MB / 0.6368 GB, free: 4.844 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003145/0.4338, allocations: 357.9 kB / 0.6372 GB, free: 4.488 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.4358, allocations: 0.8842 MB / 0.638 GB, free: 3.602 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004505/0.4403, allocations: 2.755 MB / 0.6407 GB, free: 15.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/0.4482, allocations: 3.962 MB / 0.6446 GB, free: 11.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-05/0.4482, allocations: 16 kB / 0.6446 GB, free: 11.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01091/0.4591, allocations: 3.546 MB / 0.6481 GB, free: 7.461 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.11e-05/0.4592, allocations: 32 kB / 0.6481 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.4593, allocations: 68 kB / 0.6482 GB, free: 7.363 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001528/0.4595, allocations: 87.94 kB / 0.6482 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003593/0.4631, allocations: 0.6472 MB / 0.6489 GB, free: 6.629 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000173/0.4632, allocations: 131.5 kB / 0.649 GB, free: 6.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/0.4665, allocations: 429.3 kB / 0.6494 GB, free: 6.078 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003993/0.4669, allocations: 188 kB / 0.6496 GB, free: 5.895 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.003232/0.4701, allocations: 1.342 MB / 0.6509 GB, free: 4.539 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003841/0.4705, allocations: 162.9 kB / 0.6511 GB, free: 4.379 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005679/0.4711, allocations: 200.8 kB / 0.6513 GB, free: 4.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.259e-05/0.4711, allocations: 15.98 kB / 0.6513 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.4711, allocations: 0 / 0.6513 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.4711, allocations: 3.984 kB / 0.6513 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.4825, allocations: 3.993 MB / 0.6552 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.787e-05/0.4826, allocations: 8 kB / 0.6552 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008239/0.4834, allocations: 111.9 kB / 0.6553 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.28e-05/0.4834, allocations: 12 kB / 0.6553 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.343e-05/0.4835, allocations: 19.88 kB / 0.6553 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.466e-05/0.4835, allocations: 19.92 kB / 0.6553 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-05/0.4835, allocations: 8 kB / 0.6553 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002752/0.4863, allocations: 1.274 MB / 0.6566 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000655/0.4869, allocations: 178.6 kB / 0.6568 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.4872, allocations: 16 kB / 0.6568 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009105/0.4881, allocations: 35.92 kB / 0.6568 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.4883, allocations: 59.73 kB / 0.6569 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.4884, allocations: 28 kB / 0.6569 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00317/0.4915, allocations: 1.275 MB / 0.6581 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4915, allocations: 4 kB / 0.6581 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004376/0.4959, allocations: 0.6736 MB / 0.6588 GB, free: 12.21 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.003241/0.4992, allocations: 1.88 MB / 0.6606 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004987/0.5041, allocations: 1.956 MB / 0.6625 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/0.5042, allocations: 4 kB / 0.6625 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.5052, allocations: 437.5 kB / 0.663 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/0.5072, allocations: 238.3 kB / 0.6632 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03979/0.547, allocations: 20.94 MB / 0.6836 GB, free: 124 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003868/0.5509, allocations: 2.275 MB / 0.6859 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003921/0.5548, allocations: 0.9558 MB / 0.6868 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002312/0.5571, allocations: 1.046 MB / 0.6878 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of SimCode: time 1.232e-06/0.5571, allocations: 0 / 0.6878 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09294/0.6501, allocations: 35.29 MB / 0.7223 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/15.85, allocations: 7.969 kB / 0.7223 GB, free: 8.73 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 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.csv","/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] "Error: Could not read variable cutTorque.torque[3] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[3] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[2] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[2] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! Error: Could not read variable cutTorque.torque[1] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv. Warning: Get data of variable cutTorque.torque[1] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.157613634997688]