Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 205.9 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.487/1.487, allocations: 230.4 MB / 250 MB, free: 9.043 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 71.83 kB / 367.4 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3074, allocations: 53.3 MB / 420.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004135/0.3115, allocations: 2.642 MB / 423.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.3128, allocations: 0.67 MB / 424 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.313, allocations: 7.938 kB / 424 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.3131, allocations: 35.64 kB / 424 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3133, allocations: 79.34 kB / 424.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.3136, allocations: 91.8 kB / 424.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000443/0.3141, allocations: 362.7 kB / 424.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.3142, allocations: 68.92 kB / 424.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.3144, allocations: 139.5 kB / 424.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.3147, allocations: 151.4 kB / 424.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.3147, allocations: 32 kB / 424.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.258e-05/0.3148, allocations: 28 kB / 425 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.246e-05/0.3148, allocations: 63.77 kB / 425 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001558/0.315, allocations: 155.2 kB / 425.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.3155, allocations: 330.5 kB / 425.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3155, allocations: 0 / 425.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3155, allocations: 0 / 425.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.3155, allocations: 0 / 425.5 MB, free: 3.5 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.001158/0.3166, allocations: 0.6464 MB / 426.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3167, allocations: 8.031 kB / 426.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.292e-05/0.3167, allocations: 32.75 kB / 426.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.3171, allocations: 255.9 kB / 426.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.3172, allocations: 98.11 kB / 426.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.3173, allocations: 24.38 kB / 426.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.3178, allocations: 257.9 kB / 426.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3178, allocations: 0 / 426.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.3179, allocations: 12 kB / 426.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3179, allocations: 4 kB / 426.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.3184, allocations: 201.6 kB / 427 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.3198, allocations: 0.8518 MB / 427.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.3203, allocations: 198.6 kB / 428.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/0.3206, allocations: 112.8 kB / 428.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.3206, allocations: 0 / 428.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004006/0.321, allocations: 189.7 kB / 428.4 MB, free: 420 kB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.321, allocations: 0 / 428.4 MB, free: 420 kB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001505/0.3225, allocations: 491.6 kB / 428.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.463e-05/0.3226, allocations: 110.8 kB / 428.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.3228, allocations: 210.7 kB / 429.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.3229, allocations: 29.7 kB / 429.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.323, allocations: 160.4 kB / 429.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.3231, allocations: 67.42 kB / 429.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3232, allocations: 49.94 kB / 429.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3233, allocations: 334.8 kB / 429.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.3236, allocations: 100.2 kB / 429.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/0.3239, allocations: 139.8 kB / 430 MB, free: 14.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004892/0.3244, allocations: 250.8 kB / 430.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3244, allocations: 4 kB / 430.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008185/0.3252, allocations: 399.4 kB / 430.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.11e-05/0.3253, allocations: 63.39 kB / 430.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3253, allocations: 0 / 430.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003556/0.3256, allocations: 112.8 kB / 430.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.3258, allocations: 31.97 kB / 430.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.3285, allocations: 2.076 MB / 432.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004617/0.329, allocations: 64.02 kB / 433 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.329, allocations: 15.98 kB / 433 MB, free: 11.46 MB / 350.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.0001579/0.3292, allocations: 141.8 kB / 433.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.3292, allocations: 23.8 kB / 433.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.012e-05/0.3293, allocations: 29.86 kB / 433.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.3293, allocations: 4 kB / 433.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.3293, allocations: 3.938 kB / 433.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3293, allocations: 0 / 433.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.3298, allocations: 451.1 kB / 433.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3298, allocations: 4.031 kB / 433.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.3299, allocations: 27.97 kB / 433.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002709/0.3302, allocations: 100.8 kB / 433.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.3302, allocations: 8 kB / 433.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/0.3328, allocations: 2.08 MB / 435.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3328, allocations: 3.984 kB / 435.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009173/0.3337, allocations: 412.1 kB / 436.3 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.3338, allocations: 113 kB / 436.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.3338, allocations: 8 kB / 436.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.3341, allocations: 23.97 kB / 436.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.22e-05/0.3342, allocations: 19.97 kB / 436.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.3342, allocations: 8 kB / 436.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.3343, allocations: 148.7 kB / 436.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3343, allocations: 0 / 436.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000414/0.3347, allocations: 92.03 kB / 436.7 MB, free: 7.543 MB / 350.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.0001415/0.3349, allocations: 107.2 kB / 436.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009626/0.3358, allocations: 485 kB / 437.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3358, allocations: 0 / 437.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004628/0.3363, allocations: 237.2 kB / 437.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.3366, allocations: 48.11 kB / 437.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.3377, allocations: 0.527 MB / 438.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.3381, allocations: 0.7557 MB / 438.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.708e-05/0.3382, allocations: 13.94 kB / 438.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.551e-05/0.3383, allocations: 15.44 kB / 438.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3383, allocations: 4 kB / 438.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of Templates: time 0.009817/0.3481, allocations: 4.878 MB / 443.7 MB, free: 432 kB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)