Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001183/0.001183, allocations: 79.73 kB / 21.97 MB, free: 2.598 MB / 18.57 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.004377/0.004377, allocations: 166.9 kB / 25.33 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8313/0.8313, allocations: 158.6 MB / 187.2 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 251 MB, free: 7.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.734e-05/1.896e-05, allocations: 6.25 kB / 251.1 MB, free: 7.5 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008319/0.008338, allocations: 10.46 MB / 261.5 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006799/0.01514, allocations: 3.807 MB / 265.3 MB, free: 9.168 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000984/0.01612, allocations: 71.69 kB / 265.4 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002482/0.0186, allocations: 2.398 MB / 267.8 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002854/0.02146, allocations: 1.967 MB / 269.8 MB, free: 4.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.02272, allocations: 0.8108 MB / 270.6 MB, free: 3.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004082/0.0268, allocations: 4.903 MB / 275.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003775/0.03058, allocations: 3.06 MB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003125/0.0337, allocations: 2.385 MB / 280.9 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00206/0.03576, allocations: 2.361 MB / 283.3 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003498/0.03611, allocations: 292 kB / 283.6 MB, free: 6.836 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.03768, allocations: 0.8815 MB / 284.4 MB, free: 5.953 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001165/0.03884, allocations: 1.971 MB / 286.4 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009331/0.03978, allocations: 1.219 MB / 287.6 MB, free: 2.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003568/0.04334, allocations: 4.284 MB / 291.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.04335, allocations: 0 / 291.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.04335, allocations: 0 / 291.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.957e-05/0.04339, allocations: 0 / 291.9 MB, free: 14.45 MB / 282.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.004607/0.048, allocations: 5.035 MB / 297 MB, free: 9.352 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.04804, allocations: 11.98 kB / 297 MB, free: 9.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004545/0.05259, allocations: 2.463 MB / 299.4 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.05454, allocations: 2.035 MB / 301.5 MB, free: 4.781 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.05466, allocations: 229.6 kB / 301.7 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.05496, allocations: 295.8 kB / 302 MB, free: 4.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006255/0.06121, allocations: 6.043 MB / 308 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.151e-05/0.06128, allocations: 43.64 kB / 308.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.06152, allocations: 147.9 kB / 308.2 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002402/0.06393, allocations: 1.919 MB / 310.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009054/0.07298, allocations: 3.004 MB / 313.1 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1714/0.2443, allocations: 44.09 MB / 357.2 MB, free: 59.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003114/0.2475, allocations: 1.685 MB / 358.9 MB, free: 59.78 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004391/0.2479, allocations: 382.4 kB / 359.3 MB, free: 59.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002582/0.2505, allocations: 2.686 MB / 362 MB, free: 58.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.2505, allocations: 49.64 kB / 362 MB, free: 58.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 2.835e-06/0.2505, allocations: 0 / 362 MB, free: 58.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01038/0.2609, allocations: 7.741 MB / 369.8 MB, free: 56.17 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.2609, allocations: 143.5 kB / 369.9 MB, free: 56.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002503/0.2634, allocations: 3.473 MB / 373.4 MB, free: 55.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.2635, allocations: 46.52 kB / 373.4 MB, free: 55.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001142/0.2646, allocations: 3.38 MB / 376.8 MB, free: 53.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002953/0.2649, allocations: 0.6447 MB / 377.4 MB, free: 52.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008036/0.2657, allocations: 1.269 MB / 378.7 MB, free: 51.99 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.2658, allocations: 476.8 kB / 379.2 MB, free: 51.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007169/0.2665, allocations: 0.5454 MB / 379.7 MB, free: 51.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/0.2685, allocations: 6.155 MB / 385.9 MB, free: 42.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003779/0.2723, allocations: 7.41 MB / 393.3 MB, free: 33.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.389e-05/0.2723, allocations: 40 kB / 393.3 MB, free: 33.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.004324/0.2767, allocations: 4.949 MB / 398.3 MB, free: 28.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.2767, allocations: 64.06 kB / 398.3 MB, free: 28.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.243e-05/0.2768, allocations: 136 kB / 398.5 MB, free: 28.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.592e-05/0.2768, allocations: 180 kB / 398.6 MB, free: 28.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/0.2787, allocations: 1.384 MB / 400 MB, free: 26.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.173e-05/0.2788, allocations: 267 kB / 400.3 MB, free: 26.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.2805, allocations: 363.6 kB / 400.6 MB, free: 26.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000208/0.2807, allocations: 372.9 kB / 401 MB, free: 25.7 MB / 330.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.0006247/0.2813, allocations: 0.649 MB / 401.7 MB, free: 25.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002456/0.2816, allocations: 365.8 kB / 402 MB, free: 24.69 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006568/0.2822, allocations: 0.7662 MB / 402.8 MB, free: 23.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.2822, allocations: 20 kB / 402.8 MB, free: 23.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.2822, allocations: 0 / 402.8 MB, free: 23.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.2823, allocations: 13.09 kB / 402.8 MB, free: 23.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003861/0.2861, allocations: 4.898 MB / 407.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.2861, allocations: 20 kB / 407.7 MB, free: 18.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.2866, allocations: 279.2 kB / 408 MB, free: 18.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/0.2866, allocations: 24 kB / 408 MB, free: 18.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.2867, allocations: 55.83 kB / 408.1 MB, free: 18.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.48e-05/0.2867, allocations: 35.86 kB / 408.1 MB, free: 18.24 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.2867, allocations: 31.81 kB / 408.1 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.2881, allocations: 2.475 MB / 410.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004003/0.2885, allocations: 445.6 kB / 411.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.2887, allocations: 51.98 kB / 411.1 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006196/0.2893, allocations: 107.9 kB / 411.2 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/0.2894, allocations: 155.5 kB / 411.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/0.2895, allocations: 71.92 kB / 411.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001245/0.2907, allocations: 1.499 MB / 412.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2907, allocations: 0 / 412.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002231/0.293, allocations: 0.9705 MB / 413.9 MB, free: 12.12 MB / 330.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.0003016/0.2933, allocations: 223.9 kB / 414.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.2953, allocations: 2.527 MB / 416.6 MB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/0.2953, allocations: 3.938 kB / 416.7 MB, free: 9.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.2957, allocations: 454.3 kB / 417.1 MB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.297, allocations: 420.4 kB / 417.5 MB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005661/0.3027, allocations: 7.528 MB / 425 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/0.3035, allocations: 1.168 MB / 426.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001971/0.3055, allocations: 1.533 MB / 427.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.3057, allocations: 224.5 kB / 428 MB, free: 13.68 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3057, allocations: 0 / 428 MB, free: 13.68 MB / 346.7 MB Notification: Performance of Templates: time 0.03612/0.3419, allocations: 22.18 MB / 450.1 MB, free: 7.613 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.55467888712883]