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.006221/0.006221, allocations: 97.88 kB / 15.73 MB, free: 6.004 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.001222/0.001222, allocations: 192.4 kB / 16.67 MB, free: 5.934 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.422/1.422, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.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.001948/0.001948, allocations: 53.92 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1115, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01259/0.1242, allocations: 10.74 MB / 383.9 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008633/0.1328, allocations: 3.877 MB / 387.8 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002337/0.1352, allocations: 63.81 kB / 387.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004747/0.14, allocations: 2.223 MB / 390.1 MB, free: 348 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00505/0.1451, allocations: 1.848 MB / 391.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.1469, allocations: 0.7214 MB / 392.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005835/0.1527, allocations: 4.25 MB / 396.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003724/0.1565, allocations: 2.913 MB / 399.8 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002321/0.1588, allocations: 1.499 MB / 401.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002879/0.1617, allocations: 2.083 MB / 403.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008827/0.1626, allocations: 292 kB / 403.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.1648, allocations: 0.9401 MB / 404.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001975/0.1668, allocations: 1.812 MB / 406.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002674/0.1695, allocations: 2.105 MB / 408.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008426/0.1779, allocations: 6.457 MB / 415 MB, free: 7.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/0.178, allocations: 0 / 415 MB, free: 7.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.178, allocations: 0 / 415 MB, free: 7.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003073/0.1783, allocations: 0 / 415 MB, free: 7.297 MB / 350.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.01002/0.1884, allocations: 4.736 MB / 419.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1884, allocations: 8.031 kB / 419.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007398/0.1958, allocations: 1.952 MB / 421.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004663/0.2005, allocations: 2.407 MB / 424.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.2007, allocations: 221.6 kB / 424.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006402/0.2014, allocations: 299.8 kB / 424.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01576/0.2171, allocations: 9.635 MB / 434.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.2173, allocations: 47.58 kB / 434.3 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003701/0.2176, allocations: 155.8 kB / 434.4 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/0.2203, allocations: 1.915 MB / 436.4 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/0.2355, allocations: 7.629 MB / 444 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2773/0.5129, allocations: 37.67 MB / 481.7 MB, free: 39.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007143/0.5201, allocations: 2.882 MB / 484.5 MB, free: 38.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.5217, allocations: 0.8742 MB / 485.4 MB, free: 38.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00645/0.5282, allocations: 3.784 MB / 489.2 MB, free: 35.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.5282, allocations: 50.53 kB / 489.2 MB, free: 35.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.631e-06/0.5283, allocations: 0 / 489.2 MB, free: 35.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01961/0.5479, allocations: 9.284 MB / 498.5 MB, free: 31.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.548, allocations: 141.3 kB / 498.7 MB, free: 30.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005128/0.5531, allocations: 3.957 MB / 0.4908 GB, free: 28.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002512/0.5534, allocations: 45.61 kB / 0.4909 GB, free: 28.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002626/0.556, allocations: 3.216 MB / 0.494 GB, free: 26.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007937/0.5569, allocations: 0.6295 MB / 0.4946 GB, free: 25.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00138/0.5582, allocations: 1.173 MB / 0.4958 GB, free: 25.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.847e-05/0.5583, allocations: 309.1 kB / 0.4961 GB, free: 24.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001976/0.5603, allocations: 1.575 MB / 0.4976 GB, free: 23.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003425/0.5637, allocations: 5.362 MB / 0.5029 GB, free: 15.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005887/0.5696, allocations: 7.548 MB / 0.5102 GB, free: 6.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.616e-05/0.5697, allocations: 40 kB / 0.5103 GB, free: 6.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009009/0.5788, allocations: 6.678 MB / 0.5168 GB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.179e-05/0.5789, allocations: 60 kB / 0.5168 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/0.579, allocations: 136 kB / 0.517 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001677/0.5792, allocations: 180.1 kB / 0.5171 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004129/0.5833, allocations: 1.384 MB / 0.5185 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002164/0.5836, allocations: 263 kB / 0.5188 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004441/0.588, allocations: 287.3 kB / 0.519 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006314/0.5887, allocations: 371.9 kB / 0.5194 GB, free: 13.18 MB / 398.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.004147/0.5928, allocations: 1.978 MB / 0.5213 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009689/0.5938, allocations: 360.2 kB / 0.5217 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.5961, allocations: 1.25 MB / 0.5229 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001873/0.5963, allocations: 20 kB / 0.5229 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.5964, allocations: 0 / 0.5229 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.5964, allocations: 7.984 kB / 0.5229 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.6076, allocations: 5.743 MB / 0.5285 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.532e-05/0.6076, allocations: 20 kB / 0.5285 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009954/0.6086, allocations: 279.6 kB / 0.5288 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.783e-05/0.6086, allocations: 24 kB / 0.5288 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.649e-05/0.6087, allocations: 51.98 kB / 0.5289 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-05/0.6088, allocations: 46.3 kB / 0.5289 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.885e-05/0.6088, allocations: 27.88 kB / 0.5289 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004851/0.6137, allocations: 3.241 MB / 0.5321 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.6149, allocations: 0.5259 MB / 0.5326 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003225/0.6152, allocations: 47.98 kB / 0.5327 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.6163, allocations: 71.89 kB / 0.5327 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.6166, allocations: 143.4 kB / 0.5329 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.6167, allocations: 71.36 kB / 0.5329 GB, free: 14.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003864/0.6206, allocations: 2.446 MB / 0.5353 GB, free: 12.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6206, allocations: 4 kB / 0.5353 GB, free: 12.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004479/0.6251, allocations: 0.8671 MB / 0.5362 GB, free: 11.4 MB / 414.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.0004209/0.6255, allocations: 202.3 kB / 0.5364 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006005/0.6315, allocations: 3.689 MB / 0.54 GB, free: 7.547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/0.6316, allocations: 4 kB / 0.54 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.6326, allocations: 0.7328 MB / 0.5407 GB, free: 6.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/0.6352, allocations: 452 kB / 0.5411 GB, free: 6.383 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/0.6483, allocations: 8.67 MB / 0.5496 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003261/0.6516, allocations: 3.114 MB / 0.5526 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003743/0.6553, allocations: 1.77 MB / 0.5544 GB, free: 8.512 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000469/0.6558, allocations: 231.4 kB / 0.5546 GB, free: 8.285 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6558, allocations: 0 / 0.5546 GB, free: 8.285 MB / 430.1 MB Notification: Performance of Templates: time 0.05128/0.7071, allocations: 23.9 MB / 0.5779 GB, free: 456 kB / 446.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)