Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 114.1 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002109/0.00211, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1999/0.1999, allocations: 38.04 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 71.88 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3094, allocations: 58.05 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006397/0.3158, allocations: 6.598 MB / 0.5101 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.3184, allocations: 1.742 MB / 0.5118 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003519/0.3188, allocations: 23.97 kB / 0.5118 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005976/0.3194, allocations: 216 kB / 0.512 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007297/0.3201, allocations: 392.1 kB / 0.5124 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.3206, allocations: 227.3 kB / 0.5126 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.3217, allocations: 1.071 MB / 0.5136 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005626/0.3222, allocations: 0.5079 MB / 0.5141 GB, free: 452 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005943/0.3228, allocations: 470 kB / 0.5146 GB, free: 224 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006122/0.3235, allocations: 488.9 kB / 0.515 GB, free: 12 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3236, allocations: 85.34 kB / 0.5151 GB, free: 12 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.3237, allocations: 89.88 kB / 0.5152 GB, free: 8 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.3241, allocations: 277.4 kB / 0.5155 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.3245, allocations: 405.2 kB / 0.5158 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.3258, allocations: 1.039 MB / 0.5169 GB, free: 15.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3258, allocations: 5.172 kB / 0.5169 GB, free: 15.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.3258, allocations: 0.5312 kB / 0.5169 GB, free: 15.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.3258, allocations: 3.938 kB / 0.5169 GB, free: 15.23 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002288/0.3281, allocations: 1.028 MB / 0.5179 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.3282, allocations: 14.12 kB / 0.5179 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001805/0.3284, allocations: 110.6 kB / 0.518 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.3286, allocations: 82.98 kB / 0.5181 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.3298, allocations: 0.6563 MB / 0.5187 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.33, allocations: 117.2 kB / 0.5188 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.965e-05/0.3301, allocations: 54.56 kB / 0.5189 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3315, allocations: 0.7483 MB / 0.5196 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.3316, allocations: 1.094 kB / 0.5196 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.636e-05/0.3316, allocations: 21.91 kB / 0.5196 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.3317, allocations: 14.38 kB / 0.5196 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.3329, allocations: 0.6109 MB / 0.5202 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.3366, allocations: 2.462 MB / 0.5226 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009573/0.3376, allocations: 422.8 kB / 0.523 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004452/0.3381, allocations: 202.9 kB / 0.5232 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.3381, allocations: 8.344 kB / 0.5232 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.3386, allocations: 236.8 kB / 0.5235 GB, free: 11.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 2.164e-06/0.3386, allocations: 0 / 0.5235 GB, free: 11.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003492/0.3421, allocations: 0.8808 MB / 0.5243 GB, free: 10.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.673e-05/0.3422, allocations: 147.2 kB / 0.5245 GB, free: 10.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005321/0.3427, allocations: 401.2 kB / 0.5249 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.3428, allocations: 31.14 kB / 0.5249 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.3431, allocations: 322 kB / 0.5252 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.3432, allocations: 126.3 kB / 0.5253 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3434, allocations: 79.47 kB / 0.5254 GB, free: 10.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.3436, allocations: 356 kB / 0.5257 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/0.3439, allocations: 134.6 kB / 0.5259 GB, free: 9.664 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/0.3443, allocations: 244.3 kB / 0.5261 GB, free: 9.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.346, allocations: 0.6642 MB / 0.5267 GB, free: 9.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.346, allocations: 5.062 kB / 0.5267 GB, free: 9.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001152/0.3472, allocations: 0.525 MB / 0.5273 GB, free: 8.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3472, allocations: 6.391 kB / 0.5273 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3472, allocations: 4.25 kB / 0.5273 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004806/0.3477, allocations: 154.6 kB / 0.5274 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.3481, allocations: 75.31 kB / 0.5275 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003791/0.3519, allocations: 2.262 MB / 0.5297 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.3523, allocations: 53.7 kB / 0.5297 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/0.3524, allocations: 17.38 kB / 0.5298 GB, free: 6.898 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004338/0.3528, allocations: 248.9 kB / 0.53 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.087e-05/0.3529, allocations: 55.17 kB / 0.5301 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.3543, allocations: 485.3 kB / 0.5305 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.3543, allocations: 5.344 kB / 0.5305 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3543, allocations: 5.5 kB / 0.5305 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3544, allocations: 3.672 kB / 0.5305 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009642/0.3553, allocations: 0.6765 MB / 0.5312 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3553, allocations: 3.641 kB / 0.5312 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002369/0.3556, allocations: 44.31 kB / 0.5312 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004648/0.3561, allocations: 150 kB / 0.5314 GB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.3561, allocations: 9.734 kB / 0.5314 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003583/0.3597, allocations: 2.247 MB / 0.5336 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3597, allocations: 3.984 kB / 0.5336 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.3615, allocations: 0.6846 MB / 0.5343 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3618, allocations: 152.8 kB / 0.5344 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.375e-05/0.3618, allocations: 10.45 kB / 0.5344 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.3621, allocations: 23.98 kB / 0.5344 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.3622, allocations: 38.84 kB / 0.5345 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.3623, allocations: 12.97 kB / 0.5345 GB, free: 3.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000378/0.3626, allocations: 282.7 kB / 0.5348 GB, free: 3.273 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3626, allocations: 0 / 0.5348 GB, free: 3.273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006927/0.3633, allocations: 163.4 kB / 0.5349 GB, free: 3.234 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002095/0.3654, allocations: 1.248 MB / 0.5361 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.3668, allocations: 0.5036 MB / 0.5366 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.3668, allocations: 1 kB / 0.5366 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006428/0.3674, allocations: 348.2 kB / 0.537 GB, free: 1.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000807/0.3682, allocations: 162.1 kB / 0.5371 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007347/0.3756, allocations: 4.572 MB / 0.5416 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006654/0.3763, allocations: 0.9313 MB / 0.5425 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003173/0.3766, allocations: 80.77 kB / 0.5426 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.3769, allocations: 198.3 kB / 0.5427 GB, free: 13.45 MB / 414.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3769, allocations: 0 / 0.5427 GB, free: 13.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04676/0.4237, allocations: 13.26 MB / 0.5557 GB, free: 2.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.15, allocations: 6.875 kB / 0.5557 GB, free: 2.344 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)