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.001375/0.001375, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.004457/0.004457, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 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.9492/0.9492, allocations: 173.4 MB / 201.1 MB, free: 8.984 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 268 MB, free: 6.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.64e-05/3.836e-05, allocations: 2.312 kB / 268 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009013/0.009051, allocations: 10.41 MB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006674/0.01572, allocations: 3.818 MB / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001565/0.01729, allocations: 75.62 kB / 282.3 MB, free: 7.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002935/0.02022, allocations: 2.39 MB / 284.7 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003977/0.0242, allocations: 1.967 MB / 286.7 MB, free: 3.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.02537, allocations: 0.7952 MB / 287.5 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.127/0.1523, allocations: 4.85 MB / 292.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004123/0.1564, allocations: 3.045 MB / 295.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004426/0.1609, allocations: 2.297 MB / 297.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003563/0.1644, allocations: 2.424 MB / 300.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.1655, allocations: 299.9 kB / 300.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.1672, allocations: 0.8936 MB / 301.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001795/0.169, allocations: 1.979 MB / 303.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00231/0.1714, allocations: 1.229 MB / 304.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004196/0.1756, allocations: 4.321 MB / 308.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1756, allocations: 0 / 308.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1756, allocations: 0 / 308.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002001/0.1758, allocations: 0.5625 kB / 308.8 MB, free: 12.41 MB / 266.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.006028/0.1818, allocations: 5.086 MB / 313.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1818, allocations: 9.25 kB / 313.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004412/0.1862, allocations: 2.461 MB / 316.4 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/0.1888, allocations: 1.999 MB / 318.4 MB, free: 5.219 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.31e-05/0.1888, allocations: 223.5 kB / 318.6 MB, free: 5.035 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003079/0.1892, allocations: 299.1 kB / 318.9 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006755/0.1959, allocations: 6.041 MB / 324.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.196, allocations: 56.7 kB / 325 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002741/0.1963, allocations: 142.4 kB / 325.1 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001752/0.198, allocations: 1.917 MB / 327 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006199/0.2042, allocations: 2.992 MB / 330 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03093/0.2352, allocations: 44.08 MB / 374.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003515/0.2387, allocations: 1.692 MB / 375.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005569/0.2392, allocations: 386.2 kB / 376.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00359/0.2428, allocations: 2.675 MB / 378.8 MB, free: 7.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.2429, allocations: 52.95 kB / 378.9 MB, free: 7.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=134): time 3.647e-06/0.2429, allocations: 0 / 378.9 MB, free: 7.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=152): time 0.01273/0.2556, allocations: 7.684 MB / 386.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.2557, allocations: 148.2 kB / 386.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/0.2591, allocations: 3.427 MB / 390.1 MB, free: 11.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.461e-05/0.2591, allocations: 49.7 kB / 390.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/0.2609, allocations: 3.369 MB / 393.6 MB, free: 8.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004573/0.2614, allocations: 0.6452 MB / 394.2 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.2624, allocations: 1.255 MB / 395.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.2625, allocations: 476.8 kB / 395.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009415/0.2634, allocations: 0.5463 MB / 396.5 MB, free: 5.512 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/0.2672, allocations: 6.136 MB / 402.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005848/0.273, allocations: 7.396 MB / 410 MB, free: 2.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.782e-05/0.2731, allocations: 40 kB / 410 MB, free: 2.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.006279/0.2794, allocations: 4.934 MB / 415 MB, free: 13.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.234e-05/0.2795, allocations: 63.98 kB / 415 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.2796, allocations: 136 kB / 415.2 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001213/0.2797, allocations: 179.9 kB / 415.3 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/0.2824, allocations: 1.381 MB / 416.7 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003381/0.2828, allocations: 267 kB / 417 MB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002434/0.2852, allocations: 365.9 kB / 417.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/0.2855, allocations: 360 kB / 417.7 MB, free: 11.23 MB / 378.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 (746): * Single equations (assignments): 743 * 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.001107/0.2866, allocations: 0.6536 MB / 418.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/0.287, allocations: 365.8 kB / 418.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008725/0.2879, allocations: 0.7697 MB / 419.5 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/0.2879, allocations: 16 kB / 419.5 MB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.2879, allocations: 4 kB / 419.5 MB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.2879, allocations: 7.969 kB / 419.5 MB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005793/0.2937, allocations: 4.896 MB / 424.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.2937, allocations: 20.06 kB / 424.4 MB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005294/0.2942, allocations: 275.5 kB / 424.7 MB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.808e-05/0.2942, allocations: 24 kB / 424.7 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-05/0.2943, allocations: 48 kB / 424.8 MB, free: 3.801 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.789e-05/0.2943, allocations: 39.86 kB / 424.8 MB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.561e-05/0.2943, allocations: 31.81 kB / 424.8 MB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.2962, allocations: 2.485 MB / 427.3 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004752/0.2967, allocations: 333.6 kB / 427.6 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.2969, allocations: 52.69 kB / 427.7 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006732/0.2976, allocations: 97.69 kB / 427.8 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.2977, allocations: 151.3 kB / 427.9 MB, free: 280 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.417e-05/0.2977, allocations: 71.92 kB / 428 MB, free: 208 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1348/0.4326, allocations: 1.465 MB / 429.5 MB, free: 113.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4326, allocations: 0 / 429.5 MB, free: 113.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005744/0.4383, allocations: 0.9651 MB / 430.4 MB, free: 113.3 MB / 378.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.000563/0.4389, allocations: 230.3 kB / 430.7 MB, free: 113.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004544/0.4434, allocations: 2.523 MB / 433.2 MB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/0.4434, allocations: 2.75 kB / 433.2 MB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.444, allocations: 460.5 kB / 433.6 MB, free: 113.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002048/0.4461, allocations: 419.8 kB / 434 MB, free: 113 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.4567, allocations: 7.49 MB / 441.5 MB, free: 109.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.4579, allocations: 1.169 MB / 442.7 MB, free: 109.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002319/0.4602, allocations: 1.528 MB / 444.2 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.4605, allocations: 228.8 kB / 444.4 MB, free: 109 MB / 378.7 MB Notification: Performance of SimCode: time 2.074e-06/0.4605, allocations: 0 / 444.4 MB, free: 109 MB / 378.7 MB Notification: Performance of Templates: time 0.03295/0.4935, allocations: 20.71 MB / 465.2 MB, free: 96.47 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.027889672666788]