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.0007724/0.0007724, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001086/0.001859, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006948/0.0006948, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008875/0.001582, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9642/0.9642, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07891/1.043, allocations: 53.65 MB / 243.4 MB, free: 15.51 MB / 250.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: 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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.539e-05/1.678e-05, allocations: 2.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007432/0.007449, allocations: 10.22 MB / 254.9 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005882/0.01333, allocations: 3.96 MB / 258.9 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009755/0.01431, allocations: 75.62 kB / 259 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002201/0.01651, allocations: 2.273 MB / 261.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002746/0.01925, allocations: 1.893 MB / 263.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009493/0.0202, allocations: 0.7135 MB / 263.8 MB, free: 11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004367/0.02457, allocations: 4.846 MB / 268.7 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002789/0.02736, allocations: 2.632 MB / 271.3 MB, free: 3.441 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002972/0.03033, allocations: 2.447 MB / 273.8 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1214/0.1518, allocations: 2.208 MB / 276 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009609/0.1527, allocations: 292.4 kB / 276.3 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002031/0.1548, allocations: 0.8941 MB / 277.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001738/0.1565, allocations: 1.732 MB / 278.9 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/0.1584, allocations: 0.9676 MB / 279.9 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00557/0.164, allocations: 3.916 MB / 283.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.33e-05/0.164, allocations: 3.438 kB / 283.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.164, allocations: 1.375 kB / 283.8 MB, free: 5.785 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001827/0.1642, allocations: 0 / 283.8 MB, free: 5.785 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.007918/0.1721, allocations: 5.049 MB / 288.8 MB, free: 3.926 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.1721, allocations: 15.56 kB / 288.8 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003019/0.1751, allocations: 1.161 MB / 290 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.1774, allocations: 1.698 MB / 291.7 MB, free: 3.277 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.1775, allocations: 222.5 kB / 291.9 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004207/0.1779, allocations: 296.2 kB / 292.2 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006034/0.184, allocations: 4.868 MB / 297.1 MB, free: 1.152 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.829e-05/0.1841, allocations: 50.33 kB / 297.1 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000259/0.1843, allocations: 146.2 kB / 297.3 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001352/0.1857, allocations: 1.616 MB / 298.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005075/0.1907, allocations: 2.44 MB / 301.3 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02652/0.2173, allocations: 30.98 MB / 332.3 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002869/0.2201, allocations: 1.525 MB / 333.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.2204, allocations: 267.3 kB / 334.1 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003513/0.224, allocations: 2.424 MB / 336.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.224, allocations: 47.06 kB / 336.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 3.166e-06/0.224, allocations: 4 kB / 336.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.008874/0.2329, allocations: 4.46 MB / 341 MB, free: 8.211 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.2329, allocations: 145.4 kB / 341.2 MB, free: 8.043 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002786/0.2357, allocations: 3.074 MB / 344.2 MB, free: 5.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-05/0.2358, allocations: 45.7 kB / 344.3 MB, free: 5.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.237, allocations: 3.034 MB / 347.3 MB, free: 2.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003603/0.2374, allocations: 0.6225 MB / 347.9 MB, free: 1.992 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008256/0.2382, allocations: 1.106 MB / 349 MB, free: 1.004 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.489e-05/0.2383, allocations: 305.1 kB / 349.3 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009716/0.2392, allocations: 0.6641 MB / 350 MB, free: 32 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002558/0.2418, allocations: 4.331 MB / 354.3 MB, free: 10.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/0.2462, allocations: 6.008 MB / 360.3 MB, free: 2.422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-05/0.2462, allocations: 40 kB / 360.4 MB, free: 2.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.004942/0.2512, allocations: 3.933 MB / 364.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.982e-05/0.2512, allocations: 60 kB / 364.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/0.2514, allocations: 140 kB / 364.5 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001101/0.2515, allocations: 180.8 kB / 364.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00283/0.2543, allocations: 1.529 MB / 366.2 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001792/0.2545, allocations: 263 kB / 366.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002682/0.2572, allocations: 267.7 kB / 366.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003693/0.2575, allocations: 316 kB / 367 MB, free: 11.7 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.001618/0.2592, allocations: 0.6227 MB / 367.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004122/0.2596, allocations: 203.9 kB / 367.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.2599, allocations: 305.8 kB / 368.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.2599, allocations: 19.92 kB / 368.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.26, allocations: 4 kB / 368.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/0.26, allocations: 3.984 kB / 368.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005046/0.265, allocations: 4.012 MB / 372.2 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.518e-05/0.265, allocations: 24 kB / 372.2 MB, free: 6.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.2657, allocations: 306.6 kB / 372.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006146/0.2663, allocations: 316.2 kB / 372.8 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.986e-05/0.2663, allocations: 27.94 kB / 372.9 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-05/0.2664, allocations: 59.03 kB / 372.9 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.94e-05/0.2664, allocations: 35.86 kB / 373 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/0.2664, allocations: 27.88 kB / 373 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.2679, allocations: 1.907 MB / 374.9 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/0.2681, allocations: 55.91 kB / 374.9 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006307/0.2688, allocations: 42.66 kB / 375 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2689, allocations: 155.3 kB / 375.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.275e-05/0.269, allocations: 59.98 kB / 375.2 MB, free: 3.609 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001536/0.2705, allocations: 1.271 MB / 376.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2705, allocations: 0 / 376.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003955/0.2744, allocations: 0.9413 MB / 377.4 MB, free: 1.41 MB / 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.0005015/0.275, allocations: 203.7 kB / 377.6 MB, free: 1.203 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00354/0.2785, allocations: 2.358 MB / 380 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002769/0.2788, allocations: 105.2 kB / 380.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006258/0.2794, allocations: 487.9 kB / 380.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003171/0.2826, allocations: 2.733 MB / 383.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.2952, allocations: 7.638 MB / 390.9 MB, free: 3.203 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.2964, allocations: 1.153 MB / 392.1 MB, free: 2.023 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001287/0.2977, allocations: 478.8 kB / 392.5 MB, free: 1.555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006213/0.2984, allocations: 0.5128 MB / 393.1 MB, free: 1.039 MB / 362.7 MB Notification: Performance of SimCode: time 1.763e-06/0.2984, allocations: 0 / 393.1 MB, free: 1.039 MB / 362.7 MB Notification: Performance of Templates: time 0.04182/0.3402, allocations: 22.51 MB / 415.6 MB, free: 10.68 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.1327229980379343]