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.001773/0.001773, allocations: 109.6 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00221/0.00221, allocations: 212.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.49/2.49, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 67.88 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5207/0.5226, allocations: 50.53 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.007365/0.53, allocations: 2.627 MB / 412.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.5324, allocations: 0.67 MB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.5327, allocations: 8 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.533, allocations: 35.58 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.5334, allocations: 71.34 kB / 413.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.5339, allocations: 95.8 kB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006816/0.5346, allocations: 366.7 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000309/0.5349, allocations: 92.86 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/0.5352, allocations: 139.5 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003235/0.5356, allocations: 155.4 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.462e-05/0.5357, allocations: 28 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.043e-05/0.5358, allocations: 32 kB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.847e-05/0.5359, allocations: 59.77 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002301/0.5362, allocations: 143.3 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005815/0.5368, allocations: 339.9 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5368, allocations: 0 / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5368, allocations: 0 / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.577e-06/0.5368, allocations: 4 kB / 414.8 MB, free: 12.73 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.001705/0.5386, allocations: 0.631 MB / 415.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/0.5386, allocations: 12.03 kB / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.5388, allocations: 28.66 kB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005819/0.5394, allocations: 255.8 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.5396, allocations: 110.1 kB / 415.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.898e-05/0.5397, allocations: 20.38 kB / 415.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008875/0.5406, allocations: 257.9 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.5406, allocations: 3.938 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/0.5407, allocations: 8 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.5407, allocations: 8 kB / 416.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.5417, allocations: 201.6 kB / 416.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.5441, allocations: 0.8593 MB / 417.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.545, allocations: 202.7 kB / 417.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000577/0.5456, allocations: 128.8 kB / 417.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.5457, allocations: 0 / 417.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006673/0.5464, allocations: 189.3 kB / 417.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.826e-06/0.5464, allocations: 0 / 417.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00265/0.549, allocations: 497.8 kB / 418.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.345e-05/0.5492, allocations: 102.8 kB / 418.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.5495, allocations: 214.7 kB / 418.5 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.025e-05/0.5496, allocations: 29.7 kB / 418.5 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.5498, allocations: 152.3 kB / 418.6 MB, free: 8.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.5499, allocations: 71.08 kB / 418.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.5501, allocations: 53.84 kB / 418.8 MB, free: 8.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.5503, allocations: 334.8 kB / 419.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004722/0.5508, allocations: 88.19 kB / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.5514, allocations: 147.8 kB / 419.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009132/0.5523, allocations: 246.8 kB / 419.5 MB, free: 7.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.5523, allocations: 0 / 419.5 MB, free: 7.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001464/0.5538, allocations: 399.4 kB / 419.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.583e-05/0.5539, allocations: 70.2 kB / 420 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.5539, allocations: 0 / 420 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005925/0.5546, allocations: 104.9 kB / 420.1 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.5549, allocations: 39.91 kB / 420.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004184/0.5591, allocations: 2.068 MB / 422.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009321/0.5601, allocations: 71.88 kB / 422.3 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.496e-05/0.5602, allocations: 8.172 kB / 422.3 MB, free: 4.695 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.0002658/0.5604, allocations: 145.7 kB / 422.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.5605, allocations: 23.75 kB / 422.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.588e-05/0.5606, allocations: 29.88 kB / 422.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.5607, allocations: 0 / 422.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5607, allocations: 7.938 kB / 422.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5607, allocations: 7.984 kB / 422.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008412/0.5615, allocations: 451 kB / 422.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5616, allocations: 0 / 422.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.5619, allocations: 23.98 kB / 423 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004796/0.5624, allocations: 112.8 kB / 423.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.5624, allocations: 4 kB / 423.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003869/0.5663, allocations: 2.072 MB / 425.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.5663, allocations: 0 / 425.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.5681, allocations: 418.3 kB / 425.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002179/0.5684, allocations: 104.8 kB / 425.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.866e-05/0.5685, allocations: 11.98 kB / 425.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.5689, allocations: 24.05 kB / 425.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.5691, allocations: 27.91 kB / 425.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.5691, allocations: 12 kB / 425.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.5694, allocations: 144.6 kB / 425.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5694, allocations: 0 / 425.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009006/0.5703, allocations: 87.84 kB / 426 MB, free: 0.7656 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.0002503/0.5706, allocations: 107.2 kB / 426.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.5724, allocations: 497.3 kB / 426.6 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.5724, allocations: 0 / 426.6 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008423/0.5733, allocations: 253.4 kB / 426.8 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.0006881/0.574, allocations: 51.86 kB / 426.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.5761, allocations: 0.5516 MB / 427.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.5768, allocations: 0.7519 MB / 428.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.965e-05/0.5769, allocations: 15.53 kB / 428.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5769, allocations: 3.938 kB / 428.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01267/0.5896, allocations: 4.129 MB / 432.3 MB, free: 10.32 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)