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.008741/0.008742, allocations: 102.7 kB / 15.73 MB, free: 6.445 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.00152/0.00152, allocations: 195.9 kB / 16.68 MB, free: 6.355 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.472/1.472, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.00131/0.00131, allocations: 54.8 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1014, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01065/0.1121, allocations: 10.3 MB / 383.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007839/0.12, allocations: 3.875 MB / 387.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.1217, allocations: 59.81 kB / 387.4 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004095/0.1258, allocations: 2.075 MB / 389.5 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004594/0.1304, allocations: 1.642 MB / 391.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002002/0.1324, allocations: 0.6901 MB / 391.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005795/0.1382, allocations: 3.393 MB / 395.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004099/0.1424, allocations: 2.689 MB / 397.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.145, allocations: 1.265 MB / 399.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003025/0.148, allocations: 1.772 MB / 400.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001072/0.1491, allocations: 264 kB / 401.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002418/0.1516, allocations: 1.108 MB / 402.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.1534, allocations: 1.582 MB / 403.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002282/0.1557, allocations: 1.864 MB / 405.8 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006465/0.1622, allocations: 5.94 MB / 411.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.1622, allocations: 0 / 411.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1622, allocations: 0 / 411.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.1624, 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.008217/0.1706, allocations: 4.137 MB / 415.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.1707, allocations: 15.89 kB / 415.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006658/0.1774, allocations: 1.856 MB / 417.7 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005327/0.1827, allocations: 1.952 MB / 419.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.1829, allocations: 209.2 kB / 419.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009181/0.1839, allocations: 283.8 kB / 420.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.2021, allocations: 9.97 MB / 430.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-05/0.2022, allocations: 39.59 kB / 430.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003522/0.2026, allocations: 139.8 kB / 430.3 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003101/0.2057, allocations: 1.856 MB / 432.1 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/0.223, allocations: 8.54 MB / 440.7 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2454/0.4685, allocations: 36.68 MB / 477.4 MB, free: 44.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009139/0.4777, allocations: 3.883 MB / 481.2 MB, free: 42.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002495/0.4802, allocations: 1.804 MB / 483.1 MB, free: 41.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.4916, allocations: 7.531 MB / 490.6 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.4917, allocations: 43.44 kB / 490.6 MB, free: 37.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.509e-06/0.4917, allocations: 0 / 490.6 MB, free: 37.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04628/0.538, allocations: 17.47 MB / 0.4962 GB, free: 24.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.538, allocations: 145.5 kB / 0.4963 GB, free: 24.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003653/0.5417, allocations: 3.478 MB / 0.4997 GB, free: 20.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.542, allocations: 49.7 kB / 0.4998 GB, free: 20.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.5431, allocations: 2.743 MB / 0.5024 GB, free: 17.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005321/0.5436, allocations: 0.6444 MB / 0.5031 GB, free: 17.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.5447, allocations: 1.122 MB / 0.5042 GB, free: 16.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.611e-05/0.5448, allocations: 301.1 kB / 0.5045 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/0.547, allocations: 1.953 MB / 0.5064 GB, free: 13.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003191/0.5502, allocations: 5.373 MB / 0.5116 GB, free: 6.746 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006583/0.5568, allocations: 7.935 MB / 0.5194 GB, free: 13.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.185e-05/0.5568, allocations: 36 kB / 0.5194 GB, free: 13.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.0136/0.5704, allocations: 8.174 MB / 0.5274 GB, free: 4.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.047e-05/0.5705, allocations: 56 kB / 0.5274 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/0.5707, allocations: 124 kB / 0.5276 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003983/0.5746, allocations: 1.292 MB / 0.5288 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003568/0.5782, allocations: 1.263 MB / 0.53 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009188/0.5874, allocations: 6.542 MB / 0.5364 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/0.5912, allocations: 303 kB / 0.5367 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006893/0.5919, allocations: 340 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.00299/0.5949, allocations: 1.807 MB / 0.5388 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006749/0.5956, allocations: 308 kB / 0.5391 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007491/0.6031, allocations: 3.37 MB / 0.5424 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.398e-05/0.6032, allocations: 16 kB / 0.5424 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/0.6032, allocations: 8 kB / 0.5424 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/0.6032, allocations: 8.953 kB / 0.5424 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/0.62, allocations: 7.575 MB / 0.5498 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.6201, allocations: 3.938 kB / 0.5498 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.6213, allocations: 239.7 kB / 0.5501 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003842/0.6251, allocations: 1.124 MB / 0.5512 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/0.6253, allocations: 24 kB / 0.5512 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008706/0.634, allocations: 6.165 MB / 0.5572 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.634, allocations: 3.938 kB / 0.5572 GB, free: 5.988 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00967/0.6437, allocations: 5.706 MB / 0.5628 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/0.6454, allocations: 0.5753 MB / 0.5633 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006532/0.646, allocations: 24 kB / 0.5634 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.6476, allocations: 99.81 kB / 0.5635 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.6478, allocations: 88.75 kB / 0.5635 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.648, allocations: 51.98 kB / 0.5636 GB, free: 15.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003364/0.6513, allocations: 2.15 MB / 0.5657 GB, free: 13.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6514, allocations: 0 / 0.5657 GB, free: 13.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004304/0.6557, allocations: 0.9188 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.0004653/0.6561, allocations: 169 kB / 0.5667 GB, free: 12.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007409/0.6636, allocations: 4.794 MB / 0.5714 GB, free: 7.391 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.6636, allocations: 0 / 0.5714 GB, free: 7.391 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/0.666, allocations: 1.542 MB / 0.5729 GB, free: 5.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/0.6684, allocations: 353.3 kB / 0.5733 GB, free: 5.504 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.6825, allocations: 8.025 MB / 0.5811 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00365/0.6862, allocations: 2.855 MB / 0.5839 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003993/0.6902, allocations: 1.699 MB / 0.5856 GB, free: 8.871 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000785/0.691, allocations: 219.4 kB / 0.5858 GB, free: 8.656 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.691, allocations: 0 / 0.5858 GB, free: 8.656 MB / 462.1 MB Notification: Performance of Templates: time 0.0626/0.7536, allocations: 31.07 MB / 0.6161 GB, free: 9.621 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)