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.005609/0.005609, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001097/0.001097, allocations: 186.5 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.477/1.477, allocations: 205.1 MB / 222.6 MB, free: 4.398 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.001162/0.001162, allocations: 50.73 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01149/0.1163, allocations: 10.74 MB / 383.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00855/0.1249, allocations: 3.869 MB / 387.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.1267, allocations: 63.81 kB / 387.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004227/0.131, allocations: 2.231 MB / 390.1 MB, free: 336 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005286/0.1363, allocations: 1.852 MB / 391.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.1379, allocations: 0.7136 MB / 392.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005781/0.1437, allocations: 4.258 MB / 396.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00346/0.1472, allocations: 2.913 MB / 399.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.1498, allocations: 1.495 MB / 401.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002968/0.1528, allocations: 2.083 MB / 403.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000696/0.1535, allocations: 296 kB / 403.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001938/0.1555, allocations: 0.9362 MB / 404.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00193/0.1574, allocations: 1.816 MB / 406.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002601/0.16, allocations: 2.105 MB / 408.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007621/0.1677, allocations: 6.418 MB / 415 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.1677, allocations: 4 kB / 415 MB, free: 7.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1678, allocations: 0 / 415 MB, free: 7.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002529/0.168, allocations: 0 / 415 MB, free: 7.32 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.01205/0.1801, allocations: 4.61 MB / 419.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1802, allocations: 8.031 kB / 419.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007565/0.1877, allocations: 1.926 MB / 421.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005/0.1928, allocations: 2.39 MB / 423.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.193, allocations: 225.6 kB / 424.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009137/0.1939, allocations: 295.8 kB / 424.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/0.2115, allocations: 9.635 MB / 434 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.2116, allocations: 51.53 kB / 434.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004272/0.2121, allocations: 147.8 kB / 434.2 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002925/0.215, allocations: 1.923 MB / 436.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.2307, allocations: 7.629 MB / 443.8 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2728/0.5035, allocations: 37.6 MB / 481.4 MB, free: 39.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007129/0.5107, allocations: 2.888 MB / 484.3 MB, free: 38.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00156/0.5123, allocations: 0.8713 MB / 485.2 MB, free: 38.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006573/0.5189, allocations: 3.762 MB / 488.9 MB, free: 35.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.5189, allocations: 49.59 kB / 489 MB, free: 35.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.737e-06/0.5189, allocations: 0 / 489 MB, free: 35.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01946/0.5384, allocations: 9.066 MB / 498 MB, free: 31.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.5385, allocations: 146.6 kB / 498.2 MB, free: 30.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004623/0.5431, allocations: 3.948 MB / 0.4904 GB, free: 28.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001683/0.5433, allocations: 45.45 kB / 0.4904 GB, free: 28.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/0.5448, allocations: 3.085 MB / 0.4934 GB, free: 26.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/0.5452, allocations: 0.6034 MB / 0.494 GB, free: 25.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.5464, allocations: 1.164 MB / 0.4951 GB, free: 25.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.74e-05/0.5465, allocations: 309 kB / 0.4954 GB, free: 24.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.5485, allocations: 1.578 MB / 0.497 GB, free: 23.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003318/0.5518, allocations: 5.361 MB / 0.5022 GB, free: 16.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005977/0.5578, allocations: 7.549 MB / 0.5096 GB, free: 6.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.428e-05/0.5579, allocations: 36 kB / 0.5096 GB, free: 6.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01001/0.5679, allocations: 6.656 MB / 0.5161 GB, free: 15.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.612e-05/0.568, allocations: 67.94 kB / 0.5162 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/0.5682, allocations: 134.5 kB / 0.5163 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.5683, allocations: 176 kB / 0.5165 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003902/0.5722, allocations: 1.389 MB / 0.5178 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001946/0.5725, allocations: 263 kB / 0.5181 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00387/0.5763, allocations: 287.1 kB / 0.5184 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004744/0.5768, allocations: 371.9 kB / 0.5187 GB, free: 13.25 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.003045/0.5799, allocations: 1.978 MB / 0.5206 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006632/0.5806, allocations: 343.5 kB / 0.521 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/0.5827, allocations: 1.246 MB / 0.5222 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.902e-05/0.5827, allocations: 20 kB / 0.5222 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5827, allocations: 0 / 0.5222 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.5828, allocations: 11.97 kB / 0.5222 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009452/0.5922, allocations: 5.738 MB / 0.5278 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.754e-05/0.5923, allocations: 16 kB / 0.5278 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009478/0.5932, allocations: 275.5 kB / 0.5281 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.592e-05/0.5933, allocations: 24.69 kB / 0.5281 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.658e-05/0.5934, allocations: 55.98 kB / 0.5282 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.551e-05/0.5934, allocations: 39.86 kB / 0.5282 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.919e-05/0.5934, allocations: 31.81 kB / 0.5282 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003946/0.5974, allocations: 3.227 MB / 0.5314 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/0.5987, allocations: 0.5044 MB / 0.5319 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003558/0.5991, allocations: 47.98 kB / 0.5319 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.6002, allocations: 63.95 kB / 0.532 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.6004, allocations: 147.4 kB / 0.5321 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.902e-05/0.6005, allocations: 71.67 kB / 0.5322 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003574/0.6041, allocations: 2.454 MB / 0.5346 GB, free: 12.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6041, allocations: 0 / 0.5346 GB, free: 12.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00487/0.6089, allocations: 0.8701 MB / 0.5355 GB, free: 11.52 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.0004169/0.6094, allocations: 206.5 kB / 0.5356 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006016/0.6154, allocations: 3.692 MB / 0.5393 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/0.6154, allocations: 4 kB / 0.5393 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.6165, allocations: 0.7338 MB / 0.54 GB, free: 6.941 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/0.6195, allocations: 442.6 kB / 0.5404 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.6328, allocations: 8.54 MB / 0.5487 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003145/0.636, allocations: 3.103 MB / 0.5518 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003816/0.6398, allocations: 1.765 MB / 0.5535 GB, free: 8.812 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005826/0.6404, allocations: 235.4 kB / 0.5537 GB, free: 8.582 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6404, allocations: 0 / 0.5537 GB, free: 8.582 MB / 430.1 MB Notification: Performance of Templates: time 0.04935/0.6898, allocations: 23.9 MB / 0.5771 GB, free: 0.7461 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)