Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001567/0.001567, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.601/1.601, allocations: 205.1 MB / 223.7 MB, free: 12.33 MB / 190.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.001251/0.001251, allocations: 55.92 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1443, allocations: 46.63 MB / 326.6 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007924/0.1523, allocations: 5.339 MB / 332 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.1564, allocations: 1.478 MB / 333.4 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000835/0.1573, allocations: 23.88 kB / 333.5 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005804/0.1579, allocations: 221.8 kB / 333.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006416/0.1586, allocations: 182 kB / 333.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.1596, allocations: 403.4 kB / 334.3 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1608, allocations: 1.111 MB / 335.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006929/0.1615, allocations: 484.2 kB / 335.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004602/0.1619, allocations: 398.3 kB / 336.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004179/0.1624, allocations: 429.5 kB / 336.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.1625, allocations: 84 kB / 336.7 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.1627, allocations: 99.98 kB / 336.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.1629, allocations: 219 kB / 337 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004147/0.1633, allocations: 497.1 kB / 337.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.1643, allocations: 1.121 MB / 338.6 MB, free: 8.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1644, allocations: 4 kB / 338.6 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1644, allocations: 0 / 338.6 MB, free: 8.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.1644, allocations: 0 / 338.6 MB, free: 8.379 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001929/0.1663, allocations: 1.313 MB / 340 MB, free: 7.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.1664, allocations: 12.02 kB / 340 MB, free: 7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.1666, allocations: 122.5 kB / 340.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009412/0.1675, allocations: 0.6107 MB / 340.7 MB, free: 6.227 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.586e-05/0.1676, allocations: 77.94 kB / 340.8 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.1678, allocations: 96 kB / 340.9 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.1695, allocations: 1.038 MB / 341.9 MB, free: 4.895 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.1695, allocations: 3.938 kB / 341.9 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/0.1696, allocations: 44 kB / 342 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.1697, allocations: 28 kB / 342 MB, free: 4.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1708, allocations: 0.5617 MB / 342.5 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.1763, allocations: 5.52 MB / 348.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005853/0.1769, allocations: 232.9 kB / 348.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.1773, allocations: 165.5 kB / 348.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002717/0.1776, allocations: 81.11 kB / 348.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.1776, allocations: 42.56 kB / 348.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.705e-06/0.1776, allocations: 0 / 348.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004188/0.1818, allocations: 1.704 MB / 350.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.1819, allocations: 89.03 kB / 350.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007336/0.1826, allocations: 0.6294 MB / 351 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.1827, allocations: 37.7 kB / 351 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004386/0.1831, allocations: 0.5987 MB / 351.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.1832, allocations: 149.9 kB / 351.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.1834, allocations: 138.5 kB / 351.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.1836, allocations: 382.8 kB / 352.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.1839, allocations: 149.9 kB / 352.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005241/0.1844, allocations: 0.4893 MB / 352.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008905/0.1853, allocations: 0.703 MB / 353.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1853, allocations: 0 / 353.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001177/0.1865, allocations: 0.7109 MB / 354.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.1866, allocations: 12 kB / 354.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.1866, allocations: 8.844 kB / 354.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.1866, allocations: 20 kB / 354.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000669/0.1873, allocations: 195.7 kB / 354.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.595e-05/0.1874, allocations: 35.78 kB / 354.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.1877, allocations: 35.98 kB / 354.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.339e-05/0.1878, allocations: 39.98 kB / 354.7 MB, free: 7.289 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * 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.0003676/0.1882, allocations: 221.5 kB / 354.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.1883, allocations: 83.06 kB / 355 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.1884, allocations: 78.53 kB / 355.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1885, allocations: 4 kB / 355.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.1885, allocations: 3.938 kB / 355.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1885, allocations: 7.875 kB / 355.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.1907, allocations: 1.323 MB / 356.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1907, allocations: 0 / 356.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.1912, allocations: 99.86 kB / 356.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.1912, allocations: 4 kB / 356.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.1912, allocations: 16 kB / 356.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.666e-06/0.1912, allocations: 11.92 kB / 356.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.1912, allocations: 4 kB / 356.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1923, allocations: 0.7081 MB / 357.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.1924, allocations: 136.2 kB / 357.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.1925, allocations: 8.047 kB / 357.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.1927, allocations: 31.91 kB / 357.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/0.1928, allocations: 27.91 kB / 357.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1929, allocations: 15.98 kB / 357.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000479/0.1933, allocations: 423 kB / 357.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1933, allocations: 0 / 357.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006694/0.194, allocations: 140 kB / 358 MB, free: 3.836 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * Array equations: 0 * 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.0001771/0.1942, allocations: 107.2 kB / 358.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008707/0.1951, allocations: 449.7 kB / 358.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1951, allocations: 0.625 kB / 358.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.1954, allocations: 155.9 kB / 358.7 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.196, allocations: 82.52 kB / 358.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.1991, allocations: 1.676 MB / 360.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008119/0.1999, allocations: 1.008 MB / 361.5 MB, free: 304 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.2002, allocations: 86.03 kB / 361.5 MB, free: 216 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.2004, allocations: 71.41 kB / 361.6 MB, free: 144 kB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2004, allocations: 0 / 361.6 MB, free: 144 kB / 302.1 MB Notification: Performance of Templates: time 0.01277/0.2132, allocations: 4.923 MB / 366.5 MB, free: 11.22 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)