Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0007871/0.0007871, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003446/0.003446, allocations: 163.1 kB / 24.69 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8564/0.8564, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.74e-05/1.878e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1454/0.1454, allocations: 9.421 MB / 307.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006059/0.1515, allocations: 3.695 MB / 311.6 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.1532, allocations: 79.94 kB / 311.6 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003241/0.1565, allocations: 2.289 MB / 313.9 MB, free: 7.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004701/0.1612, allocations: 1.955 MB / 315.9 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.1627, allocations: 0.7896 MB / 316.7 MB, free: 6.055 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005656/0.1683, allocations: 4.901 MB / 321.6 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003804/0.1721, allocations: 2.958 MB / 324.5 MB, free: 1.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00397/0.1761, allocations: 2.309 MB / 326.8 MB, free: 500 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003271/0.1794, allocations: 2.398 MB / 329.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007658/0.1801, allocations: 301.1 kB / 329.5 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001696/0.1818, allocations: 0.896 MB / 330.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001435/0.1833, allocations: 1.979 MB / 332.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001476/0.1847, allocations: 1.227 MB / 333.6 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00555/0.1903, allocations: 6.506 MB / 340.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1903, allocations: 0 / 340.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1903, allocations: 7.984 kB / 340.1 MB, free: 4.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001162/0.1904, allocations: 0 / 340.1 MB, free: 4.773 MB / 298.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.006133/0.1966, allocations: 4.766 MB / 344.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.1966, allocations: 15.98 kB / 344.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00066/0.1973, allocations: 0.6873 MB / 345.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004217/0.2015, allocations: 2.12 MB / 347.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003565/0.205, allocations: 2.632 MB / 350.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.2052, allocations: 225.6 kB / 350.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000492/0.2057, allocations: 299.8 kB / 350.9 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/0.2175, allocations: 9.684 MB / 360.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.828e-05/0.2176, allocations: 43.64 kB / 360.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004054/0.218, allocations: 151.8 kB / 360.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00185/0.2198, allocations: 1.919 MB / 362.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.2309, allocations: 7.645 MB / 370.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03432/0.2652, allocations: 36.58 MB / 406.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004699/0.2699, allocations: 2.434 MB / 409.3 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008663/0.2708, allocations: 0.791 MB / 410.1 MB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004103/0.2749, allocations: 3.055 MB / 413.2 MB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.2749, allocations: 47.16 kB / 413.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.256e-06/0.2749, allocations: 0 / 413.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01558/0.2905, allocations: 9.759 MB / 423 MB, free: 15.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.2906, allocations: 145.6 kB / 423.1 MB, free: 15.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004664/0.2952, allocations: 4.573 MB / 427.7 MB, free: 10.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.2954, allocations: 45.7 kB / 427.7 MB, free: 10.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00179/0.2972, allocations: 3.193 MB / 430.9 MB, free: 7.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000462/0.2976, allocations: 0.6242 MB / 431.6 MB, free: 7.031 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.2987, allocations: 1.148 MB / 432.7 MB, free: 5.871 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.94e-05/0.2987, allocations: 305.1 kB / 433 MB, free: 5.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.3005, allocations: 1.588 MB / 434.6 MB, free: 3.977 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003614/0.3041, allocations: 5.354 MB / 440 MB, free: 12.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005823/0.3099, allocations: 7.532 MB / 447.5 MB, free: 3.312 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.678e-05/0.31, allocations: 44 kB / 447.5 MB, free: 3.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.007964/0.318, allocations: 6.682 MB / 454.2 MB, free: 12.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.027e-05/0.318, allocations: 64 kB / 454.3 MB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/0.3181, allocations: 132 kB / 454.4 MB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001103/0.3183, allocations: 176 kB / 454.6 MB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002561/0.3208, allocations: 1.388 MB / 456 MB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001279/0.3209, allocations: 263 kB / 456.2 MB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/0.3238, allocations: 403.7 kB / 456.6 MB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003991/0.3242, allocations: 364 kB / 457 MB, free: 9.82 MB / 426.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.002681/0.3269, allocations: 1.974 MB / 458.9 MB, free: 7.832 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005755/0.3275, allocations: 361.6 kB / 459.3 MB, free: 7.477 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.3289, allocations: 1.253 MB / 460.5 MB, free: 6.215 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.3289, allocations: 16 kB / 460.6 MB, free: 6.199 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.329, allocations: 0 / 460.6 MB, free: 6.199 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.329, allocations: 11.97 kB / 460.6 MB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00702/0.336, allocations: 5.531 MB / 466.1 MB, free: 364 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/0.336, allocations: 23.94 kB / 466.1 MB, free: 340 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005517/0.3366, allocations: 271.5 kB / 466.4 MB, free: 68 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.762e-05/0.3366, allocations: 31.94 kB / 466.4 MB, free: 36 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.1283/0.4649, allocations: 46.92 kB / 466.5 MB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.025e-05/0.4649, allocations: 35.64 kB / 466.5 MB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.981e-05/0.465, allocations: 29.72 kB / 466.5 MB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/0.4681, allocations: 3.197 MB / 469.7 MB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.4692, allocations: 0.5016 MB / 470.2 MB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003129/0.4695, allocations: 55.69 kB / 470.3 MB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009238/0.4704, allocations: 122 kB / 470.4 MB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.4706, allocations: 152.5 kB / 470.6 MB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-05/0.4707, allocations: 65.39 kB / 470.6 MB, free: 131.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00354/0.4742, allocations: 2.765 MB / 473.4 MB, free: 130.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4742, allocations: 2 kB / 473.4 MB, free: 130.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004104/0.4783, allocations: 0.9756 MB / 474.4 MB, free: 130.3 MB / 426.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.003299/0.4816, allocations: 3.896 MB / 478.3 MB, free: 128 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004533/0.4861, allocations: 3.539 MB / 481.8 MB, free: 126.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/0.4862, allocations: 5.969 kB / 481.8 MB, free: 126.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007197/0.4869, allocations: 0.6858 MB / 482.5 MB, free: 126.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.4891, allocations: 455.4 kB / 482.9 MB, free: 126.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/0.5254, allocations: 41.57 MB / 0.5122 GB, free: 91.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/0.5274, allocations: 2.559 MB / 0.5147 GB, free: 88.78 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002364/0.5298, allocations: 1.78 MB / 0.5164 GB, free: 87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/0.531, allocations: 1.809 MB / 0.5182 GB, free: 85.19 MB / 426.7 MB Notification: Performance of SimCode: time 1.262e-06/0.531, allocations: 0 / 0.5182 GB, free: 85.19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06727/0.5983, allocations: 58.48 MB / 0.5753 GB, free: 26.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.05/9.649, allocations: 3.859 kB / 0.5753 GB, free: 26.64 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.440430980175734]