Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.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.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002123/0.002123, allocations: 192.8 kB / 16.25 MB, free: 6.621 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.329/1.329, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001092/0.001092, allocations: 51.91 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1907, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005321/0.1961, allocations: 5.203 MB / 330 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007618/0.2037, allocations: 6.497 MB / 336.5 MB, free: 8.387 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005897/0.2043, allocations: 35.75 kB / 336.6 MB, free: 8.352 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.2055, allocations: 449.6 kB / 337 MB, free: 7.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001803/0.2073, allocations: 0.6913 MB / 337.7 MB, free: 7.215 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009907/0.2083, allocations: 386.9 kB / 338.1 MB, free: 6.836 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002443/0.2108, allocations: 2.004 MB / 340.1 MB, free: 4.824 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/0.2111, allocations: 167 kB / 340.3 MB, free: 4.648 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003682/0.2115, allocations: 346.2 kB / 340.6 MB, free: 4.309 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003178/0.2118, allocations: 341.7 kB / 340.9 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.796e-05/0.2119, allocations: 35.94 kB / 341 MB, free: 3.938 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008384/0.2127, allocations: 463.6 kB / 341.4 MB, free: 3.484 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.723e-05/0.2128, allocations: 111.3 kB / 341.5 MB, free: 3.375 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003149/0.2131, allocations: 449 kB / 342 MB, free: 2.934 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.2143, allocations: 1.257 MB / 343.2 MB, free: 1.672 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2143, allocations: 0 / 343.2 MB, free: 1.672 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2143, allocations: 0 / 343.2 MB, free: 1.672 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.2144, allocations: 0 / 343.2 MB, free: 1.672 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001691/0.2161, allocations: 1.44 MB / 344.7 MB, free: 172 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.2161, allocations: 12.03 kB / 344.7 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.2163, allocations: 126.4 kB / 344.8 MB, free: 32 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.2173, allocations: 0.8579 MB / 345.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.2173, allocations: 20.44 kB / 345.7 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.955e-05/0.2174, allocations: 24 kB / 345.7 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/0.2179, allocations: 302.7 kB / 346 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2179, allocations: 0 / 346 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.2179, allocations: 11.94 kB / 346 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.218, allocations: 7.984 kB / 346 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003853/0.2184, allocations: 225.8 kB / 346.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.22, allocations: 1.122 MB / 347.3 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.2204, allocations: 246.5 kB / 347.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004469/0.2208, allocations: 297.3 kB / 347.9 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009067/0.2217, allocations: 0.7554 MB / 348.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.2218, allocations: 34.56 kB / 348.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of pre-optimization done (n=38): time 2.074e-06/0.2218, allocations: 0 / 348.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.002791/0.2246, allocations: 1.563 MB / 350.2 MB, free: 10.21 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.2246, allocations: 110.8 kB / 350.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009041/0.2256, allocations: 0.934 MB / 351.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.2256, allocations: 29.7 kB / 351.3 MB, free: 9.102 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.2259, allocations: 361.5 kB / 351.7 MB, free: 8.746 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.501e-05/0.226, allocations: 130.1 kB / 351.8 MB, free: 8.617 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.2261, allocations: 121.5 kB / 351.9 MB, free: 8.492 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2263, allocations: 325.9 kB / 352.2 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.2265, allocations: 124.6 kB / 352.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.2268, allocations: 159.6 kB / 352.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.2281, allocations: 0.7372 MB / 353.2 MB, free: 7.113 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2281, allocations: 0 / 353.2 MB, free: 7.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008601/0.229, allocations: 0.5631 MB / 353.8 MB, free: 6.531 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.229, allocations: 33.7 kB / 353.8 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.92e-05/0.2291, allocations: 19.98 kB / 353.9 MB, free: 6.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002033/0.2293, allocations: 65.69 kB / 353.9 MB, free: 6.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.2295, allocations: 44 kB / 354 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002346/0.2319, allocations: 3.335 MB / 357.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.2322, allocations: 20.02 kB / 357.3 MB, free: 2.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.312e-05/0.2322, allocations: 16 kB / 357.3 MB, free: 2.703 MB / 286.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004068/0.2327, allocations: 263.9 kB / 357.6 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.2328, allocations: 122.5 kB / 357.7 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.2341, allocations: 0.6646 MB / 358.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.2341, allocations: 7.984 kB / 358.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2341, allocations: 0 / 358.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2341, allocations: 0 / 358.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006484/0.2348, allocations: 0.6199 MB / 359 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.338e-05/0.2348, allocations: 15.98 kB / 359 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.235, allocations: 31.97 kB / 359 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.2352, allocations: 73.61 kB / 359.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.2352, allocations: 23.98 kB / 359.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/0.2376, allocations: 3.324 MB / 362.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2376, allocations: 0 / 362.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.2389, allocations: 0.8511 MB / 363.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003576/0.2392, allocations: 275.5 kB / 363.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/0.2393, allocations: 7.938 kB / 363.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.2396, allocations: 20.14 kB / 363.6 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.919e-05/0.2397, allocations: 35.89 kB / 363.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.2398, allocations: 16 kB / 363.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006972/0.2405, allocations: 0.6295 MB / 364.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2405, allocations: 0 / 364.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007981/0.2413, allocations: 219.9 kB / 364.5 MB, free: 11.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.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 (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005655/0.2418, allocations: 306.8 kB / 364.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.2431, allocations: 0.7892 MB / 365.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2431, allocations: 4.062 kB / 365.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006655/0.2438, allocations: 0.6204 MB / 366.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000539/0.2443, allocations: 103.8 kB / 366.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.2466, allocations: 1.912 MB / 368.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.2471, allocations: 1 MB / 369.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003495/0.2475, allocations: 97.58 kB / 369.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.135e-05/0.2476, allocations: 47.44 kB / 369.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of SimCode: time 1.944e-06/0.2476, allocations: 0 / 369.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of Templates: time 0.01576/0.2634, allocations: 8.618 MB / 378 MB, free: 13.42 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)