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.001667/0.001674, allocations: 117.2 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002108/0.002108, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 67.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.289, allocations: 50.55 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003516/0.2925, allocations: 2.626 MB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.2937, allocations: 0.67 MB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.2938, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.294, allocations: 35.66 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.2942, allocations: 79.28 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.2945, allocations: 87.86 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003871/0.2949, allocations: 378.6 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.2951, allocations: 80.94 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.2953, allocations: 147.5 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.2955, allocations: 147.4 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.2955, allocations: 32 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.287e-05/0.2956, allocations: 28 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.559e-05/0.2956, allocations: 59.77 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2958, allocations: 155.2 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.2962, allocations: 329.7 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2962, allocations: 0 / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2962, allocations: 0 / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.2962, allocations: 0 / 413.6 MB, free: 12.66 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.001117/0.2973, allocations: 0.6464 MB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2974, allocations: 8.031 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.917e-05/0.2975, allocations: 58.72 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.234e-05/0.2975, allocations: 32.75 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.2979, allocations: 259.9 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.972e-05/0.298, allocations: 110 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.2981, allocations: 20.38 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.2986, allocations: 253.8 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2986, allocations: 0 / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.2987, allocations: 15.92 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2987, allocations: 4 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000503/0.2992, allocations: 201.6 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.3004, allocations: 0.8595 MB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004717/0.3009, allocations: 202.7 kB / 416.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.3012, allocations: 135 kB / 416.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.3013, allocations: 4 kB / 416.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.3016, allocations: 176.8 kB / 416.6 MB, free: 9.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.3016, allocations: 0 / 416.6 MB, free: 9.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001437/0.3031, allocations: 499.6 kB / 417 MB, free: 8.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.3032, allocations: 106.8 kB / 417.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3034, allocations: 206.8 kB / 417.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.3034, allocations: 37.69 kB / 417.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.3035, allocations: 148.4 kB / 417.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.371e-05/0.3036, allocations: 75.45 kB / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.3037, allocations: 57.92 kB / 417.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3039, allocations: 326.8 kB / 418 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.3041, allocations: 96.17 kB / 418.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.3044, allocations: 143.8 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.3049, allocations: 242.9 kB / 418.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3049, allocations: 0 / 418.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007705/0.3057, allocations: 407.5 kB / 418.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.15e-05/0.3058, allocations: 63.39 kB / 418.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3058, allocations: 4 kB / 418.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003571/0.3061, allocations: 112.7 kB / 419 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.3063, allocations: 35.91 kB / 419.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.3086, allocations: 2.076 MB / 421.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004596/0.3091, allocations: 67.89 kB / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.3091, allocations: 12 kB / 421.2 MB, free: 4.523 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.0001404/0.3093, allocations: 136.8 kB / 421.4 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.3093, allocations: 27.8 kB / 421.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.03e-05/0.3094, allocations: 33.8 kB / 421.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3094, allocations: 8 kB / 421.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.3094, allocations: 3.938 kB / 421.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3094, allocations: 0 / 421.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004722/0.3099, allocations: 451.1 kB / 421.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3099, allocations: 0 / 421.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.3101, allocations: 23.97 kB / 421.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002604/0.3103, allocations: 112.8 kB / 422 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.3104, allocations: 4 kB / 422 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.3126, allocations: 2.073 MB / 424.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3126, allocations: 0 / 424.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008383/0.3134, allocations: 414.5 kB / 424.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.3136, allocations: 109 kB / 424.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.3136, allocations: 8 kB / 424.6 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.3138, allocations: 28.03 kB / 424.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.57e-05/0.3139, allocations: 23.97 kB / 424.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.314, allocations: 12 kB / 424.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001282/0.3141, allocations: 144.6 kB / 424.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3141, allocations: 0 / 424.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004015/0.3145, allocations: 95.83 kB / 424.9 MB, free: 0.5977 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.001204/0.3157, allocations: 0.952 MB / 425.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009639/0.3167, allocations: 0.4896 MB / 426.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3167, allocations: 4 kB / 426.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004757/0.3172, allocations: 250.5 kB / 426.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.3176, allocations: 52.08 kB / 426.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.3221, allocations: 2.733 MB / 429.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3225, allocations: 0.748 MB / 430.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.3226, allocations: 17.95 kB / 430.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.3227, allocations: 67.42 kB / 430.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3227, allocations: 0 / 430.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04153/0.3643, allocations: 7.109 MB / 437.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.57, allocations: 7.922 kB / 437.3 MB, free: 4.125 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.00001e-05 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)