Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2386, allocations: 50.55 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003425/0.2421, allocations: 2.619 MB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2432, allocations: 0.6739 MB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2434, allocations: 4 kB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.2436, allocations: 39.58 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.2437, allocations: 71.34 kB / 413.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.244, allocations: 91.8 kB / 413.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.2444, allocations: 374.7 kB / 413.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.2446, allocations: 88.91 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.2448, allocations: 135.5 kB / 414 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.2451, allocations: 155.3 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.2451, allocations: 32 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.956e-05/0.2452, allocations: 31.94 kB / 414.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.743e-05/0.2453, allocations: 59.77 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.2454, allocations: 151.3 kB / 414.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003211/0.2457, allocations: 327.9 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2458, allocations: 0 / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2458, allocations: 0 / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.2458, allocations: 4 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001138/0.2469, allocations: 0.6349 MB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.247, allocations: 8.031 kB / 415.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.554e-05/0.2471, allocations: 32.66 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.2474, allocations: 259.7 kB / 415.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.173e-05/0.2475, allocations: 102.1 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.2476, allocations: 20.38 kB / 415.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.2481, allocations: 253.9 kB / 416.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2481, allocations: 0 / 416.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.2482, allocations: 12 kB / 416.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2482, allocations: 11.94 kB / 416.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.2487, allocations: 201.6 kB / 416.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.25, allocations: 0.8593 MB / 417.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/0.2505, allocations: 202.7 kB / 417.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.2508, allocations: 124.8 kB / 417.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.2508, allocations: 4 kB / 417.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003729/0.2512, allocations: 176.8 kB / 417.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.613e-06/0.2512, allocations: 4 kB / 417.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001446/0.2527, allocations: 497.9 kB / 418.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.2527, allocations: 110.8 kB / 418.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.2529, allocations: 210.7 kB / 418.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.253, allocations: 33.7 kB / 418.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.232e-05/0.2531, allocations: 148.3 kB / 418.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.855e-05/0.2531, allocations: 74.98 kB / 418.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2532, allocations: 53.94 kB / 418.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2534, allocations: 330.8 kB / 419.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2536, allocations: 96.19 kB / 419.2 MB, free: 7.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.2539, allocations: 151.8 kB / 419.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000471/0.2544, allocations: 238.8 kB / 419.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2544, allocations: 0 / 419.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007809/0.2552, allocations: 411.4 kB / 420 MB, free: 7.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.2553, allocations: 59.41 kB / 420 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2553, allocations: 3.984 kB / 420 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003267/0.2556, allocations: 104.9 kB / 420.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.2558, allocations: 31.92 kB / 420.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/0.258, allocations: 2.076 MB / 422.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/0.2586, allocations: 67.84 kB / 422.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.2586, allocations: 12 kB / 422.3 MB, free: 4.648 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (dcPowerSupply.cp,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,diode.off,dcPowerSupply.cc,dcPowerSupply.cv,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.2588, allocations: 137.7 kB / 422.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/0.2588, allocations: 27.73 kB / 422.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.72e-05/0.2589, allocations: 29.88 kB / 422.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.2589, allocations: 7.938 kB / 422.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2589, allocations: 0 / 422.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2589, allocations: 3.984 kB / 422.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004383/0.2593, allocations: 451.1 kB / 422.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2593, allocations: 0 / 422.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.2595, allocations: 27.92 kB / 423 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002555/0.2598, allocations: 112.9 kB / 423.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.2598, allocations: 3.984 kB / 423.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.2619, allocations: 2.072 MB / 425.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.2619, allocations: 8.094 kB / 425.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008357/0.2627, allocations: 398.3 kB / 425.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.764e-05/0.2628, allocations: 112.8 kB / 425.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.2629, allocations: 8.062 kB / 425.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.2631, allocations: 23.97 kB / 425.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.275e-05/0.2632, allocations: 35.91 kB / 425.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.2632, allocations: 7.938 kB / 425.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.2634, allocations: 144.6 kB / 425.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2634, allocations: 0 / 425.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.2638, allocations: 87.84 kB / 426 MB, free: 0.7266 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bufferCapacitor.v) * Number of discrete variables: 6 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001255/0.2639, allocations: 107.2 kB / 426.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009157/0.2648, allocations: 497.3 kB / 426.6 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2648, allocations: 0 / 426.6 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000506/0.2654, allocations: 250.7 kB / 426.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.2658, allocations: 55.98 kB / 426.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.2668, allocations: 0.5572 MB / 427.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.2671, allocations: 0.7519 MB / 428.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.884e-05/0.2672, allocations: 19.42 kB / 428.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2672, allocations: 0 / 428.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Templates: time 0.006197/0.2734, allocations: 4.117 MB / 432.3 MB, free: 10.29 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)