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.001127/0.001127, allocations: 93.58 kB / 16.65 MB, free: 6.586 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.001524/0.001525, allocations: 185.3 kB / 17.56 MB, free: 6.203 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.967/1.967, allocations: 205.4 MB / 223.8 MB, free: 13.06 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.0005339/0.0005339, allocations: 8 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1227, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005617/0.1284, allocations: 4.879 MB / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003539/0.132, allocations: 1.443 MB / 334.6 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000706/0.1327, allocations: 27.81 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004839/0.1332, allocations: 166.6 kB / 334.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006501/0.1339, allocations: 146.6 kB / 335 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1351, allocations: 343.7 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.1364, allocations: 1.064 MB / 336.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007494/0.1372, allocations: 423.4 kB / 336.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004889/0.1377, allocations: 334.2 kB / 337.1 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004517/0.1381, allocations: 369.6 kB / 337.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.541e-05/0.1382, allocations: 40 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.1384, allocations: 55.98 kB / 337.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.1386, allocations: 155.2 kB / 337.7 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004648/0.1391, allocations: 482.6 kB / 338.2 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.1401, allocations: 0.996 MB / 339.2 MB, free: 8.812 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.1401, allocations: 4 kB / 339.2 MB, free: 8.809 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1401, allocations: 3.938 kB / 339.2 MB, free: 8.805 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.1402, allocations: 0 / 339.2 MB, free: 8.805 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.001906/0.1421, allocations: 1.126 MB / 340.3 MB, free: 7.625 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.1422, allocations: 12.03 kB / 340.3 MB, free: 7.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.1424, allocations: 126.4 kB / 340.5 MB, free: 7.488 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007994/0.1432, allocations: 0.6069 MB / 341.1 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.865e-05/0.1432, allocations: 81.94 kB / 341.1 MB, free: 6.758 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.1434, allocations: 99.91 kB / 341.2 MB, free: 6.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.145, allocations: 1.038 MB / 342.3 MB, free: 5.496 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.18e-05/0.145, allocations: 7.875 kB / 342.3 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.452e-05/0.1451, allocations: 44 kB / 342.3 MB, free: 5.445 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.1452, allocations: 28 kB / 342.4 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.1463, allocations: 0.5656 MB / 342.9 MB, free: 4.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004933/0.1512, allocations: 5.532 MB / 348.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/0.1518, allocations: 237 kB / 348.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/0.1521, allocations: 165.6 kB / 348.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001863/0.1523, allocations: 81.11 kB / 348.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.1523, allocations: 38.56 kB / 349 MB, free: 14.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.505e-06/0.1523, allocations: 4 kB / 349 MB, free: 14.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003913/0.1562, allocations: 1.776 MB / 350.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.1563, allocations: 85.05 kB / 350.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006903/0.157, allocations: 0.6333 MB / 351.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1571, allocations: 29.7 kB / 351.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003999/0.1575, allocations: 0.6026 MB / 352.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.1576, allocations: 146 kB / 352.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.326e-05/0.1577, allocations: 69.62 kB / 352.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1578, allocations: 382.8 kB / 352.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.1581, allocations: 161.9 kB / 352.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005376/0.1587, allocations: 0.4972 MB / 353.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008696/0.1596, allocations: 0.7142 MB / 354 MB, free: 8.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1596, allocations: 4 kB / 354 MB, free: 8.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001154/0.1607, allocations: 0.7235 MB / 354.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.1608, allocations: 12 kB / 354.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/0.1608, allocations: 19.92 kB / 354.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/0.1608, allocations: 16 kB / 354.8 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.1615, allocations: 195.7 kB / 355 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.311e-05/0.1615, allocations: 31.86 kB / 355 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.1619, allocations: 39.98 kB / 355.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.1619, allocations: 36 kB / 355.1 MB, free: 7.82 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.000382/0.1623, allocations: 233.4 kB / 355.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.1625, allocations: 78.97 kB / 355.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.1626, allocations: 74.53 kB / 355.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.1626, allocations: 4 kB / 355.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.1627, allocations: 3.938 kB / 355.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1627, allocations: 4 kB / 355.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.1649, allocations: 1.36 MB / 356.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1649, allocations: 0 / 356.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.1654, allocations: 116 kB / 357 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.1654, allocations: 4 kB / 357 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.1654, allocations: 11.98 kB / 357 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.1654, allocations: 3.938 kB / 357 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1654, allocations: 4 kB / 357 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.1666, allocations: 0.7241 MB / 357.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.1667, allocations: 136.2 kB / 357.9 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.1667, allocations: 16.03 kB / 357.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.167, allocations: 35.86 kB / 357.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.529e-05/0.1671, allocations: 23.97 kB / 357.9 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.1672, allocations: 19.98 kB / 357.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004839/0.1676, allocations: 419 kB / 358.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1677, allocations: 0 / 358.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006347/0.1683, allocations: 136 kB / 358.5 MB, free: 4.305 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.0001639/0.1685, allocations: 119.2 kB / 358.6 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008024/0.1693, allocations: 449.7 kB / 359 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1693, allocations: 0.5625 kB / 359 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.1696, allocations: 159.8 kB / 359.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007248/0.1703, allocations: 83.22 kB / 359.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.1739, allocations: 2.2 MB / 361.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000736/0.1747, allocations: 1.004 MB / 362.5 MB, free: 232 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003136/0.175, allocations: 94 kB / 362.6 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.1752, allocations: 71.41 kB / 362.7 MB, free: 64 kB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1752, allocations: 0 / 362.7 MB, free: 64 kB / 302.1 MB Notification: Performance of Templates: time 0.01049/0.1857, allocations: 4.627 MB / 367.3 MB, free: 11.44 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)