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.001144/0.001144, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 196 kB / 16.53 MB, free: 6.672 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.341/1.341, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.002057/0.002057, allocations: 47.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1982, allocations: 46.64 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005498/0.2037, allocations: 5.208 MB / 330.5 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008149/0.2119, allocations: 6.574 MB / 337.1 MB, free: 8.113 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008815/0.2128, allocations: 35.75 kB / 337.1 MB, free: 8.078 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.2143, allocations: 0.4929 MB / 337.6 MB, free: 7.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002431/0.2167, allocations: 0.8147 MB / 338.4 MB, free: 6.762 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.2179, allocations: 438.3 kB / 338.9 MB, free: 6.332 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.2209, allocations: 1.974 MB / 340.8 MB, free: 4.352 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003174/0.2213, allocations: 163 kB / 341 MB, free: 4.18 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005141/0.2218, allocations: 338.3 kB / 341.3 MB, free: 3.848 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004405/0.2222, allocations: 337.7 kB / 341.6 MB, free: 3.516 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.2224, allocations: 32 kB / 341.7 MB, free: 3.484 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001098/0.2235, allocations: 463.6 kB / 342.1 MB, free: 3.031 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.2236, allocations: 107.3 kB / 342.2 MB, free: 2.926 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004624/0.2241, allocations: 453 kB / 342.7 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001573/0.2257, allocations: 1.257 MB / 343.9 MB, free: 1.219 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2257, allocations: 0 / 343.9 MB, free: 1.219 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2257, allocations: 0 / 343.9 MB, free: 1.219 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.2257, allocations: 0 / 343.9 MB, free: 1.219 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.001821/0.2275, allocations: 1.441 MB / 345.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.2276, allocations: 12.03 kB / 345.4 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.2277, allocations: 130.4 kB / 345.5 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.2287, allocations: 0.8618 MB / 346.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.2288, allocations: 16.44 kB / 346.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.283e-05/0.2288, allocations: 20 kB / 346.4 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.2293, allocations: 306.7 kB / 346.7 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2294, allocations: 0 / 346.7 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.2294, allocations: 19.88 kB / 346.7 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.2294, allocations: 8 kB / 346.7 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.2298, allocations: 221.8 kB / 347 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2315, allocations: 1.118 MB / 348.1 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003913/0.2319, allocations: 246.5 kB / 348.3 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.2324, allocations: 301.4 kB / 348.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009412/0.2334, allocations: 0.7477 MB / 349.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.2334, allocations: 38.56 kB / 349.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=38): time 2.495e-06/0.2334, allocations: 0 / 349.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.002942/0.2364, allocations: 1.559 MB / 351 MB, free: 9.754 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/0.2365, allocations: 114.8 kB / 351.1 MB, free: 9.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.2375, allocations: 0.9301 MB / 352 MB, free: 8.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.2376, allocations: 29.7 kB / 352 MB, free: 8.645 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.2378, allocations: 357.5 kB / 352.4 MB, free: 8.293 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.238, allocations: 134.1 kB / 352.5 MB, free: 8.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.2382, allocations: 121.5 kB / 352.6 MB, free: 8.035 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2383, allocations: 329.8 kB / 352.9 MB, free: 7.707 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.2385, allocations: 124.6 kB / 353.1 MB, free: 7.582 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.2388, allocations: 159.6 kB / 353.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.2402, allocations: 0.7334 MB / 354 MB, free: 6.656 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2402, allocations: 0 / 354 MB, free: 6.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009358/0.2412, allocations: 0.563 MB / 354.5 MB, free: 6.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.388e-05/0.2412, allocations: 37.7 kB / 354.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/0.2413, allocations: 15.98 kB / 354.6 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000228/0.2415, allocations: 65.69 kB / 354.6 MB, free: 5.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.2417, allocations: 47.91 kB / 354.7 MB, free: 5.898 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.2443, allocations: 3.327 MB / 358 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.2447, allocations: 16.02 kB / 358 MB, free: 2.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.946e-05/0.2448, allocations: 20 kB / 358 MB, free: 2.25 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.0004177/0.2452, allocations: 272 kB / 358.3 MB, free: 1.965 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001844/0.2454, allocations: 122.5 kB / 358.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.2468, allocations: 0.6607 MB / 359.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.2468, allocations: 7.984 kB / 359.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2468, allocations: 0 / 359.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2468, allocations: 0 / 359.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007384/0.2476, allocations: 0.6199 MB / 359.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/0.2476, allocations: 12 kB / 359.7 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.2478, allocations: 39.91 kB / 359.8 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.248, allocations: 73.67 kB / 359.8 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.248, allocations: 15.98 kB / 359.9 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.2504, allocations: 3.328 MB / 363.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.2504, allocations: 4 kB / 363.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.2517, allocations: 0.8549 MB / 364 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000375/0.2521, allocations: 275.5 kB / 364.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.2522, allocations: 7.938 kB / 364.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.2525, allocations: 15.98 kB / 364.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.545e-05/0.2526, allocations: 35.97 kB / 364.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.2526, allocations: 16 kB / 364.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007645/0.2534, allocations: 0.6295 MB / 365 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2534, allocations: 0 / 365 MB, free: 10.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000842/0.2543, allocations: 219.9 kB / 365.2 MB, free: 10.64 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.0005727/0.2549, allocations: 310.8 kB / 365.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.2561, allocations: 0.7804 MB / 366.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2561, allocations: 0 / 366.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006755/0.2568, allocations: 0.6244 MB / 366.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005661/0.2573, allocations: 100.7 kB / 367 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.2596, allocations: 1.609 MB / 368.6 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.2602, allocations: 1 MB / 369.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003244/0.2605, allocations: 93.64 kB / 369.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.238e-05/0.2606, allocations: 51.42 kB / 369.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of SimCode: time 4.8e-07/0.2606, allocations: 3.938 kB / 369.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of Templates: time 0.01681/0.2774, allocations: 8.637 MB / 378.4 MB, free: 13.24 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)