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.008457/0.008457, allocations: 100 kB / 15.73 MB, free: 6.023 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.00162/0.00162, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.475/1.475, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001139/0.001139, allocations: 55.3 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01129/0.1143, allocations: 10.74 MB / 383.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007339/0.1217, allocations: 3.881 MB / 387.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.1229, allocations: 63.81 kB / 387.9 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.1267, allocations: 2.231 MB / 390.1 MB, free: 328 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004324/0.131, allocations: 1.84 MB / 391.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.1325, allocations: 0.7097 MB / 392.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005516/0.138, allocations: 4.265 MB / 396.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004067/0.1421, allocations: 2.913 MB / 399.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003224/0.1453, allocations: 1.487 MB / 401.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004374/0.1497, allocations: 2.099 MB / 403.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001445/0.1512, allocations: 292 kB / 403.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003048/0.1542, allocations: 0.9246 MB / 404.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002908/0.1572, allocations: 1.839 MB / 406.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004659/0.1619, allocations: 2.105 MB / 408.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.1727, allocations: 6.426 MB / 415 MB, free: 7.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.056e-05/0.1728, allocations: 3.938 kB / 415 MB, free: 7.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1728, allocations: 0 / 415 MB, free: 7.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00028/0.1731, 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.01436/0.1875, allocations: 4.61 MB / 419.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.1876, allocations: 8.031 kB / 419.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/0.1986, allocations: 1.922 MB / 421.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007451/0.2061, allocations: 2.394 MB / 423.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/0.2065, allocations: 225.6 kB / 424.1 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/0.2077, allocations: 295.8 kB / 424.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01889/0.2266, allocations: 9.639 MB / 434.1 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002203/0.2269, allocations: 47.53 kB / 434.1 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001074/0.228, allocations: 143.9 kB / 434.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003064/0.2311, allocations: 1.923 MB / 436.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/0.2471, allocations: 7.633 MB / 443.8 MB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2737/0.5208, allocations: 37.6 MB / 481.4 MB, free: 39.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006386/0.5272, allocations: 2.888 MB / 484.3 MB, free: 38.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.5288, allocations: 0.8714 MB / 485.2 MB, free: 38.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006667/0.5354, allocations: 3.754 MB / 488.9 MB, free: 35.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.5355, allocations: 52.97 kB / 489 MB, free: 35.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.13e-06/0.5355, allocations: 0 / 489 MB, free: 35.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01977/0.5553, allocations: 9.07 MB / 498.1 MB, free: 31.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.5554, allocations: 145 kB / 498.2 MB, free: 30.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004795/0.5602, allocations: 3.951 MB / 0.4904 GB, free: 28.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001656/0.5604, allocations: 40.86 kB / 0.4904 GB, free: 28.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.5618, allocations: 3.082 MB / 0.4934 GB, free: 26.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/0.5623, allocations: 0.6091 MB / 0.494 GB, free: 25.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.5635, allocations: 1.166 MB / 0.4952 GB, free: 24.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.225e-05/0.5635, allocations: 301.1 kB / 0.4954 GB, free: 24.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/0.5655, allocations: 1.583 MB / 0.497 GB, free: 23.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003466/0.569, allocations: 5.358 MB / 0.5022 GB, free: 15.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006283/0.5753, allocations: 7.545 MB / 0.5096 GB, free: 6.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.551e-05/0.5754, allocations: 40.66 kB / 0.5096 GB, free: 6.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01029/0.5857, allocations: 6.648 MB / 0.5161 GB, free: 15.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.5858, allocations: 71.88 kB / 0.5162 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/0.586, allocations: 133.1 kB / 0.5163 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/0.5862, allocations: 180 kB / 0.5165 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/0.5903, allocations: 1.39 MB / 0.5179 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001924/0.5905, allocations: 263 kB / 0.5181 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003642/0.5942, allocations: 279.6 kB / 0.5184 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005067/0.5947, allocations: 371.5 kB / 0.5187 GB, free: 13.21 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.003092/0.5978, allocations: 1.989 MB / 0.5207 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007363/0.5985, allocations: 339.5 kB / 0.521 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002138/0.6007, allocations: 1.246 MB / 0.5222 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.982e-05/0.6007, allocations: 16 kB / 0.5222 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.6007, allocations: 0 / 0.5222 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.6008, allocations: 7.922 kB / 0.5222 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.6111, allocations: 5.744 MB / 0.5278 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.54e-05/0.6112, allocations: 20 kB / 0.5279 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.6123, allocations: 275.5 kB / 0.5281 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.734e-05/0.6123, allocations: 31.47 kB / 0.5282 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.548e-05/0.6124, allocations: 48 kB / 0.5282 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.839e-05/0.6124, allocations: 38.81 kB / 0.5282 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.133e-05/0.6125, allocations: 39.81 kB / 0.5283 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004247/0.6167, allocations: 3.223 MB / 0.5314 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/0.6185, allocations: 0.5083 MB / 0.5319 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004474/0.6189, allocations: 51.81 kB / 0.532 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.6201, allocations: 59.95 kB / 0.532 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.6203, allocations: 147.4 kB / 0.5322 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.715e-05/0.6204, allocations: 68 kB / 0.5322 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003957/0.6243, allocations: 2.454 MB / 0.5346 GB, free: 12.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6244, allocations: 0 / 0.5346 GB, free: 12.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005099/0.6295, allocations: 0.8697 MB / 0.5355 GB, free: 11.48 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.000487/0.63, allocations: 204.5 kB / 0.5357 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006071/0.6361, allocations: 3.684 MB / 0.5393 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/0.6361, allocations: 7.938 kB / 0.5393 GB, free: 7.633 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.6371, allocations: 0.7275 MB / 0.54 GB, free: 6.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.6401, allocations: 466.6 kB / 0.5404 GB, free: 6.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.6544, allocations: 8.526 MB / 0.5488 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003212/0.6577, allocations: 3.115 MB / 0.5518 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003793/0.6615, allocations: 1.768 MB / 0.5535 GB, free: 8.762 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004819/0.662, allocations: 227.4 kB / 0.5537 GB, free: 8.539 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.662, allocations: 4 kB / 0.5537 GB, free: 8.535 MB / 430.1 MB Notification: Performance of Templates: time 0.05026/0.7122, allocations: 23.47 MB / 0.5767 GB, free: 1.16 MB / 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)