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.001146/0.001146, allocations: 95.02 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 199.7 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003463, allocations: 15.92 kB / 307.8 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1512, allocations: 51.51 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003469/0.1547, allocations: 2.312 MB / 361.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.1565, allocations: 0.6741 MB / 362.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.1568, allocations: 4 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.157, allocations: 27.77 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.1574, allocations: 67.45 kB / 362.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.1578, allocations: 75.92 kB / 362.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005552/0.1584, allocations: 346.7 kB / 362.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1586, allocations: 77.62 kB / 362.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1589, allocations: 115.6 kB / 363 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.1592, allocations: 135.4 kB / 363.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.272e-05/0.1592, allocations: 16 kB / 363.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.568e-05/0.1593, allocations: 16 kB / 363.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.814e-05/0.1594, allocations: 47.77 kB / 363.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002094/0.1596, allocations: 161 kB / 363.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004362/0.16, allocations: 302.8 kB / 363.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.1601, allocations: 0 / 363.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.1601, allocations: 0 / 363.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.1601, allocations: 7.938 kB / 363.6 MB, free: 8.898 MB / 302.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.001405/0.1615, allocations: 0.596 MB / 364.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.1616, allocations: 8.031 kB / 364.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.1617, allocations: 32.66 kB / 364.3 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.1621, allocations: 255.5 kB / 364.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.1623, allocations: 102.1 kB / 364.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.198e-05/0.1624, allocations: 28.38 kB / 364.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006903/0.1631, allocations: 261.9 kB / 364.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1631, allocations: 0 / 364.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.1631, allocations: 12 kB / 364.9 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1632, allocations: 4 kB / 364.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.1638, allocations: 213.6 kB / 365.1 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.1653, allocations: 0.8632 MB / 366 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.1659, allocations: 226.1 kB / 366.2 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003593/0.1662, allocations: 128.8 kB / 366.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.1663, allocations: 3.984 kB / 366.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000479/0.1667, allocations: 195 kB / 366.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/0.1668, allocations: 3.938 kB / 366.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001665/0.1684, allocations: 0.5113 MB / 367 MB, free: 5.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.1685, allocations: 114.8 kB / 367.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.1688, allocations: 210.7 kB / 367.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.1688, allocations: 33.7 kB / 367.4 MB, free: 4.836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1689, allocations: 148.2 kB / 367.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.948e-05/0.169, allocations: 67.02 kB / 367.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.25e-05/0.1691, allocations: 33.7 kB / 367.6 MB, free: 4.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1692, allocations: 330.8 kB / 368 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.1695, allocations: 100.2 kB / 368 MB, free: 4.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.1698, allocations: 147.8 kB / 368.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006209/0.1705, allocations: 264.7 kB / 368.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1705, allocations: 4 kB / 368.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009804/0.1715, allocations: 415.6 kB / 368.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.072e-05/0.1716, allocations: 63.45 kB / 368.9 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1716, allocations: 4 kB / 368.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004442/0.1721, allocations: 112.7 kB / 369 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.1723, allocations: 31.98 kB / 369.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002565/0.1749, allocations: 1.877 MB / 370.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005528/0.1754, allocations: 83.78 kB / 371 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/0.1755, allocations: 7.984 kB / 371 MB, free: 0.9609 MB / 302.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.0002042/0.1757, allocations: 150.8 kB / 371.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.8e-05/0.1758, allocations: 19.81 kB / 371.2 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.714e-05/0.1758, allocations: 33.86 kB / 371.2 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1759, allocations: 3.938 kB / 371.2 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1759, allocations: 4 kB / 371.2 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1759, allocations: 0 / 371.2 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000549/0.1764, allocations: 443.1 kB / 371.7 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1764, allocations: 0 / 371.7 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.1766, allocations: 35.91 kB / 371.7 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003072/0.1769, allocations: 104.8 kB / 371.8 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.177, allocations: 4 kB / 371.8 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2758/0.4528, allocations: 1.866 MB / 373.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.4529, allocations: 4.906 kB / 373.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.4543, allocations: 432.8 kB / 374.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.4545, allocations: 109.4 kB / 374.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.4545, allocations: 10.06 kB / 374.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.4548, allocations: 28.86 kB / 374.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.455, allocations: 30.42 kB / 374.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.455, allocations: 8.406 kB / 374.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000257/0.4553, allocations: 146.2 kB / 374.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4553, allocations: 0 / 374.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000706/0.456, allocations: 87 kB / 374.5 MB, free: 17.86 MB / 302.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.0002696/0.4563, allocations: 112.6 kB / 374.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.4578, allocations: 0.4964 MB / 375.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4579, allocations: 0.75 kB / 375.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007231/0.4586, allocations: 250 kB / 375.4 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.4592, allocations: 56.25 kB / 375.4 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.4609, allocations: 0.6506 MB / 376.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.4614, allocations: 0.7528 MB / 376.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.4615, allocations: 17.94 kB / 376.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.4616, allocations: 14.58 kB / 376.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4616, allocations: 4 kB / 376.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of Templates: time 0.01316/0.4748, allocations: 4.276 MB / 381.1 MB, free: 16.09 MB / 302.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)