Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006692/0.006692, allocations: 102.1 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 188.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 59.91 kB / 326.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1025, allocations: 46.61 MB / 373.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.214/0.3165, allocations: 10.75 MB / 383.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007468/0.324, allocations: 3.874 MB / 387.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.326, allocations: 62.69 kB / 387.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004101/0.3301, allocations: 2.236 MB / 390.1 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005986/0.3361, allocations: 1.876 MB / 392 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00213/0.3383, allocations: 0.7217 MB / 392.7 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007624/0.3459, allocations: 4.261 MB / 396.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003754/0.3497, allocations: 2.925 MB / 399.9 MB, free: 20 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003216/0.3529, allocations: 1.485 MB / 401.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003356/0.3563, allocations: 2.092 MB / 403.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006324/0.3569, allocations: 292.8 kB / 403.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.359, allocations: 0.944 MB / 404.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001733/0.3607, allocations: 1.831 MB / 406.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002048/0.3628, allocations: 2.098 MB / 408.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007469/0.3702, allocations: 6.433 MB / 415 MB, free: 5.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3703, allocations: 0 / 415 MB, free: 5.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3703, allocations: 0 / 415 MB, free: 5.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002144/0.3705, allocations: 0 / 415 MB, free: 5.57 MB / 334.1 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.008752/0.3793, allocations: 4.615 MB / 419.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.3793, allocations: 12.03 kB / 419.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007158/0.3865, allocations: 1.914 MB / 421.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004401/0.3909, allocations: 2.391 MB / 424 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.3911, allocations: 237.6 kB / 424.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005664/0.3917, allocations: 291.8 kB / 424.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.4072, allocations: 9.631 MB / 434.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/0.4074, allocations: 55.52 kB / 434.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003873/0.4078, allocations: 143.9 kB / 434.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00291/0.4107, allocations: 1.915 MB / 436.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01587/0.4266, allocations: 7.633 MB / 443.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04304/0.4697, allocations: 37.61 MB / 481.5 MB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006659/0.4764, allocations: 2.879 MB / 484.3 MB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.4777, allocations: 0.8769 MB / 485.2 MB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006441/0.4842, allocations: 3.763 MB / 489 MB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.4843, allocations: 47.16 kB / 489 MB, free: 9.109 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.817e-06/0.4843, allocations: 0 / 489 MB, free: 9.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02198/0.5063, allocations: 9.066 MB / 498.1 MB, free: 15.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.747e-05/0.5064, allocations: 145.5 kB / 498.2 MB, free: 15.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006757/0.5132, allocations: 3.944 MB / 0.4904 GB, free: 11.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.5133, allocations: 53.64 kB / 0.4905 GB, free: 11.76 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002115/0.5154, allocations: 3.078 MB / 0.4935 GB, free: 8.641 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005241/0.516, allocations: 0.6057 MB / 0.4941 GB, free: 8.027 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001499/0.5175, allocations: 1.163 MB / 0.4952 GB, free: 6.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.427e-05/0.5176, allocations: 309 kB / 0.4955 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002487/0.5201, allocations: 1.581 MB / 0.497 GB, free: 4.961 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004973/0.5251, allocations: 5.354 MB / 0.5023 GB, free: 13.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008202/0.5333, allocations: 7.553 MB / 0.5096 GB, free: 4.273 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.5334, allocations: 36 kB / 0.5097 GB, free: 4.238 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0123/0.5457, allocations: 6.663 MB / 0.5162 GB, free: 13.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.5459, allocations: 60 kB / 0.5162 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002461/0.5462, allocations: 139.9 kB / 0.5164 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.5464, allocations: 176.8 kB / 0.5165 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004557/0.5509, allocations: 1.38 MB / 0.5179 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003143/0.5513, allocations: 263 kB / 0.5181 GB, free: 11.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004849/0.5562, allocations: 283.7 kB / 0.5184 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/0.5572, allocations: 363.9 kB / 0.5188 GB, free: 10.93 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (746): * Single equations (assignments): 743 * 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.003961/0.5612, allocations: 1.99 MB / 0.5207 GB, free: 8.922 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008243/0.562, allocations: 339.6 kB / 0.521 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002461/0.5645, allocations: 1.243 MB / 0.5222 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.059e-05/0.5645, allocations: 16 kB / 0.5223 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.5645, allocations: 8 kB / 0.5223 GB, free: 7.309 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.5646, allocations: 3.984 kB / 0.5223 GB, free: 7.305 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.5749, allocations: 5.748 MB / 0.5279 GB, free: 1.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-05/0.575, allocations: 19.94 kB / 0.5279 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009979/0.576, allocations: 280.4 kB / 0.5282 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.509e-05/0.5761, allocations: 24.06 kB / 0.5282 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.5762, allocations: 56 kB / 0.5282 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-05/0.5763, allocations: 35.86 kB / 0.5283 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.901e-05/0.5763, allocations: 27.88 kB / 0.5283 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004385/0.5807, allocations: 3.223 MB / 0.5315 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.5821, allocations: 0.5121 MB / 0.532 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008402/0.583, allocations: 47.98 kB / 0.532 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/0.5847, allocations: 67.94 kB / 0.5321 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.5849, allocations: 143.4 kB / 0.5322 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.585, allocations: 71.98 kB / 0.5323 GB, free: 12.45 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005109/0.5901, allocations: 2.45 MB / 0.5347 GB, free: 10.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5901, allocations: 3.938 kB / 0.5347 GB, free: 10.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005174/0.5953, allocations: 0.8672 MB / 0.5355 GB, free: 9.152 MB / 478.1 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 (142): * Single equations (assignments): 139 * 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.0005248/0.5958, allocations: 206.7 kB / 0.5357 GB, free: 8.941 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00643/0.6023, allocations: 3.686 MB / 0.5393 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.605e-05/0.6023, allocations: 0 / 0.5393 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.6035, allocations: 0.7298 MB / 0.54 GB, free: 4.559 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004119/0.6077, allocations: 457 kB / 0.5405 GB, free: 4.113 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2184/0.8261, allocations: 8.536 MB / 0.5488 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004062/0.8302, allocations: 3.103 MB / 0.5518 GB, free: 145.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004496/0.8348, allocations: 1.767 MB / 0.5536 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006085/0.8354, allocations: 237.5 kB / 0.5538 GB, free: 145 MB / 478.1 MB Notification: Performance of SimCode: time 9.61e-07/0.8354, allocations: 0 / 0.5538 GB, free: 145 MB / 478.1 MB Notification: Performance of Templates: time 0.05203/0.8874, allocations: 23.9 MB / 0.5771 GB, free: 137.1 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)