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.001523/0.001523, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2778, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004272/0.2821, allocations: 2.622 MB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2836, allocations: 0.6739 MB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.2838, allocations: 4 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.284, allocations: 39.64 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.2842, allocations: 67.3 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.2845, allocations: 95.84 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004331/0.2849, allocations: 374.6 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.2851, allocations: 92.92 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.2853, allocations: 135.5 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.2855, allocations: 147.4 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.334e-05/0.2856, allocations: 32 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.748e-05/0.2856, allocations: 28 kB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-05/0.2857, allocations: 67.73 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.2859, allocations: 151.2 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003985/0.2863, allocations: 325.7 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2863, allocations: 0 / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2863, allocations: 0 / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.361e-06/0.2863, allocations: 0 / 413.6 MB, free: 12.71 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.001136/0.2875, allocations: 0.6425 MB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2875, allocations: 15.97 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.009e-05/0.2876, allocations: 58.73 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.639e-05/0.2877, allocations: 32.75 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.288, allocations: 255.9 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.2882, allocations: 106.1 kB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.2882, allocations: 28.31 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005116/0.2887, allocations: 253.8 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2887, allocations: 0 / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.2888, allocations: 12 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.2888, allocations: 11.94 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005204/0.2893, allocations: 193.6 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.2906, allocations: 0.8634 MB / 416.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004842/0.2911, allocations: 202.7 kB / 416.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.2915, allocations: 127 kB / 416.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.2915, allocations: 3.938 kB / 416.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003817/0.2919, allocations: 180.8 kB / 416.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.2919, allocations: 0 / 416.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001442/0.2933, allocations: 0.4918 MB / 417 MB, free: 9.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.2934, allocations: 106.8 kB / 417.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.2936, allocations: 206.8 kB / 417.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.2937, allocations: 29.7 kB / 417.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.2938, allocations: 160.4 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.2939, allocations: 71.41 kB / 417.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.294, allocations: 49.94 kB / 417.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2942, allocations: 334.8 kB / 418 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.2944, allocations: 92.19 kB / 418.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.2947, allocations: 151.8 kB / 418.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00048/0.2952, allocations: 238.9 kB / 418.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2952, allocations: 0 / 418.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007953/0.296, allocations: 407.5 kB / 418.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.2961, allocations: 63.41 kB / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2961, allocations: 0 / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003373/0.2965, allocations: 120.7 kB / 419 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.2966, allocations: 27.98 kB / 419.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.2992, allocations: 2.076 MB / 421.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.2997, allocations: 71.92 kB / 421.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.2997, allocations: 4 kB / 421.2 MB, free: 4.578 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.0001581/0.2999, allocations: 137.8 kB / 421.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.2999, allocations: 27.8 kB / 421.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.3, allocations: 29.86 kB / 421.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3, allocations: 3.938 kB / 421.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3, allocations: 0 / 421.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3, allocations: 7.938 kB / 421.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005033/0.3006, allocations: 455.1 kB / 421.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3006, allocations: 0 / 421.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.3007, allocations: 27.98 kB / 421.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002558/0.301, allocations: 112.8 kB / 422 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.301, allocations: 7.984 kB / 422 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.3033, allocations: 2.069 MB / 424.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3033, allocations: 0 / 424.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000876/0.3042, allocations: 410.5 kB / 424.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.3044, allocations: 113 kB / 424.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.3044, allocations: 8 kB / 424.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.3046, allocations: 24.03 kB / 424.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.034e-05/0.3047, allocations: 27.95 kB / 424.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.3047, allocations: 8 kB / 424.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.3049, allocations: 144.6 kB / 424.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3049, allocations: 0 / 424.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004333/0.3053, allocations: 91.84 kB / 424.9 MB, free: 0.6523 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.001262/0.3066, allocations: 0.952 MB / 425.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009586/0.3076, allocations: 0.4974 MB / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3076, allocations: 0 / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004553/0.308, allocations: 246.5 kB / 426.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.3084, allocations: 66.23 kB / 426.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004156/0.3126, allocations: 2.725 MB / 429.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.313, allocations: 0.7519 MB / 430.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.671e-05/0.3131, allocations: 13.95 kB / 430.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3132, allocations: 71.41 kB / 430.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3132, allocations: 0 / 430.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.3487, allocations: 7.109 MB / 437.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.07, allocations: 10.27 kB / 437.3 MB, free: 4.172 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)