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.001014/0.001014, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001868/0.002882, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001077/0.001077, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001369/0.002446, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.96/0.96, allocations: 177.5 MB / 190 MB, free: 4.801 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08335/1.043, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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 2.665e-06/2.665e-06, allocations: 4 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.26e-05, allocations: 2.312 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01876/0.01879, allocations: 10.21 MB / 255.4 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.03017, allocations: 3.957 MB / 259.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.03147, allocations: 71.62 kB / 259.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006742/0.03821, allocations: 2.277 MB / 261.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007505/0.04572, allocations: 1.901 MB / 263.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008855/0.0466, allocations: 0.7134 MB / 264.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003187/0.04979, allocations: 4.843 MB / 269.2 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002142/0.05193, allocations: 2.635 MB / 271.8 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.05381, allocations: 2.455 MB / 274.3 MB, free: 344 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1158/0.1696, allocations: 2.208 MB / 276.5 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009809/0.1706, allocations: 292.6 kB / 276.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001726/0.1723, allocations: 0.8869 MB / 277.7 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00137/0.1737, allocations: 1.73 MB / 279.4 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.1752, allocations: 0.9698 MB / 280.4 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004355/0.1796, allocations: 3.922 MB / 284.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.1796, allocations: 0 / 284.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1796, allocations: 0 / 284.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001455/0.1797, allocations: 3.938 kB / 284.3 MB, free: 5.531 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.004957/0.1847, allocations: 5.048 MB / 289.3 MB, free: 3.672 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1847, allocations: 10.31 kB / 289.3 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002804/0.1875, allocations: 1.17 MB / 290.5 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.1892, allocations: 1.693 MB / 292.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.857e-05/0.1893, allocations: 222.8 kB / 292.4 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002918/0.1896, allocations: 303.9 kB / 292.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003891/0.1935, allocations: 4.86 MB / 297.6 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.39e-05/0.1935, allocations: 45.41 kB / 297.6 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002339/0.1938, allocations: 146.3 kB / 297.8 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001203/0.195, allocations: 1.621 MB / 299.4 MB, free: 0.875 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003127/0.1981, allocations: 2.402 MB / 301.8 MB, free: 14.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01765/0.2157, allocations: 30.98 MB / 332.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.2184, allocations: 1.526 MB / 334.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.2187, allocations: 270.3 kB / 334.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002521/0.2212, allocations: 2.423 MB / 337 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.2212, allocations: 46.59 kB / 337 MB, free: 11.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 2.555e-06/0.2212, allocations: 0 / 337 MB, free: 11.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.008511/0.2297, allocations: 4.459 MB / 341.5 MB, free: 7.234 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.2298, allocations: 143.3 kB / 341.6 MB, free: 7.066 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00209/0.2319, allocations: 3.072 MB / 344.7 MB, free: 4.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.405e-05/0.2319, allocations: 49.7 kB / 344.7 MB, free: 4.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.2331, allocations: 3.034 MB / 347.8 MB, free: 1.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002949/0.2334, allocations: 0.6213 MB / 348.4 MB, free: 1.016 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008138/0.2342, allocations: 1.106 MB / 349.5 MB, free: 28 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.833e-05/0.2343, allocations: 301.1 kB / 349.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.2353, allocations: 0.668 MB / 350.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002343/0.2376, allocations: 4.323 MB / 354.8 MB, free: 9.055 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003778/0.2414, allocations: 6.002 MB / 360.8 MB, free: 1.453 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.53e-05/0.2414, allocations: 40 kB / 360.8 MB, free: 1.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003716/0.2451, allocations: 3.947 MB / 364.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.2452, allocations: 63.83 kB / 364.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/0.2453, allocations: 140 kB / 365 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.2455, allocations: 180 kB / 365.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/0.2487, allocations: 1.529 MB / 366.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001696/0.2489, allocations: 263 kB / 366.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.2514, allocations: 271.1 kB / 367.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003482/0.2517, allocations: 316 kB / 367.5 MB, free: 10.72 MB / 346.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.001128/0.2528, allocations: 0.6145 MB / 368.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/0.2532, allocations: 203.8 kB / 368.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003857/0.2536, allocations: 305.8 kB / 368.6 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/0.2536, allocations: 15.94 kB / 368.6 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.2536, allocations: 4 kB / 368.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.2536, allocations: 3.984 kB / 368.6 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/0.2583, allocations: 4.02 MB / 372.7 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.78e-05/0.2583, allocations: 24 kB / 372.7 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007651/0.2591, allocations: 304.6 kB / 373 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003729/0.2594, allocations: 317.7 kB / 373.3 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.824e-05/0.2595, allocations: 27.94 kB / 373.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.259e-05/0.2595, allocations: 51.98 kB / 373.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.542e-05/0.2596, allocations: 36.23 kB / 373.4 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.98e-05/0.2596, allocations: 32.02 kB / 373.4 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.2612, allocations: 1.911 MB / 375.3 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.2615, allocations: 51.92 kB / 375.4 MB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008348/0.2623, allocations: 43.94 kB / 375.4 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.2625, allocations: 155.3 kB / 375.6 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.2626, allocations: 59.97 kB / 375.7 MB, free: 2.574 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004396/0.267, allocations: 1.274 MB / 376.9 MB, free: 1.305 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.267, allocations: 0 / 376.9 MB, free: 1.305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006499/0.2735, allocations: 0.9413 MB / 377.9 MB, free: 372 kB / 346.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.0003427/0.2738, allocations: 203.7 kB / 378.1 MB, free: 160 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005527/0.2793, allocations: 2.354 MB / 380.4 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002074/0.2795, allocations: 112.1 kB / 380.5 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006103/0.2801, allocations: 474.3 kB / 381 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00587/0.286, allocations: 2.736 MB / 383.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/0.3058, allocations: 7.638 MB / 391.4 MB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002342/0.3081, allocations: 1.149 MB / 392.5 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001288/0.3094, allocations: 488.9 kB / 393 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007498/0.3102, allocations: 0.505 MB / 393.5 MB, free: 8 kB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3102, allocations: 4 kB / 393.5 MB, free: 4 kB / 362.7 MB Notification: Performance of Templates: time 0.03411/0.3443, allocations: 22.5 MB / 416 MB, free: 9.652 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0925349667668343]