Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.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.007362/0.007362, allocations: 100.3 kB / 15.73 MB, free: 6.449 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.001461/0.001462, allocations: 198.2 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.921/1.921, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.00292/0.002921, allocations: 55.66 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1619, allocations: 46.62 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.009724/0.1718, allocations: 5.324 MB / 378.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004915/0.1768, allocations: 1.473 MB / 380 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.1782, allocations: 23.88 kB / 380 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007966/0.1791, allocations: 217.8 kB / 380.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001205/0.1803, allocations: 194 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.1816, allocations: 395.4 kB / 380.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001864/0.1835, allocations: 1.138 MB / 381.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008976/0.1844, allocations: 496.1 kB / 382.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008378/0.1853, allocations: 398.3 kB / 382.8 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005665/0.1859, allocations: 425.6 kB / 383.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.186, allocations: 84 kB / 383.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.1863, allocations: 99.94 kB / 383.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.1866, allocations: 215.1 kB / 383.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006517/0.1872, allocations: 0.501 MB / 384.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.189, allocations: 1.163 MB / 385.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.1891, allocations: 11.92 kB / 385.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.368e-06/0.1891, allocations: 0 / 385.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.765e-05/0.1891, allocations: 0 / 385.3 MB, free: 5.098 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.002557/0.1917, allocations: 1.301 MB / 386.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.571e-05/0.1917, allocations: 8.031 kB / 386.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.192, allocations: 126.5 kB / 386.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.1933, allocations: 0.6536 MB / 387.4 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.287e-05/0.1934, allocations: 77.94 kB / 387.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.1935, allocations: 99.91 kB / 387.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/0.1954, allocations: 1.031 MB / 388.6 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.626e-05/0.1955, allocations: 3.938 kB / 388.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.497e-05/0.1956, allocations: 44 kB / 388.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.966e-05/0.1956, allocations: 28 kB / 388.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.1968, allocations: 0.55 MB / 389.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005829/0.2026, allocations: 5.485 MB / 394.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006205/0.2033, allocations: 240.9 kB / 394.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003492/0.2037, allocations: 165.5 kB / 395.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001426/0.2038, allocations: 89.09 kB / 395.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/0.2039, allocations: 34.56 kB / 395.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 3.556e-06/0.2039, allocations: 8 kB / 395.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004125/0.208, allocations: 1.704 MB / 396.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.2081, allocations: 85.05 kB / 397 MB, free: 8.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007913/0.2089, allocations: 0.641 MB / 397.7 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.209, allocations: 33.7 kB / 397.7 MB, free: 8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004292/0.2094, allocations: 0.6026 MB / 398.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.2095, allocations: 150 kB / 398.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.2097, allocations: 130.5 kB / 398.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.2099, allocations: 382.8 kB / 398.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.2102, allocations: 153.9 kB / 399.1 MB, free: 6.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005742/0.2108, allocations: 0.4933 MB / 399.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000982/0.2118, allocations: 0.6997 MB / 400.3 MB, free: 5.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.2118, allocations: 4 kB / 400.3 MB, free: 5.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001196/0.213, allocations: 0.711 MB / 401 MB, free: 4.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.2131, allocations: 8 kB / 401 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.2131, allocations: 12 kB / 401 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.394e-05/0.2131, allocations: 16.75 kB / 401 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.2138, allocations: 199.7 kB / 401.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.737e-05/0.2138, allocations: 27.86 kB / 401.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.2142, allocations: 31.98 kB / 401.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.728e-05/0.2142, allocations: 40 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.0003566/0.2146, allocations: 229.5 kB / 401.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.2147, allocations: 78.97 kB / 401.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.2149, allocations: 78.53 kB / 401.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2149, allocations: 4 kB / 401.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.2149, allocations: 7.938 kB / 401.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.2149, allocations: 7.969 kB / 401.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.2172, allocations: 1.317 MB / 403 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.2172, allocations: 7.938 kB / 403 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004723/0.2177, allocations: 95.88 kB / 403.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.2177, allocations: 160 / 403.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.2177, allocations: 23.92 kB / 403.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.2177, allocations: 11.94 kB / 403.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2177, allocations: 4 kB / 403.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2188, allocations: 0.693 MB / 403.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.2189, allocations: 144.1 kB / 404 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.357e-05/0.219, allocations: 12 kB / 404 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.2193, allocations: 23.98 kB / 404 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.13e-05/0.2194, allocations: 27.95 kB / 404.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.2194, allocations: 16 kB / 404.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005067/0.22, allocations: 419 kB / 404.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.22, allocations: 0 / 404.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006822/0.2207, allocations: 136 kB / 404.6 MB, free: 0.5664 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.000171/0.2208, allocations: 127.1 kB / 404.8 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008829/0.2217, allocations: 437.6 kB / 405.2 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2217, allocations: 0 / 405.2 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003003/0.222, allocations: 151.9 kB / 405.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005764/0.2226, allocations: 76.92 kB / 405.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.2255, allocations: 1.646 MB / 407.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006945/0.2262, allocations: 1 MB / 408.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002812/0.2265, allocations: 98 kB / 408.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.2267, allocations: 59.42 kB / 408.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2267, allocations: 0 / 408.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of Templates: time 0.01305/0.2398, allocations: 5.085 MB / 413.3 MB, free: 7.812 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1)