Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.006581/0.006581, allocations: 98.53 kB / 15.73 MB, free: 6.004 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.00145/0.00145, allocations: 192.9 kB / 16.67 MB, free: 5.93 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.734/1.734, allocations: 205.1 MB / 222.6 MB, free: 4.285 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.001261/0.001261, allocations: 55.17 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1247, allocations: 46.63 MB / 373.2 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007178/0.1319, allocations: 5.328 MB / 378.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004365/0.1363, allocations: 1.473 MB / 380 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007179/0.1371, allocations: 27.81 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007316/0.1379, allocations: 225.7 kB / 380.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006118/0.1385, allocations: 194 kB / 380.4 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009263/0.1395, allocations: 391.4 kB / 380.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.1407, allocations: 1.134 MB / 382 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000677/0.1414, allocations: 484.2 kB / 382.4 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.1418, allocations: 402.3 kB / 382.8 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004452/0.1423, allocations: 425.6 kB / 383.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1424, allocations: 83.94 kB / 383.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.1426, allocations: 99.94 kB / 383.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000203/0.1428, allocations: 215.2 kB / 383.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004951/0.1433, allocations: 0.5009 MB / 384.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.1448, allocations: 1.178 MB / 385.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.1449, allocations: 0 / 385.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1449, allocations: 0 / 385.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.1449, allocations: 0 / 385.3 MB, free: 5.07 MB / 318.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.002212/0.1471, allocations: 1.339 MB / 386.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.1472, allocations: 8.031 kB / 386.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.1474, allocations: 131.2 kB / 386.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.1487, allocations: 0.6543 MB / 387.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.201e-05/0.1488, allocations: 81.94 kB / 387.5 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.1489, allocations: 99.95 kB / 387.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001838/0.1508, allocations: 1.031 MB / 388.6 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.801e-05/0.1508, allocations: 7.938 kB / 388.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.563e-05/0.1509, allocations: 40 kB / 388.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-05/0.151, allocations: 28 kB / 388.7 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.1521, allocations: 0.55 MB / 389.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005882/0.158, allocations: 5.51 MB / 394.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005889/0.1586, allocations: 233 kB / 395 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/0.1589, allocations: 153.6 kB / 395.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/0.1591, allocations: 89.09 kB / 395.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.1591, allocations: 38.56 kB / 395.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.743e-06/0.1591, allocations: 0 / 395.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003756/0.1629, allocations: 1.744 MB / 397 MB, free: 8.688 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.1629, allocations: 88.98 kB / 397.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008774/0.1638, allocations: 0.6412 MB / 397.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.1639, allocations: 29.7 kB / 397.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003857/0.1643, allocations: 0.6162 MB / 398.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.1644, allocations: 162.7 kB / 398.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.1646, allocations: 130.6 kB / 398.7 MB, free: 6.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.1648, allocations: 386.7 kB / 399.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.1651, allocations: 149.9 kB / 399.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005373/0.1656, allocations: 0.4933 MB / 399.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008643/0.1665, allocations: 0.7037 MB / 400.4 MB, free: 4.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/0.1665, allocations: 4 kB / 400.4 MB, free: 4.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001117/0.1676, allocations: 0.7116 MB / 401.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1677, allocations: 8 kB / 401.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.1677, allocations: 12 kB / 401.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.1677, allocations: 16.66 kB / 401.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006191/0.1683, allocations: 203.6 kB / 401.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.342e-05/0.1684, allocations: 23.88 kB / 401.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.1687, allocations: 31.98 kB / 401.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.733e-05/0.1688, allocations: 40 kB / 401.5 MB, free: 3.875 MB / 334.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.0002926/0.1691, allocations: 229.5 kB / 401.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1692, allocations: 83.47 kB / 401.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.1693, allocations: 70.55 kB / 401.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1693, allocations: 8 kB / 401.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.1693, allocations: 7.938 kB / 401.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.1694, allocations: 3.984 kB / 401.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.1714, allocations: 1.313 MB / 403.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.1714, allocations: 4 kB / 403.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004576/0.1718, allocations: 99.81 kB / 403.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1719, allocations: 3.984 kB / 403.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.1719, allocations: 24.09 kB / 403.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1719, allocations: 0 / 403.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.1719, allocations: 4 kB / 403.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009951/0.1729, allocations: 0.7012 MB / 404 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.1731, allocations: 148.6 kB / 404.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.1731, allocations: 12 kB / 404.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002869/0.1734, allocations: 23.98 kB / 404.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.514e-05/0.1735, allocations: 31.95 kB / 404.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.1735, allocations: 16 kB / 404.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005022/0.174, allocations: 423 kB / 404.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1741, allocations: 3.938 kB / 404.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006222/0.1747, allocations: 136 kB / 404.8 MB, free: 436 kB / 334.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.000152/0.1748, allocations: 115.2 kB / 404.9 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007881/0.1756, allocations: 442 kB / 405.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.1757, allocations: 0 / 405.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.1759, allocations: 167.6 kB / 405.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.1765, allocations: 64.19 kB / 405.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.1793, allocations: 1.671 MB / 407.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.1799, allocations: 1.004 MB / 408.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002472/0.1802, allocations: 94 kB / 408.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.1804, allocations: 63.42 kB / 408.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1804, allocations: 0 / 408.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01156/0.1919, allocations: 5.09 MB / 413.5 MB, free: 7.641 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)