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.01156/0.01157, allocations: 102.1 kB / 15.73 MB, free: 6.492 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.002262/0.002262, allocations: 196.4 kB / 16.68 MB, free: 6.375 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.788/1.788, 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.001241/0.001241, allocations: 59.11 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1266, allocations: 46.62 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007788/0.1344, allocations: 5.336 MB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004515/0.139, allocations: 1.473 MB / 380 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.1407, allocations: 23.88 kB / 380 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008384/0.1416, allocations: 217.8 kB / 380.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.1429, allocations: 198 kB / 380.4 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.1442, allocations: 395.4 kB / 380.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001989/0.1462, allocations: 1.126 MB / 381.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008551/0.1471, allocations: 488.2 kB / 382.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008408/0.1479, allocations: 398.2 kB / 382.8 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000584/0.1485, allocations: 433.6 kB / 383.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.1487, allocations: 84 kB / 383.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.1489, allocations: 88 kB / 383.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002469/0.1492, allocations: 215.1 kB / 383.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000595/0.1498, allocations: 0.5049 MB / 384.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.1513, allocations: 1.163 MB / 385.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1513, allocations: 0 / 385.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1514, allocations: 0 / 385.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.1514, allocations: 0 / 385.3 MB, free: 5.105 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.00217/0.1536, allocations: 1.309 MB / 386.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.1536, allocations: 12.03 kB / 386.6 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.1538, allocations: 122.5 kB / 386.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.155, allocations: 0.6575 MB / 387.4 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.762e-05/0.1551, allocations: 77.94 kB / 387.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.1552, allocations: 99.91 kB / 387.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.1572, allocations: 1.031 MB / 388.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.16e-05/0.1572, allocations: 7.938 kB / 388.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.132e-05/0.1573, allocations: 40 kB / 388.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.76e-05/0.1574, allocations: 24 kB / 388.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.1585, allocations: 0.5539 MB / 389.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005547/0.1641, allocations: 5.485 MB / 394.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006668/0.1648, allocations: 233 kB / 394.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.1652, allocations: 177.4 kB / 395.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.1653, allocations: 81.11 kB / 395.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.1654, allocations: 46.53 kB / 395.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.055e-06/0.1654, allocations: 4 kB / 395.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004304/0.1697, allocations: 1.71 MB / 396.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.209e-05/0.1698, allocations: 85.05 kB / 397 MB, free: 8.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007805/0.1706, allocations: 0.6371 MB / 397.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.1706, allocations: 33.7 kB / 397.7 MB, free: 7.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003938/0.171, allocations: 0.5987 MB / 398.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.1712, allocations: 146 kB / 398.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.1713, allocations: 134.5 kB / 398.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.1715, allocations: 390.8 kB / 398.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.1719, allocations: 149.9 kB / 399.1 MB, free: 6.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000554/0.1724, allocations: 497.1 kB / 399.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009649/0.1734, allocations: 0.6998 MB / 400.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1734, allocations: 4 kB / 400.3 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001183/0.1746, allocations: 0.711 MB / 401 MB, free: 4.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.1747, allocations: 12 kB / 401 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.1747, allocations: 11.98 kB / 401 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.212e-05/0.1747, allocations: 20.75 kB / 401 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000636/0.1754, allocations: 199.7 kB / 401.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.607e-05/0.1754, allocations: 27.86 kB / 401.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.1758, allocations: 35.98 kB / 401.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.1758, allocations: 32 kB / 401.3 MB, free: 4.008 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.0004082/0.1762, allocations: 229.5 kB / 401.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.1764, allocations: 78.97 kB / 401.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.1766, allocations: 82.53 kB / 401.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.1766, allocations: 4 kB / 401.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.1766, allocations: 3.938 kB / 401.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1766, allocations: 0 / 401.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.1788, allocations: 1.309 MB / 403 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.1788, allocations: 4 kB / 403 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004602/0.1793, allocations: 107.8 kB / 403.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.812e-05/0.1793, allocations: 4.156 kB / 403.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.1794, allocations: 19.92 kB / 403.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.914e-06/0.1794, allocations: 7.938 kB / 403.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1794, allocations: 3.938 kB / 403.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.1804, allocations: 0.693 MB / 403.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.1806, allocations: 144.1 kB / 404 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.759e-05/0.1807, allocations: 12.03 kB / 404 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.181, allocations: 23.98 kB / 404 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.197e-05/0.1811, allocations: 27.97 kB / 404.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.1811, allocations: 15.98 kB / 404.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005343/0.1816, allocations: 419 kB / 404.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1816, allocations: 0 / 404.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007322/0.1824, allocations: 140 kB / 404.6 MB, free: 0.5742 MB / 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.0001794/0.1826, allocations: 115.1 kB / 404.7 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008264/0.1834, allocations: 449.8 kB / 405.2 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1834, allocations: 0 / 405.2 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002856/0.1837, allocations: 147.8 kB / 405.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005507/0.1843, allocations: 72.36 kB / 405.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.1873, allocations: 1.654 MB / 407 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00057/0.1879, allocations: 1 MB / 408 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002701/0.1882, allocations: 90.02 kB / 408.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.1883, allocations: 71.41 kB / 408.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1883, allocations: 0 / 408.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01206/0.2004, allocations: 5.094 MB / 413.3 MB, free: 7.809 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)