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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0-beta_om_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.001237/0.001237, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 199.8 kB / 18.73 MB, free: 4.41 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.399/1.399, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.00204/0.00204, allocations: 71.88 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2631, allocations: 50.55 MB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003848/0.267, allocations: 2.629 MB / 411.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2682, allocations: 0.67 MB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.2683, allocations: 0 / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.2685, allocations: 39.58 kB / 412.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.2686, allocations: 71.34 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.2689, allocations: 91.81 kB / 412.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004182/0.2693, allocations: 382.6 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.2695, allocations: 84.92 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.2697, allocations: 139.5 kB / 413.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2699, allocations: 155.4 kB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-05/0.27, allocations: 28 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.601e-05/0.2701, allocations: 32 kB / 413.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.726e-05/0.2701, allocations: 59.77 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.2703, allocations: 147.3 kB / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.2707, allocations: 333.6 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2707, allocations: 0 / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2707, allocations: 4 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2707, allocations: 0 / 413.9 MB, free: 12.48 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.001053/0.2718, allocations: 0.6386 MB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2718, allocations: 8.031 kB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.944e-05/0.2719, allocations: 66.73 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.204e-05/0.2719, allocations: 36.75 kB / 414.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.2723, allocations: 255.9 kB / 414.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-05/0.2724, allocations: 94.11 kB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.2725, allocations: 28.38 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.273, allocations: 257.7 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.273, allocations: 4 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.273, allocations: 7.938 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.273, allocations: 8 kB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005142/0.2736, allocations: 193.6 kB / 415.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.2748, allocations: 0.8595 MB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004972/0.2753, allocations: 214.6 kB / 416.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.2756, allocations: 120.8 kB / 416.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.2757, allocations: 0 / 416.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/0.2761, allocations: 185.7 kB / 416.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.2761, allocations: 4 kB / 416.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001451/0.2775, allocations: 495.6 kB / 417.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.2776, allocations: 106.8 kB / 417.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.2778, allocations: 206.8 kB / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.2779, allocations: 33.7 kB / 417.7 MB, free: 8.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.278, allocations: 156.4 kB / 417.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.2781, allocations: 71.42 kB / 417.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.2782, allocations: 49.94 kB / 418 MB, free: 8.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2783, allocations: 334.8 kB / 418.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.2786, allocations: 96.17 kB / 418.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.2789, allocations: 141 kB / 418.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004805/0.2794, allocations: 247 kB / 418.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2794, allocations: 4 kB / 418.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007905/0.2802, allocations: 403.5 kB / 419.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.044e-05/0.2802, allocations: 67.39 kB / 419.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2803, allocations: 0 / 419.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003398/0.2806, allocations: 112.8 kB / 419.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.2808, allocations: 31.97 kB / 419.4 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.2832, allocations: 2.073 MB / 421.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.2837, allocations: 67.89 kB / 421.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.2837, allocations: 11.98 kB / 421.5 MB, free: 4.348 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.0001664/0.2839, allocations: 148.2 kB / 421.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/0.284, allocations: 27.8 kB / 421.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.44e-05/0.284, allocations: 29.81 kB / 421.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.284, allocations: 7.984 kB / 421.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-06/0.2841, allocations: 0 / 421.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2841, allocations: 3.984 kB / 421.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004815/0.2845, allocations: 455 kB / 422.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2846, allocations: 0 / 422.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.2847, allocations: 28 kB / 422.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002572/0.285, allocations: 100.8 kB / 422.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.285, allocations: 8 kB / 422.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002324/0.2874, allocations: 2.069 MB / 424.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2874, allocations: 288 / 424.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008642/0.2883, allocations: 418.4 kB / 424.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.2884, allocations: 113 kB / 424.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.2884, allocations: 7.938 kB / 424.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.2886, allocations: 23.97 kB / 424.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.2887, allocations: 23.97 kB / 424.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.2888, allocations: 8 kB / 425 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.2889, allocations: 140.6 kB / 425.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2889, allocations: 0 / 425.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004254/0.2894, allocations: 99.91 kB / 425.2 MB, free: 432 kB / 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.001222/0.2906, allocations: 0.9528 MB / 426.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009453/0.2915, allocations: 497.1 kB / 426.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2916, allocations: 0 / 426.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005163/0.2921, allocations: 249.2 kB / 426.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.2924, allocations: 59.8 kB / 426.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.2969, allocations: 2.721 MB / 429.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.2974, allocations: 0.7518 MB / 430.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.2975, allocations: 9.969 kB / 430.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.2976, allocations: 71.41 kB / 430.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2976, allocations: 0 / 430.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03428/0.3319, allocations: 7.136 MB / 437.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.92, allocations: 3.938 kB / 437.6 MB, free: 3.984 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)