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.001183/0.001183, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001716/0.002899, allocations: 449.7 kB / 10.37 MB, free: 324 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.001101/0.001101, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001447/0.002548, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.9644/0.9644, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09467/1.059, allocations: 53.86 MB / 243.7 MB, free: 14.9 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 1.452e-06/1.452e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.888e-05, allocations: 2.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01025/0.01027, allocations: 10.2 MB / 255.2 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006286/0.01656, allocations: 3.961 MB / 259.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008989/0.01746, allocations: 79.56 kB / 259.3 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.01993, allocations: 2.269 MB / 261.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003512/0.02344, allocations: 1.886 MB / 263.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.0246, allocations: 0.7212 MB / 264.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004288/0.02889, allocations: 4.877 MB / 269 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.03177, allocations: 2.639 MB / 271.7 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003315/0.03508, allocations: 2.435 MB / 274.1 MB, free: 412 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1258/0.1608, allocations: 2.214 MB / 276.3 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001208/0.162, allocations: 291.5 kB / 276.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.164, allocations: 0.8897 MB / 277.5 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001809/0.1658, allocations: 1.728 MB / 279.2 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00207/0.1679, allocations: 0.9662 MB / 280.2 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005388/0.1733, allocations: 3.922 MB / 284.1 MB, free: 5.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.545e-05/0.1733, allocations: 0.7188 kB / 284.1 MB, free: 5.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1733, allocations: 0 / 284.1 MB, free: 5.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002357/0.1736, allocations: 0.75 kB / 284.1 MB, free: 5.57 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.007907/0.1815, allocations: 5.063 MB / 289.2 MB, free: 3.711 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1815, allocations: 8.938 kB / 289.2 MB, free: 3.711 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00289/0.1844, allocations: 1.163 MB / 290.3 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/0.1866, allocations: 1.693 MB / 292 MB, free: 3.062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.1867, allocations: 223.1 kB / 292.2 MB, free: 3.055 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003064/0.187, allocations: 305.9 kB / 292.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005856/0.1929, allocations: 4.864 MB / 297.4 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.193, allocations: 42.23 kB / 297.4 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003152/0.1933, allocations: 145.4 kB / 297.6 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001815/0.1951, allocations: 1.728 MB / 299.3 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005497/0.2006, allocations: 2.391 MB / 301.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04825/0.2489, allocations: 31 MB / 332.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009738/0.2586, allocations: 1.516 MB / 334.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000425/0.259, allocations: 271.5 kB / 334.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007565/0.2666, allocations: 2.431 MB / 336.9 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.2666, allocations: 47.56 kB / 337 MB, free: 11.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 4.048e-06/0.2666, allocations: 4 kB / 337 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.01665/0.2833, allocations: 4.39 MB / 341.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.2834, allocations: 145.5 kB / 341.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003043/0.2864, allocations: 3.069 MB / 344.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.95e-05/0.2865, allocations: 45.7 kB / 344.6 MB, free: 4.535 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.2882, allocations: 3.034 MB / 347.6 MB, free: 1.652 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003883/0.2886, allocations: 0.616 MB / 348.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008779/0.2895, allocations: 1.115 MB / 349.4 MB, free: 72 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.296e-05/0.2896, allocations: 301.1 kB / 349.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.2906, allocations: 0.667 MB / 350.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/0.2937, allocations: 4.328 MB / 354.7 MB, free: 9.094 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004957/0.2987, allocations: 5.57 MB / 360.2 MB, free: 1.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.459e-05/0.2988, allocations: 36 kB / 360.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.00497/0.3037, allocations: 3.942 MB / 364.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.3038, allocations: 64 kB / 364.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/0.3039, allocations: 136 kB / 364.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/0.304, allocations: 176 kB / 364.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.3065, allocations: 1.538 MB / 366.1 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002851/0.3068, allocations: 263 kB / 366.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/0.3091, allocations: 263.7 kB / 366.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002843/0.3094, allocations: 320 kB / 366.9 MB, free: 11.2 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.001827/0.3112, allocations: 0.6176 MB / 367.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004358/0.3116, allocations: 203.8 kB / 367.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000378/0.312, allocations: 305.8 kB / 368.1 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/0.312, allocations: 16 kB / 368.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.312, allocations: 4 kB / 368.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.312, allocations: 7.969 kB / 368.1 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005009/0.3171, allocations: 4.013 MB / 372.1 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/0.3171, allocations: 20 kB / 372.1 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006021/0.3177, allocations: 299.5 kB / 372.4 MB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005585/0.3182, allocations: 321.7 kB / 372.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.821e-05/0.3182, allocations: 27.94 kB / 372.8 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.738e-05/0.3183, allocations: 44 kB / 372.8 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-05/0.3183, allocations: 36.2 kB / 372.8 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/0.3183, allocations: 35.88 kB / 372.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.3198, allocations: 1.903 MB / 374.8 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/0.3201, allocations: 59.92 kB / 374.8 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006088/0.3207, allocations: 43.98 kB / 374.9 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3208, allocations: 155.3 kB / 375 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.313e-05/0.3209, allocations: 55.98 kB / 375.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001351/0.3222, allocations: 1.274 MB / 376.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3222, allocations: 0 / 376.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003293/0.3255, allocations: 0.9413 MB / 377.3 MB, free: 0.8438 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.0003308/0.3259, allocations: 203.8 kB / 377.5 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.3282, allocations: 2.238 MB / 379.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001748/0.3284, allocations: 112.1 kB / 379.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.3287, allocations: 383.8 kB / 380.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/0.3304, allocations: 0.6295 MB / 380.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.3418, allocations: 7.638 MB / 388.5 MB, free: 5.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.343, allocations: 1.157 MB / 389.6 MB, free: 4.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001402/0.3444, allocations: 497.2 kB / 390.1 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000674/0.3451, allocations: 0.5285 MB / 390.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.3451, allocations: 0 / 390.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of Templates: time 0.04085/0.3859, allocations: 23.97 MB / 414.6 MB, free: 11.46 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.559644738212228]