Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007647/0.007647, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001266/0.001266, allocations: 193.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.466/1.466, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001183/0.001183, allocations: 54.36 kB / 326.6 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.09001, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01179/0.1019, allocations: 10.31 MB / 383.5 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008463/0.1104, allocations: 3.875 MB / 387.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.1118, allocations: 55.88 kB / 387.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003816/0.1157, allocations: 2.079 MB / 389.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00394/0.1196, allocations: 1.642 MB / 391.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.1212, allocations: 0.6862 MB / 391.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004227/0.1255, allocations: 3.393 MB / 395.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003357/0.1288, allocations: 2.693 MB / 397.9 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.1308, allocations: 1.265 MB / 399.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002416/0.1332, allocations: 1.768 MB / 400.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007366/0.1339, allocations: 264 kB / 401.2 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002142/0.1361, allocations: 1.104 MB / 402.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001761/0.1379, allocations: 1.574 MB / 403.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00257/0.1405, allocations: 1.868 MB / 405.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00636/0.1468, allocations: 5.94 MB / 411.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1468, allocations: 0 / 411.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1469, allocations: 0 / 411.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002105/0.1471, allocations: 4 kB / 411.7 MB, free: 10.59 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.009329/0.1564, allocations: 4.133 MB / 415.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.1565, allocations: 19.89 kB / 415.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006935/0.1634, allocations: 1.856 MB / 417.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004072/0.1675, allocations: 1.956 MB / 419.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.1677, allocations: 205.2 kB / 419.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008806/0.1686, allocations: 271.8 kB / 420.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.022/0.1906, allocations: 9.981 MB / 430.1 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/0.1909, allocations: 43.53 kB / 430.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001233/0.1921, allocations: 131.9 kB / 430.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003562/0.1957, allocations: 1.848 MB / 432.1 MB, free: 5.359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01872/0.2145, allocations: 8.54 MB / 440.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2659/0.4804, allocations: 36.69 MB / 477.4 MB, free: 44.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009941/0.4904, allocations: 3.874 MB / 481.2 MB, free: 42.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002423/0.4928, allocations: 1.81 MB / 483 MB, free: 41.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009306/0.5021, allocations: 7.527 MB / 490.6 MB, free: 37.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.5022, allocations: 51.34 kB / 490.6 MB, free: 37.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.037e-06/0.5022, allocations: 4 kB / 490.6 MB, free: 37.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04649/0.5487, allocations: 17.46 MB / 0.4962 GB, free: 24.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.5488, allocations: 141.5 kB / 0.4963 GB, free: 24.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00388/0.5527, allocations: 3.492 MB / 0.4997 GB, free: 20.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.5529, allocations: 49.7 kB / 0.4998 GB, free: 20.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.554, allocations: 2.737 MB / 0.5024 GB, free: 17.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004569/0.5545, allocations: 0.647 MB / 0.5031 GB, free: 17.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/0.5556, allocations: 1.115 MB / 0.5042 GB, free: 16.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.107e-05/0.5557, allocations: 306.7 kB / 0.5045 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002228/0.5579, allocations: 1.951 MB / 0.5064 GB, free: 13.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003623/0.5616, allocations: 5.366 MB / 0.5116 GB, free: 6.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007623/0.5692, allocations: 7.939 MB / 0.5194 GB, free: 13.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001068/0.5693, allocations: 36 kB / 0.5194 GB, free: 13.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01816/0.5875, allocations: 8.174 MB / 0.5274 GB, free: 4.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.586e-05/0.5876, allocations: 56 kB / 0.5274 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001241/0.5878, allocations: 120 kB / 0.5275 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004321/0.5921, allocations: 1.293 MB / 0.5288 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004015/0.5961, allocations: 1.263 MB / 0.53 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008954/0.6051, allocations: 6.539 MB / 0.5364 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004073/0.6092, allocations: 303.4 kB / 0.5367 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006622/0.6099, allocations: 344 kB / 0.537 GB, free: 10.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002765/0.6126, allocations: 1.81 MB / 0.5388 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005449/0.6132, allocations: 304 kB / 0.5391 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006978/0.6202, allocations: 3.376 MB / 0.5424 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.38e-05/0.6202, allocations: 16 kB / 0.5424 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.6202, allocations: 4 kB / 0.5424 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.6203, allocations: 11.97 kB / 0.5424 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/0.6345, allocations: 7.576 MB / 0.5498 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.6345, allocations: 0 / 0.5498 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.6357, allocations: 239.7 kB / 0.55 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003785/0.6395, allocations: 1.124 MB / 0.5511 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.6397, allocations: 31.98 kB / 0.5512 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008434/0.6481, allocations: 6.159 MB / 0.5572 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.6481, allocations: 7.922 kB / 0.5572 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009632/0.6578, allocations: 5.703 MB / 0.5628 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/0.6593, allocations: 0.5751 MB / 0.5633 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.6596, allocations: 28 kB / 0.5634 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.6608, allocations: 87.88 kB / 0.5634 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.6611, allocations: 96.42 kB / 0.5635 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.6612, allocations: 47.94 kB / 0.5636 GB, free: 15.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002975/0.6642, allocations: 2.154 MB / 0.5657 GB, free: 13.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6642, allocations: 0 / 0.5657 GB, free: 13.26 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003882/0.6681, allocations: 0.9167 MB / 0.5666 GB, free: 12.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003891/0.6685, allocations: 173.3 kB / 0.5667 GB, free: 12.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007316/0.6758, allocations: 4.786 MB / 0.5714 GB, free: 7.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.6759, allocations: 384 / 0.5714 GB, free: 7.398 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.6782, allocations: 1.538 MB / 0.5729 GB, free: 5.848 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.6803, allocations: 356 kB / 0.5733 GB, free: 5.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.6939, allocations: 8.03 MB / 0.5811 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00291/0.6968, allocations: 2.862 MB / 0.5839 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003734/0.7006, allocations: 1.696 MB / 0.5856 GB, free: 8.867 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000618/0.7012, allocations: 215.4 kB / 0.5858 GB, free: 8.656 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.7012, allocations: 0 / 0.5858 GB, free: 8.656 MB / 462.1 MB Notification: Performance of Templates: time 0.05918/0.7604, allocations: 31.16 MB / 0.6162 GB, free: 9.535 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)