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.001327/0.001327, allocations: 110.3 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.3 MB / 246.9 MB, free: 8.973 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 61.89 kB / 306.9 MB, free: 0.7891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08627/0.08751, allocations: 50.54 MB / 357.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003798/0.09134, allocations: 2.663 MB / 360.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.09261, allocations: 0.6896 MB / 360.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.09281, allocations: 4 kB / 360.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.09297, allocations: 27.77 kB / 360.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001897/0.0932, allocations: 67.45 kB / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.09347, allocations: 83.86 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.09383, allocations: 338.7 kB / 361.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.09401, allocations: 73.64 kB / 361.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.09419, allocations: 131.5 kB / 361.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.0944, allocations: 143.4 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.09447, allocations: 20 kB / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.395e-05/0.09453, allocations: 20 kB / 361.7 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.748e-05/0.09459, allocations: 47.83 kB / 361.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.09475, allocations: 139.2 kB / 361.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.09498, allocations: 239.4 kB / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.09499, allocations: 0 / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.095, allocations: 4 kB / 362.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.116e-06/0.09501, allocations: 0 / 362.1 MB, free: 9.551 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.001092/0.09611, allocations: 0.631 MB / 362.7 MB, free: 8.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.09615, allocations: 8.031 kB / 362.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.829e-05/0.09625, allocations: 40.66 kB / 362.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.09655, allocations: 255.5 kB / 363 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-05/0.09665, allocations: 98.11 kB / 363.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.09671, allocations: 28.38 kB / 363.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.09722, allocations: 253.9 kB / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.09725, allocations: 0 / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.09728, allocations: 8 kB / 363.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.0973, allocations: 12 kB / 363.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.09782, allocations: 193.6 kB / 363.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.09914, allocations: 0.8593 MB / 364.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.09965, allocations: 214.6 kB / 364.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.09998, allocations: 128.8 kB / 364.8 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.1, allocations: 0 / 364.8 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.1004, allocations: 182.7 kB / 365 MB, free: 6.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.1004, allocations: 0 / 365 MB, free: 6.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001447/0.1019, allocations: 0.4906 MB / 365.5 MB, free: 5.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.102, allocations: 106.8 kB / 365.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.1022, allocations: 206.8 kB / 365.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.1022, allocations: 37.64 kB / 365.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1023, allocations: 156.2 kB / 366 MB, free: 5.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.936e-05/0.1024, allocations: 67.09 kB / 366 MB, free: 5.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1025, allocations: 53.97 kB / 366.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1026, allocations: 330.8 kB / 366.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.1029, allocations: 96.19 kB / 366.5 MB, free: 4.824 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.1032, allocations: 135.8 kB / 366.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.1037, allocations: 248.7 kB / 366.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1037, allocations: 0 / 366.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008071/0.1046, allocations: 411.3 kB / 367.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.707e-05/0.1046, allocations: 59.41 kB / 367.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1046, allocations: 0 / 367.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003473/0.105, allocations: 112.7 kB / 367.5 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.1052, allocations: 31.98 kB / 367.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.1073, allocations: 1.866 MB / 369.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/0.1079, allocations: 67.84 kB / 369.4 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.1079, allocations: 16.08 kB / 369.4 MB, free: 1.699 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.0001483/0.1081, allocations: 146.8 kB / 369.6 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.1081, allocations: 23.72 kB / 369.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.113e-05/0.1082, allocations: 29.86 kB / 369.6 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.1082, allocations: 7.938 kB / 369.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.1082, allocations: 0 / 369.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1082, allocations: 0 / 369.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004507/0.1087, allocations: 451.3 kB / 370.1 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.1087, allocations: 0 / 370.1 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.1088, allocations: 39.78 kB / 370.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002561/0.1091, allocations: 100.8 kB / 370.2 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.1091, allocations: 8 kB / 370.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1494/0.2585, allocations: 1.856 MB / 372.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2586, allocations: 1.516 kB / 372.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008896/0.2595, allocations: 408.6 kB / 372.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.2596, allocations: 114.6 kB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.2596, allocations: 6.875 kB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.2599, allocations: 22.27 kB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.872e-05/0.26, allocations: 26.69 kB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.26, allocations: 9.016 kB / 372.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.2601, allocations: 143.5 kB / 372.8 MB, free: 18.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2601, allocations: 0 / 372.8 MB, free: 18.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004555/0.2606, allocations: 98 kB / 372.9 MB, free: 18.78 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.0001284/0.2607, allocations: 112.7 kB / 373 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008721/0.2616, allocations: 490.7 kB / 373.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2616, allocations: 4.812 kB / 373.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004219/0.2621, allocations: 239.9 kB / 373.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.2624, allocations: 50.7 kB / 373.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2635, allocations: 0.6385 MB / 374.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.2637, allocations: 0.7514 MB / 375.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.501e-05/0.2638, allocations: 15.25 kB / 375.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2638, allocations: 0 / 375.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of Templates: time 0.006965/0.2708, allocations: 4.101 MB / 379.3 MB, free: 17.04 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)