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.001373/0.001373, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001306/0.001306, allocations: 161.2 kB / 25.6 MB, free: 8.895 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 1.026/1.026, allocations: 158.6 MB / 187.5 MB, free: 2.816 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 2.205e-06/2.205e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.923e-05/3.143e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009522/0.009554, allocations: 10.14 MB / 261.6 MB, free: 13.05 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008027/0.01758, allocations: 3.776 MB / 265.4 MB, free: 9.266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.01965, allocations: 71.62 kB / 265.5 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003163/0.02282, allocations: 2.367 MB / 267.8 MB, free: 6.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004646/0.02746, allocations: 1.971 MB / 269.8 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.02926, allocations: 0.7952 MB / 270.6 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00621/0.03547, allocations: 4.904 MB / 275.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00469/0.04016, allocations: 3.052 MB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004764/0.04492, allocations: 2.389 MB / 280.9 MB, free: 9.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00299/0.04791, allocations: 2.354 MB / 283.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008298/0.04874, allocations: 296 kB / 283.6 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.05017, allocations: 0.8854 MB / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.05155, allocations: 1.971 MB / 286.4 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.05343, allocations: 1.219 MB / 287.7 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004708/0.05814, allocations: 4.284 MB / 291.9 MB, free: 14.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.294e-05/0.05815, allocations: 0 / 291.9 MB, free: 14.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.05815, allocations: 0 / 291.9 MB, free: 14.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002093/0.05836, allocations: 0 / 291.9 MB, free: 14.59 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.006035/0.0644, allocations: 4.828 MB / 296.8 MB, free: 9.699 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.06445, allocations: 11.98 kB / 296.8 MB, free: 9.688 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003621/0.06807, allocations: 1.516 MB / 298.3 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002713/0.07078, allocations: 1.863 MB / 300.2 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.07091, allocations: 229.6 kB / 300.4 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003591/0.07127, allocations: 295.8 kB / 300.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007647/0.07892, allocations: 5.488 MB / 306.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.636e-05/0.07902, allocations: 51.55 kB / 306.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002677/0.07928, allocations: 147.9 kB / 306.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001802/0.08109, allocations: 1.72 MB / 308.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005028/0.08611, allocations: 2.341 MB / 310.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1788/0.2649, allocations: 43.71 MB / 354.1 MB, free: 88.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003056/0.2679, allocations: 1.609 MB / 355.7 MB, free: 88.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.2683, allocations: 335.9 kB / 356.1 MB, free: 88.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003504/0.2718, allocations: 2.578 MB / 358.6 MB, free: 87.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.2719, allocations: 52.27 kB / 358.7 MB, free: 87.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 4.739e-06/0.2719, allocations: 7.547 kB / 358.7 MB, free: 87.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01008/0.282, allocations: 4.892 MB / 363.6 MB, free: 87.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.282, allocations: 143.2 kB / 363.7 MB, free: 86.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002849/0.2849, allocations: 3.447 MB / 367.2 MB, free: 86.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.063e-05/0.2849, allocations: 46.95 kB / 367.2 MB, free: 86.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.2863, allocations: 3.411 MB / 370.6 MB, free: 84.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.2866, allocations: 0.6437 MB / 371.3 MB, free: 84.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009353/0.2876, allocations: 1.282 MB / 372.6 MB, free: 83.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.2876, allocations: 480.8 kB / 373 MB, free: 83.37 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007213/0.2883, allocations: 0.4945 MB / 373.5 MB, free: 83.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002056/0.2904, allocations: 6.125 MB / 379.7 MB, free: 74.76 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004153/0.2945, allocations: 7.29 MB / 386.9 MB, free: 65.81 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.981e-05/0.2946, allocations: 43.94 kB / 387 MB, free: 65.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.004866/0.2995, allocations: 4.629 MB / 391.6 MB, free: 61.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.2995, allocations: 68.16 kB / 391.7 MB, free: 61.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.674e-05/0.2996, allocations: 136 kB / 391.8 MB, free: 60.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.564e-05/0.2997, allocations: 180 kB / 392 MB, free: 60.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/0.3017, allocations: 1.357 MB / 393.3 MB, free: 59.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001542/0.3019, allocations: 267.6 kB / 393.6 MB, free: 59.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002661/0.3045, allocations: 263.7 kB / 393.9 MB, free: 58.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/0.3048, allocations: 316 kB / 394.2 MB, free: 58.57 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.000956/0.3057, allocations: 0.6626 MB / 394.8 MB, free: 57.9 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/0.3061, allocations: 361.8 kB / 395.2 MB, free: 57.55 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006223/0.3067, allocations: 0.7082 MB / 395.9 MB, free: 56.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.3067, allocations: 16 kB / 395.9 MB, free: 56.81 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3067, allocations: 1.75 kB / 395.9 MB, free: 56.81 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3067, allocations: 11.97 kB / 395.9 MB, free: 56.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00503/0.3118, allocations: 4.851 MB / 400.8 MB, free: 51.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.3118, allocations: 16 kB / 400.8 MB, free: 51.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.3123, allocations: 272.3 kB / 401.1 MB, free: 51.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.447e-05/0.3123, allocations: 24 kB / 401.1 MB, free: 51.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.3123, allocations: 52 kB / 401.1 MB, free: 51.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.446e-05/0.3123, allocations: 37.11 kB / 401.2 MB, free: 51.19 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/0.3124, allocations: 27.88 kB / 401.2 MB, free: 51.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.3139, allocations: 2.391 MB / 403.6 MB, free: 48.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005167/0.3144, allocations: 409.6 kB / 404 MB, free: 48.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.3146, allocations: 47.98 kB / 404 MB, free: 47.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005832/0.3152, allocations: 40 kB / 404.1 MB, free: 47.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.405e-05/0.3153, allocations: 155.3 kB / 404.2 MB, free: 47.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.348e-05/0.3153, allocations: 59.98 kB / 404.3 MB, free: 47.72 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001042/0.3164, allocations: 1.389 MB / 405.7 MB, free: 46.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3164, allocations: 2.844 kB / 405.7 MB, free: 46.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003772/0.3201, allocations: 0.9686 MB / 406.6 MB, free: 45.38 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.0003507/0.3205, allocations: 234.5 kB / 406.9 MB, free: 45.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.3234, allocations: 2.389 MB / 409.3 MB, free: 42.76 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.3235, allocations: 1.812 kB / 409.3 MB, free: 42.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000398/0.3239, allocations: 426.4 kB / 409.7 MB, free: 42.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.3257, allocations: 432.1 kB / 410.1 MB, free: 41.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00923/0.3349, allocations: 7.513 MB / 417.6 MB, free: 34.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008792/0.3358, allocations: 1.164 MB / 418.8 MB, free: 32.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001134/0.3369, allocations: 489.8 kB / 419.3 MB, free: 32.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005482/0.3375, allocations: 0.5684 MB / 419.8 MB, free: 31.79 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/0.3375, allocations: 0 / 419.8 MB, free: 31.79 MB / 330.7 MB Notification: Performance of Templates: time 0.03906/0.3765, allocations: 23.97 MB / 443.8 MB, free: 7.875 MB / 330.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.9077356262132525]