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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001515/0.001515, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2495, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003755/0.2533, allocations: 2.623 MB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.2546, allocations: 0.6739 MB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001795/0.2548, allocations: 4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.2549, allocations: 31.66 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.2552, allocations: 75.28 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.2555, allocations: 95.84 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004447/0.2559, allocations: 374.7 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.2561, allocations: 90.59 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.2564, allocations: 135.5 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.2566, allocations: 155.3 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.285e-05/0.2567, allocations: 32 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.07e-05/0.2568, allocations: 28 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.049e-05/0.2568, allocations: 55.83 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.257, allocations: 163.2 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.2573, allocations: 322.9 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2573, allocations: 0 / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2573, allocations: 0 / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.2573, allocations: 0 / 413.6 MB, free: 12.64 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.00111/0.2584, allocations: 0.6388 MB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2585, allocations: 8.031 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.633e-05/0.2586, allocations: 66.66 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.025e-05/0.2586, allocations: 28.66 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.259, allocations: 247.8 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-05/0.2591, allocations: 106 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-05/0.2592, allocations: 28.31 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.2597, allocations: 253.8 kB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2597, allocations: 0 / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.2597, allocations: 15.98 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2597, allocations: 4 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004971/0.2602, allocations: 197.6 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.2614, allocations: 0.8554 MB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000497/0.262, allocations: 209.5 kB / 416.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.2623, allocations: 128.7 kB / 416.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.2623, allocations: 4 kB / 416.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003743/0.2627, allocations: 181.2 kB / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.2627, allocations: 0 / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00143/0.2641, allocations: 491.5 kB / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.2642, allocations: 114.8 kB / 417.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.2644, allocations: 206.7 kB / 417.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.2644, allocations: 37.69 kB / 417.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.168e-05/0.2645, allocations: 148.3 kB / 417.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.991e-05/0.2646, allocations: 67 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2647, allocations: 57.92 kB / 417.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2648, allocations: 326.8 kB / 418 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/0.2651, allocations: 104.2 kB / 418.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.2654, allocations: 143.8 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.2659, allocations: 242.9 kB / 418.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2659, allocations: 0 / 418.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007659/0.2667, allocations: 395.4 kB / 418.8 MB, free: 7.051 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.834e-05/0.2668, allocations: 67.39 kB / 418.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2668, allocations: 4 kB / 418.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.2672, allocations: 108.8 kB / 419 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.2674, allocations: 31.97 kB / 419 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.2697, allocations: 2.088 MB / 421.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/0.2702, allocations: 63.78 kB / 421.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.2703, allocations: 8 kB / 421.2 MB, free: 4.531 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.0001786/0.2704, allocations: 141.8 kB / 421.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.2705, allocations: 23.75 kB / 421.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.525e-05/0.2706, allocations: 25.86 kB / 421.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2706, allocations: 7.938 kB / 421.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.2706, allocations: 0 / 421.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.2706, allocations: 3.984 kB / 421.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004609/0.2711, allocations: 451.1 kB / 421.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2711, allocations: 4.031 kB / 421.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.2712, allocations: 27.97 kB / 421.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000262/0.2715, allocations: 104.7 kB / 422 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.2715, allocations: 12 kB / 422 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002057/0.2736, allocations: 2.072 MB / 424 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2736, allocations: 0 / 424 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008712/0.2745, allocations: 406.4 kB / 424.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.2746, allocations: 112.8 kB / 424.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.2747, allocations: 8 kB / 424.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.2749, allocations: 19.97 kB / 424.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.98e-05/0.275, allocations: 31.92 kB / 424.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.275, allocations: 7.984 kB / 424.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.2751, allocations: 148.7 kB / 424.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2751, allocations: 0 / 424.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000426/0.2756, allocations: 91.83 kB / 424.8 MB, free: 0.6094 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.001251/0.2768, allocations: 0.939 MB / 425.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.2779, allocations: 0.4891 MB / 426.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.2779, allocations: 4.188 kB / 426.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.2784, allocations: 256.8 kB / 426.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.2788, allocations: 55.94 kB / 426.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.283, allocations: 2.729 MB / 429.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.2834, allocations: 0.7558 MB / 430.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.704e-05/0.2835, allocations: 9.953 kB / 430.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.2836, allocations: 63.42 kB / 430.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2836, allocations: 0 / 430.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.3129, allocations: 7.302 MB / 437.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.58, allocations: 8 kB / 437.5 MB, free: 3.961 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)