Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008306/0.0008306, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008318/0.0008318, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8829/0.8829, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.225e-06/2.225e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.479e-05/1.701e-05, allocations: 2.281 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01066/0.01068, allocations: 9.364 MB / 327.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006676/0.01735, allocations: 3.697 MB / 331.5 MB, free: 9.211 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008011/0.01815, allocations: 75.62 kB / 331.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003579/0.02173, allocations: 2.293 MB / 333.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003302/0.02503, allocations: 1.952 MB / 335.8 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.02611, allocations: 0.7836 MB / 336.6 MB, free: 4.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004275/0.03038, allocations: 4.868 MB / 341.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003114/0.0335, allocations: 2.93 MB / 344.4 MB, free: 12.22 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.03615, allocations: 2.296 MB / 346.7 MB, free: 9.922 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002206/0.03835, allocations: 2.385 MB / 349.1 MB, free: 7.531 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007186/0.03907, allocations: 300 kB / 349.4 MB, free: 7.238 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.04022, allocations: 0.901 MB / 350.3 MB, free: 6.336 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001084/0.0413, allocations: 1.967 MB / 352.3 MB, free: 4.363 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000949/0.04225, allocations: 1.227 MB / 353.5 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004413/0.04666, allocations: 6.49 MB / 360 MB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.04667, allocations: 0 / 360 MB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.04667, allocations: 0 / 360 MB, free: 12.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.631e-05/0.04676, allocations: 0 / 360 MB, free: 12.62 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.005346/0.0521, allocations: 4.738 MB / 364.7 MB, free: 7.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.05215, allocations: 8.922 kB / 364.7 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005679/0.05271, allocations: 0.6951 MB / 365.4 MB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004053/0.05677, allocations: 2.116 MB / 367.5 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002743/0.05951, allocations: 2.311 MB / 369.8 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.05963, allocations: 221.6 kB / 370.1 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003553/0.05998, allocations: 295.8 kB / 370.3 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009315/0.0693, allocations: 9.684 MB / 380 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.21e-05/0.06937, allocations: 51.56 kB / 380.1 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002455/0.06961, allocations: 147.8 kB / 380.2 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001563/0.07118, allocations: 1.915 MB / 382.1 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009378/0.08056, allocations: 7.648 MB / 389.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0323/0.1129, allocations: 36.46 MB / 426.2 MB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004544/0.1174, allocations: 2.435 MB / 428.7 MB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008483/0.1182, allocations: 0.7982 MB / 429.5 MB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003938/0.1222, allocations: 3.008 MB / 432.5 MB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1222, allocations: 51.16 kB / 432.5 MB, free: 1.883 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.386e-06/0.1222, allocations: 4 kB / 432.5 MB, free: 1.879 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.01384/0.1361, allocations: 9.535 MB / 442.1 MB, free: 8.281 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.1361, allocations: 149.5 kB / 442.2 MB, free: 8.102 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005155/0.1413, allocations: 4.474 MB / 446.7 MB, free: 3.645 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.1415, allocations: 49.7 kB / 446.7 MB, free: 3.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.143, allocations: 3.182 MB / 449.9 MB, free: 388 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1493/0.2923, allocations: 0.6271 MB / 450.6 MB, free: 119.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001628/0.2939, allocations: 1.145 MB / 451.7 MB, free: 119.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.452e-05/0.2939, allocations: 304.8 kB / 452 MB, free: 119 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/0.2956, allocations: 1.584 MB / 453.6 MB, free: 118.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00219/0.2978, allocations: 5.354 MB / 458.9 MB, free: 113 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004063/0.3019, allocations: 7.528 MB / 466.5 MB, free: 106.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.028e-05/0.3019, allocations: 39.31 kB / 466.5 MB, free: 106.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.006542/0.3085, allocations: 6.677 MB / 473.2 MB, free: 101.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.809e-05/0.3085, allocations: 64 kB / 473.2 MB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.351e-05/0.3086, allocations: 132 kB / 473.4 MB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.884e-05/0.3087, allocations: 176 kB / 473.5 MB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/0.3108, allocations: 1.392 MB / 474.9 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001528/0.3109, allocations: 261.2 kB / 475.2 MB, free: 100 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00317/0.3141, allocations: 391.3 kB / 475.6 MB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003512/0.3145, allocations: 364 kB / 475.9 MB, free: 99.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 735 * 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 prepare postOptimizeDAE: time 0.002177/0.3166, allocations: 1.981 MB / 477.9 MB, free: 97.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006667/0.3173, allocations: 357.7 kB / 478.3 MB, free: 97.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.3188, allocations: 1.244 MB / 479.5 MB, free: 96.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/0.3189, allocations: 19.94 kB / 479.5 MB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.3189, allocations: 4 kB / 479.5 MB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.3189, allocations: 6.141 kB / 479.5 MB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005867/0.3247, allocations: 5.519 MB / 485.1 MB, free: 91.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.3248, allocations: 19.44 kB / 485.1 MB, free: 91.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004935/0.3252, allocations: 279.5 kB / 485.3 MB, free: 90.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.37e-05/0.3253, allocations: 24 kB / 485.4 MB, free: 90.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-05/0.3253, allocations: 48.62 kB / 485.4 MB, free: 90.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-05/0.3253, allocations: 39.86 kB / 485.5 MB, free: 90.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.3253, allocations: 31.86 kB / 485.5 MB, free: 90.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.3273, allocations: 3.208 MB / 488.7 MB, free: 87.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005215/0.3278, allocations: 396.2 kB / 489.1 MB, free: 86.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.328, allocations: 47.98 kB / 489.1 MB, free: 86.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000736/0.3287, allocations: 111.9 kB / 489.2 MB, free: 86.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.905e-05/0.3288, allocations: 155.3 kB / 489.4 MB, free: 86.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.3289, allocations: 69.25 kB / 489.5 MB, free: 86.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002079/0.331, allocations: 2.689 MB / 492.1 MB, free: 83.85 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.331, allocations: 4 kB / 492.1 MB, free: 83.85 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003298/0.3343, allocations: 0.969 MB / 493.1 MB, free: 82.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * 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.002234/0.3365, allocations: 3.895 MB / 497 MB, free: 78.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003569/0.3401, allocations: 3.533 MB / 0.4888 GB, free: 75.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.3401, allocations: 4 kB / 0.4888 GB, free: 75.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.3406, allocations: 0.683 MB / 0.4895 GB, free: 74.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.3423, allocations: 460.7 kB / 0.4899 GB, free: 74.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03284/0.3751, allocations: 41.13 MB / 0.5301 GB, free: 26.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001692/0.3768, allocations: 2.551 MB / 0.5326 GB, free: 24.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002121/0.3789, allocations: 1.784 MB / 0.5343 GB, free: 22.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/0.38, allocations: 1.809 MB / 0.5361 GB, free: 20.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/0.38, allocations: 0 / 0.5361 GB, free: 20.56 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06939/0.4494, allocations: 57.84 MB / 0.5926 GB, free: 11.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.52, allocations: 3.984 kB / 0.5926 GB, free: 11.5 MB / 458.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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: 12.51657791621983]