Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008238/0.008237, 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.001961/0.001961, 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.501/1.501, 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.001181/0.001181, allocations: 50.77 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01378/0.1201, allocations: 10.74 MB / 383.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009568/0.1297, allocations: 3.873 MB / 387.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002263/0.1321, allocations: 63.81 kB / 387.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004935/0.1371, allocations: 2.231 MB / 390.1 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00638/0.1435, allocations: 1.891 MB / 392 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.1454, allocations: 0.7175 MB / 392.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006994/0.1524, allocations: 4.254 MB / 396.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0047/0.1571, allocations: 2.921 MB / 399.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003203/0.1603, allocations: 1.487 MB / 401.4 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003392/0.1638, allocations: 2.091 MB / 403.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001853/0.1656, allocations: 292 kB / 403.7 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003099/0.1688, allocations: 0.9362 MB / 404.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002806/0.1716, allocations: 1.835 MB / 406.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004242/0.1758, allocations: 2.101 MB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00921/0.1851, allocations: 6.43 MB / 415 MB, free: 7.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.1851, allocations: 0 / 415 MB, free: 7.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1851, allocations: 0 / 415 MB, free: 7.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001517/0.1853, allocations: 0 / 415 MB, free: 7.25 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.009713/0.195, allocations: 4.61 MB / 419.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.21e-05/0.1951, allocations: 12.03 kB / 419.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006726/0.2018, allocations: 1.918 MB / 421.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005115/0.2069, allocations: 2.386 MB / 424 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.2072, allocations: 237.6 kB / 424.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005648/0.2077, allocations: 295.7 kB / 424.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02228/0.23, allocations: 9.631 MB / 434.1 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001641/0.2302, allocations: 55.52 kB / 434.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006489/0.2309, allocations: 139.9 kB / 434.3 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004037/0.2349, allocations: 1.923 MB / 436.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02053/0.2555, allocations: 7.637 MB / 443.9 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2867/0.5422, allocations: 37.6 MB / 481.5 MB, free: 39.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005981/0.5482, allocations: 2.889 MB / 484.4 MB, free: 38.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.5495, allocations: 0.8659 MB / 485.2 MB, free: 38.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006801/0.5564, allocations: 3.768 MB / 489 MB, free: 35.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.5564, allocations: 43.16 kB / 489 MB, free: 35.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.897e-06/0.5564, allocations: 7.328 kB / 489 MB, free: 35.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01966/0.5761, allocations: 9.064 MB / 498.1 MB, free: 31.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.5762, allocations: 149.3 kB / 498.2 MB, free: 31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005495/0.5817, allocations: 3.941 MB / 0.4904 GB, free: 28.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.5818, allocations: 49.11 kB / 0.4905 GB, free: 28.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.5832, allocations: 3.083 MB / 0.4935 GB, free: 26.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005022/0.5837, allocations: 0.6015 MB / 0.4941 GB, free: 25.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001208/0.5849, allocations: 1.174 MB / 0.4952 GB, free: 25.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.976e-05/0.585, allocations: 304.7 kB / 0.4955 GB, free: 24.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/0.5869, allocations: 1.577 MB / 0.497 GB, free: 23.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00305/0.5899, allocations: 5.361 MB / 0.5023 GB, free: 16.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005612/0.5956, allocations: 7.548 MB / 0.5096 GB, free: 6.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.673e-05/0.5956, allocations: 40 kB / 0.5097 GB, free: 6.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008256/0.6039, allocations: 6.659 MB / 0.5162 GB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.262e-05/0.604, allocations: 60 kB / 0.5162 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000116/0.6041, allocations: 136.8 kB / 0.5164 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000169/0.6043, allocations: 176 kB / 0.5165 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003598/0.6079, allocations: 1.392 MB / 0.5179 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000199/0.6081, allocations: 261 kB / 0.5182 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/0.6113, allocations: 287.6 kB / 0.5184 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003828/0.6117, allocations: 368 kB / 0.5188 GB, free: 13.23 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.002876/0.6146, allocations: 1.981 MB / 0.5207 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006515/0.6153, allocations: 343.5 kB / 0.521 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/0.6173, allocations: 1.242 MB / 0.5223 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.453e-05/0.6173, allocations: 16 kB / 0.5223 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.6173, allocations: 8 kB / 0.5223 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.6173, allocations: 7.969 kB / 0.5223 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009244/0.6266, allocations: 5.73 MB / 0.5279 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-05/0.6266, allocations: 20 kB / 0.5279 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009361/0.6276, allocations: 280.3 kB / 0.5282 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.383e-05/0.6276, allocations: 24 kB / 0.5282 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-05/0.6277, allocations: 63.66 kB / 0.5282 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.297e-05/0.6278, allocations: 35.86 kB / 0.5283 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.852e-05/0.6278, allocations: 31.81 kB / 0.5283 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003978/0.6318, allocations: 3.216 MB / 0.5315 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.6328, allocations: 0.5083 MB / 0.5319 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.6331, allocations: 55.59 kB / 0.532 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.6342, allocations: 59.97 kB / 0.5321 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.6343, allocations: 147.8 kB / 0.5322 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.051e-05/0.6344, allocations: 71.94 kB / 0.5323 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003547/0.638, allocations: 2.45 MB / 0.5347 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.638, allocations: 0 / 0.5347 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004866/0.6429, allocations: 0.8733 MB / 0.5355 GB, free: 11.51 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.0003781/0.6433, allocations: 210.4 kB / 0.5357 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005598/0.6489, allocations: 3.689 MB / 0.5393 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/0.6489, allocations: 0 / 0.5393 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009996/0.6499, allocations: 0.7337 MB / 0.54 GB, free: 6.926 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.6525, allocations: 448.4 kB / 0.5405 GB, free: 6.504 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.6663, allocations: 8.535 MB / 0.5488 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004031/0.6703, allocations: 3.111 MB / 0.5518 GB, free: 10.56 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004062/0.6744, allocations: 1.761 MB / 0.5536 GB, free: 8.793 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005114/0.675, allocations: 235.4 kB / 0.5538 GB, free: 8.562 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.675, allocations: 0 / 0.5538 GB, free: 8.562 MB / 430.1 MB Notification: Performance of Templates: time 0.05153/0.7265, allocations: 23.89 MB / 0.5771 GB, free: 0.7305 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)