Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.0008366/0.0008366, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008397/0.0008397, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.895/0.895, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.572e-05, allocations: 2.281 kB / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007401/0.007426, allocations: 9.364 MB / 333.9 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005729/0.01316, allocations: 3.717 MB / 337.7 MB, free: 2.656 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008341/0.01399, allocations: 75.62 kB / 337.7 MB, free: 2.582 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.01633, allocations: 2.277 MB / 340 MB, free: 304 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002467/0.01879, allocations: 1.925 MB / 341.9 MB, free: 14.36 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009428/0.01974, allocations: 0.768 MB / 342.7 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003201/0.02294, allocations: 5.008 MB / 347.7 MB, free: 8.578 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002029/0.02497, allocations: 2.942 MB / 350.7 MB, free: 5.582 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.02677, allocations: 2.272 MB / 352.9 MB, free: 3.305 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.02859, allocations: 2.389 MB / 355.3 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003085/0.0289, allocations: 300 kB / 355.6 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009534/0.02985, allocations: 0.8699 MB / 356.5 MB, free: 15.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001961/0.03182, allocations: 1.94 MB / 358.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.03336, allocations: 1.207 MB / 359.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005887/0.03924, allocations: 6.42 MB / 366 MB, free: 6.148 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.03925, allocations: 4 kB / 366 MB, free: 6.145 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.03925, allocations: 0 / 366 MB, free: 6.145 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001719/0.03942, allocations: 0 / 366 MB, free: 6.145 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.007591/0.04702, allocations: 4.698 MB / 370.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.04707, allocations: 8.031 kB / 370.8 MB, free: 1.383 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009025/0.04797, allocations: 0.6951 MB / 371.4 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004341/0.05231, allocations: 2.112 MB / 373.6 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00342/0.05573, allocations: 2.303 MB / 375.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.05587, allocations: 225.6 kB / 376.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006047/0.05648, allocations: 295.8 kB / 376.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.06921, allocations: 9.703 MB / 386.1 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.595e-05/0.06931, allocations: 51.61 kB / 386.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004034/0.06971, allocations: 143.8 kB / 386.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001695/0.07141, allocations: 1.919 MB / 388.2 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.08258, allocations: 7.664 MB / 395.8 MB, free: 7.418 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03447/0.117, allocations: 36.48 MB / 432.3 MB, free: 1.773 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004014/0.1211, allocations: 2.446 MB / 434.8 MB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008441/0.1219, allocations: 0.7909 MB / 435.6 MB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0042/0.1261, allocations: 3.012 MB / 438.6 MB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.1261, allocations: 51.2 kB / 438.6 MB, free: 11.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.477e-06/0.1261, allocations: 0 / 438.6 MB, free: 11.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01544/0.1416, allocations: 9.585 MB / 448.2 MB, free: 1.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.1418, allocations: 141.5 kB / 448.3 MB, free: 1.578 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1546/0.2963, allocations: 4.463 MB / 452.8 MB, free: 113.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.2965, allocations: 45.64 kB / 452.9 MB, free: 113.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.2978, allocations: 3.183 MB / 456 MB, free: 112 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004867/0.2983, allocations: 0.6201 MB / 456.7 MB, free: 111.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/0.2995, allocations: 1.152 MB / 457.8 MB, free: 111 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.378e-05/0.2995, allocations: 310.8 kB / 458.1 MB, free: 110.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.3011, allocations: 1.586 MB / 459.7 MB, free: 110.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.3035, allocations: 5.35 MB / 465 MB, free: 104.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004473/0.308, allocations: 7.551 MB / 472.6 MB, free: 97.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.944e-05/0.3081, allocations: 40 kB / 472.6 MB, free: 97.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.006289/0.3144, allocations: 6.68 MB / 479.3 MB, free: 91.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.636e-05/0.3144, allocations: 64 kB / 479.4 MB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-05/0.3145, allocations: 132 kB / 479.5 MB, free: 91.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.868e-05/0.3146, allocations: 179.7 kB / 479.7 MB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001945/0.3165, allocations: 1.389 MB / 481.1 MB, free: 89.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.912e-05/0.3166, allocations: 260.7 kB / 481.3 MB, free: 89.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/0.3191, allocations: 405.9 kB / 481.7 MB, free: 89.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002181/0.3193, allocations: 364 kB / 482.1 MB, free: 89.05 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.001575/0.3209, allocations: 1.971 MB / 484.1 MB, free: 87.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.3212, allocations: 349.7 kB / 484.4 MB, free: 86.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000312/0.3215, allocations: 406.3 kB / 484.8 MB, free: 86.49 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.3215, allocations: 21.33 kB / 484.8 MB, free: 86.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3215, allocations: 0 / 484.8 MB, free: 86.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3215, allocations: 7.969 kB / 484.8 MB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004642/0.3262, allocations: 5.517 MB / 490.3 MB, free: 80.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.3262, allocations: 16 kB / 490.4 MB, free: 80.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.3267, allocations: 275.5 kB / 490.6 MB, free: 80.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.287e-05/0.3267, allocations: 28 kB / 490.6 MB, free: 80.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.3267, allocations: 51.98 kB / 490.7 MB, free: 80.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.29e-05/0.3267, allocations: 40.36 kB / 490.7 MB, free: 80.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.3268, allocations: 38.16 kB / 490.8 MB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.3286, allocations: 3.213 MB / 494 MB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004428/0.3291, allocations: 389.4 kB / 494.4 MB, free: 76.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/0.3292, allocations: 51.98 kB / 494.4 MB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007156/0.33, allocations: 119.8 kB / 494.5 MB, free: 76.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.3301, allocations: 159.2 kB / 494.7 MB, free: 76.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.918e-05/0.3301, allocations: 67.98 kB / 494.8 MB, free: 76.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002007/0.3321, allocations: 2.688 MB / 497.4 MB, free: 73.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3321, allocations: 0 / 497.4 MB, free: 73.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002818/0.3349, allocations: 0.9413 MB / 498.4 MB, free: 72.41 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.00227/0.3372, allocations: 3.9 MB / 0.4905 GB, free: 68.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003733/0.3409, allocations: 3.543 MB / 0.494 GB, free: 64.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/0.3409, allocations: 4 kB / 0.494 GB, free: 64.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005349/0.3415, allocations: 0.6954 MB / 0.4947 GB, free: 64.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.3435, allocations: 458.7 kB / 0.4951 GB, free: 63.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03256/0.376, allocations: 41.12 MB / 0.5353 GB, free: 16.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/0.378, allocations: 2.553 MB / 0.5378 GB, free: 13.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002338/0.3803, allocations: 1.784 MB / 0.5395 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/0.3815, allocations: 1.809 MB / 0.5413 GB, free: 10.01 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.3815, allocations: 0 / 0.5413 GB, free: 10.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.077/0.4585, allocations: 57.61 MB / 0.5975 GB, free: 1.168 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.251/9.709, allocations: 10.41 kB / 0.5975 GB, free: 1.164 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 11.732429758645594]