Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9396/0.9396, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.111e-05/1.234e-05, allocations: 2.312 kB / 273.3 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007674/0.007686, allocations: 10.06 MB / 283.4 MB, free: 7.098 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005305/0.01299, allocations: 3.786 MB / 287.2 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007143/0.01371, allocations: 75.62 kB / 287.3 MB, free: 3.223 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002259/0.01596, allocations: 2.359 MB / 289.6 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1057/0.1217, allocations: 1.923 MB / 291.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.1229, allocations: 0.7913 MB / 292.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004507/0.1274, allocations: 4.999 MB / 297.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002655/0.13, allocations: 3.032 MB / 300.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.1323, allocations: 2.351 MB / 302.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.1342, allocations: 2.339 MB / 305.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003345/0.1345, allocations: 293.3 kB / 305.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009263/0.1354, allocations: 0.8732 MB / 306.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008162/0.1363, allocations: 1.93 MB / 308.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007714/0.137, allocations: 1.201 MB / 309.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002212/0.1392, allocations: 4.205 MB / 313.6 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1393, allocations: 3.844 kB / 313.6 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1393, allocations: 0 / 313.6 MB, free: 6.973 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.154e-05/0.1393, allocations: 0 / 313.6 MB, free: 6.973 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.003452/0.1427, allocations: 4.786 MB / 318.3 MB, free: 2.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1428, allocations: 15.98 kB / 318.4 MB, free: 2.484 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003014/0.1458, allocations: 1.51 MB / 319.9 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.1473, allocations: 1.817 MB / 321.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.1474, allocations: 220.6 kB / 321.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003005/0.1477, allocations: 300.3 kB / 322.2 MB, free: 14.87 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005008/0.1527, allocations: 5.501 MB / 327.7 MB, free: 8.781 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-05/0.1528, allocations: 47.97 kB / 327.7 MB, free: 8.758 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/0.153, allocations: 143.7 kB / 327.9 MB, free: 8.652 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00138/0.1544, allocations: 1.719 MB / 329.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003568/0.158, allocations: 2.354 MB / 332 MB, free: 4.805 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02222/0.1802, allocations: 43.72 MB / 375.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/0.1831, allocations: 1.616 MB / 377.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/0.1835, allocations: 324.8 kB / 377.6 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00272/0.1862, allocations: 2.592 MB / 380.2 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.1862, allocations: 46.05 kB / 380.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 2.535e-06/0.1862, allocations: 0 / 380.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.009297/0.1955, allocations: 4.87 MB / 385.1 MB, free: 15.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.1956, allocations: 141.5 kB / 385.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/0.1982, allocations: 3.416 MB / 388.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.202e-05/0.1982, allocations: 49.7 kB / 388.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/0.1999, allocations: 3.396 MB / 392.1 MB, free: 8.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003851/0.2003, allocations: 0.6476 MB / 392.8 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.2013, allocations: 1.28 MB / 394 MB, free: 6.504 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.2015, allocations: 480.7 kB / 394.5 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000853/0.2023, allocations: 0.4917 MB / 395 MB, free: 5.535 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003552/0.2059, allocations: 6.127 MB / 401.1 MB, free: 12.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005671/0.2116, allocations: 7.285 MB / 408.4 MB, free: 2.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.862e-05/0.2116, allocations: 40 kB / 408.5 MB, free: 2.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.005304/0.2169, allocations: 4.627 MB / 413.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.217, allocations: 60 kB / 413.1 MB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/0.2171, allocations: 136 kB / 413.3 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001093/0.2172, allocations: 183.9 kB / 413.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/0.2193, allocations: 1.369 MB / 414.8 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001716/0.2195, allocations: 275.6 kB / 415.1 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.2214, allocations: 259.7 kB / 415.3 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002502/0.2217, allocations: 320 kB / 415.7 MB, free: 11.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (747): * Single equations (assignments): 744 * 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.0009367/0.2226, allocations: 0.6457 MB / 416.3 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002892/0.2229, allocations: 369.8 kB / 416.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.2232, allocations: 301.8 kB / 417 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.2232, allocations: 16 kB / 417 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.2232, allocations: 0 / 417 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.2232, allocations: 11.97 kB / 417 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00478/0.228, allocations: 4.836 MB / 421.8 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/0.228, allocations: 24.03 kB / 421.8 MB, free: 5.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004894/0.2285, allocations: 263.5 kB / 422.1 MB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.709e-05/0.2285, allocations: 28.12 kB / 422.1 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.2286, allocations: 48 kB / 422.2 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.901e-05/0.2286, allocations: 35.86 kB / 422.2 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-05/0.2286, allocations: 31.81 kB / 422.2 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/0.2302, allocations: 2.395 MB / 424.6 MB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002878/0.2305, allocations: 321.7 kB / 424.9 MB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.2307, allocations: 51.97 kB / 425 MB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005569/0.2312, allocations: 44 kB / 425 MB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.2313, allocations: 151.3 kB / 425.2 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.706e-05/0.2314, allocations: 63.92 kB / 425.3 MB, free: 1.363 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001092/0.2325, allocations: 1.364 MB / 426.6 MB, free: 8 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2325, allocations: 0 / 426.6 MB, free: 8 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.002641/0.2351, allocations: 0.9375 MB / 427.6 MB, free: 15.07 MB / 394.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 (141): * Single equations (assignments): 138 * 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.0003046/0.2354, allocations: 218.5 kB / 427.8 MB, free: 14.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002346/0.2378, allocations: 2.391 MB / 430.2 MB, free: 12.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.2378, allocations: 8.125 kB / 430.2 MB, free: 12.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003405/0.2381, allocations: 425.7 kB / 430.6 MB, free: 12.05 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.2394, allocations: 425 kB / 431 MB, free: 11.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007659/0.2471, allocations: 7.48 MB / 438.5 MB, free: 3.742 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.2481, allocations: 1.16 MB / 439.6 MB, free: 2.547 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001014/0.2491, allocations: 490.8 kB / 440.1 MB, free: 2.066 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006182/0.2498, allocations: 0.5684 MB / 440.7 MB, free: 1.496 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2498, allocations: 0 / 440.7 MB, free: 1.496 MB / 394.7 MB Notification: Performance of Templates: time 0.142/0.3917, allocations: 23.35 MB / 464 MB, free: 120.4 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.546644057147205]