Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply.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.DemoPowerSupply,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupply",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupply,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupply",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 201.2 kB / 18.74 MB, free: 4.312 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.47/1.47, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001834/0.001834, allocations: 67.83 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2527, allocations: 50.55 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupply): time 0.003239/0.256, allocations: 2.039 MB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000957/0.257, allocations: 0.5688 MB / 411.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.45e-05/0.2571, allocations: 4 kB / 411.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.2572, allocations: 19.78 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.568e-05/0.2573, allocations: 39.7 kB / 411.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.2576, allocations: 67.84 kB / 411.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.2579, allocations: 227.3 kB / 412 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.258, allocations: 49.05 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.2581, allocations: 83.7 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.2583, allocations: 87.7 kB / 412.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.745e-05/0.2584, allocations: 16 kB / 412.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.717e-05/0.2584, allocations: 20 kB / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.233e-05/0.2585, allocations: 39.84 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.657e-05/0.2586, allocations: 71.7 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.2588, allocations: 190.3 kB / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2588, allocations: 0 / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2588, allocations: 3.938 kB / 412.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.2589, allocations: 0 / 412.6 MB, free: 13.83 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007808/0.2596, allocations: 496.5 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.2597, allocations: 8.031 kB / 413.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.876e-05/0.2597, allocations: 42.75 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.2599, allocations: 20.84 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.2602, allocations: 216.2 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.807e-05/0.2603, allocations: 97.66 kB / 413.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.2603, allocations: 16.38 kB / 413.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2606, allocations: 121.6 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.2606, allocations: 0 / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.2606, allocations: 8 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2607, allocations: 3.938 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.261, allocations: 119.7 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008493/0.2618, allocations: 0.515 MB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.2622, allocations: 106.7 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.2623, allocations: 60.77 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.2624, allocations: 0 / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.2624, allocations: 34.5 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.2624, allocations: 4 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0008521/0.2633, allocations: 307.4 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.2633, allocations: 51.41 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.2635, allocations: 151.7 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.2635, allocations: 29.7 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.74e-05/0.2636, allocations: 115.9 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.2636, allocations: 23.81 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.746e-05/0.2637, allocations: 37.7 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.2638, allocations: 322.8 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.264, allocations: 55.97 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.2642, allocations: 86.55 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.2645, allocations: 148.2 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2645, allocations: 384 / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000604/0.2651, allocations: 267.8 kB / 416 MB, free: 10.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.2652, allocations: 41.69 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.2652, allocations: 96 / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002232/0.2654, allocations: 76.81 kB / 416.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.77e-05/0.2655, allocations: 15.98 kB / 416.1 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.2673, allocations: 1.624 MB / 417.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/0.2676, allocations: 52.03 kB / 417.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.2677, allocations: 4 kB / 417.8 MB, free: 8.137 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: 3 (dcPowerSupply.cp,dcPowerSupply.cc,dcPowerSupply.cv) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.2678, allocations: 121.8 kB / 417.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.2678, allocations: 15.84 kB / 417.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/0.2682, allocations: 171.1 kB / 418.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2682, allocations: 0 / 418.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2682, allocations: 3.984 kB / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2683, allocations: 0 / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/0.2685, allocations: 213.5 kB / 418.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2685, allocations: 0 / 418.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.58e-05/0.2686, allocations: 19.92 kB / 418.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.2688, allocations: 80.75 kB / 418.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.2688, allocations: 0 / 418.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/0.2703, allocations: 1.61 MB / 420 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2703, allocations: 0 / 420 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004065/0.2707, allocations: 256.3 kB / 420.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.2708, allocations: 89 kB / 420.4 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2708, allocations: 4 kB / 420.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.271, allocations: 15.98 kB / 420.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.121e-05/0.271, allocations: 12.17 kB / 420.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.2711, allocations: 4 kB / 420.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.09e-05/0.2711, allocations: 118.3 kB / 420.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2712, allocations: 0 / 420.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.2715, allocations: 47.94 kB / 420.6 MB, free: 5.137 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (dcPowerSupply.cv,dcPowerSupply.cc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007243/0.2722, allocations: 0.7912 MB / 421.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006288/0.2728, allocations: 314 kB / 421.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2729, allocations: 0 / 421.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.2732, allocations: 178.6 kB / 421.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.2735, allocations: 28.05 kB / 421.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.2761, allocations: 1.969 MB / 423.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.2765, allocations: 0.7045 MB / 424.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.109e-05/0.2765, allocations: 12.55 kB / 424.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.417e-05/0.2766, allocations: 35.42 kB / 424.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2766, allocations: 3.938 kB / 424.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02976/0.3064, allocations: 4.493 MB / 429.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.65, allocations: 11.75 kB / 429.1 MB, free: 12.59 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupply.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe 2>&1)