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.001365/0.001365, allocations: 107.3 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.001508/0.001508, allocations: 188 kB / 18 MB, free: 5.102 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.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1755/0.1755, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 67.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3357, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007125/0.3428, allocations: 6.587 MB / 0.51 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.3455, allocations: 1.749 MB / 0.5118 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003651/0.3459, allocations: 23.78 kB / 0.5118 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007498/0.3467, allocations: 215.4 kB / 0.512 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.3477, allocations: 392.8 kB / 0.5124 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006376/0.3484, allocations: 232.3 kB / 0.5126 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.3499, allocations: 1.071 MB / 0.5136 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007196/0.3506, allocations: 0.5181 MB / 0.5141 GB, free: 404 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007742/0.3514, allocations: 474.8 kB / 0.5146 GB, free: 176 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006925/0.3521, allocations: 482.6 kB / 0.515 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.3522, allocations: 84.69 kB / 0.5151 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.3524, allocations: 85.28 kB / 0.5152 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003203/0.3527, allocations: 277.4 kB / 0.5155 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004614/0.3532, allocations: 414.3 kB / 0.5159 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001572/0.3547, allocations: 1.04 MB / 0.5169 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3548, allocations: 0 / 0.5169 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3548, allocations: 0.6562 kB / 0.5169 GB, free: 15.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3548, allocations: 0 / 0.5169 GB, free: 15.2 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.002268/0.3571, allocations: 1.029 MB / 0.5179 GB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.3571, allocations: 12.98 kB / 0.5179 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000162/0.3573, allocations: 106.9 kB / 0.518 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.3575, allocations: 82.56 kB / 0.5181 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.3587, allocations: 0.6607 MB / 0.5187 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.3589, allocations: 120.9 kB / 0.5188 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.359, allocations: 58.64 kB / 0.5189 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.3604, allocations: 0.7483 MB / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3604, allocations: 0.9844 kB / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.32e-05/0.3605, allocations: 30.44 kB / 0.5197 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.3605, allocations: 14.72 kB / 0.5197 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.3617, allocations: 0.6012 MB / 0.5203 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00349/0.3652, allocations: 2.466 MB / 0.5227 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/0.3661, allocations: 415.6 kB / 0.5231 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/0.3665, allocations: 203.7 kB / 0.5233 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.3666, allocations: 4.344 kB / 0.5233 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004787/0.3671, allocations: 245.6 kB / 0.5235 GB, free: 11.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 1.933e-06/0.3671, allocations: 0 / 0.5235 GB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003344/0.3704, allocations: 0.8769 MB / 0.5243 GB, free: 10.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.3705, allocations: 139.3 kB / 0.5245 GB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005045/0.371, allocations: 404.6 kB / 0.5249 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.3711, allocations: 32.05 kB / 0.5249 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.3713, allocations: 325.9 kB / 0.5252 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.3714, allocations: 130.1 kB / 0.5253 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.3716, allocations: 74.39 kB / 0.5254 GB, free: 10 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3717, allocations: 356.3 kB / 0.5257 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00031/0.372, allocations: 130.9 kB / 0.5259 GB, free: 9.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.3724, allocations: 244.3 kB / 0.5261 GB, free: 9.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.374, allocations: 0.6691 MB / 0.5268 GB, free: 9.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.374, allocations: 5.25 kB / 0.5268 GB, free: 9.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001211/0.3752, allocations: 0.5237 MB / 0.5273 GB, free: 8.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3752, allocations: 7.094 kB / 0.5273 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3753, allocations: 3.344 kB / 0.5273 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004703/0.3757, allocations: 151.3 kB / 0.5274 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.376, allocations: 71.47 kB / 0.5275 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003456/0.3795, allocations: 2.265 MB / 0.5297 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.3799, allocations: 54.66 kB / 0.5298 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.38, allocations: 18.12 kB / 0.5298 GB, free: 6.859 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.0003719/0.3803, allocations: 240.5 kB / 0.53 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.526e-05/0.3804, allocations: 54.8 kB / 0.5301 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.3818, allocations: 485.2 kB / 0.5305 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3818, allocations: 5.156 kB / 0.5305 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3818, allocations: 1 kB / 0.5305 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3818, allocations: 4.109 kB / 0.5305 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008929/0.3827, allocations: 0.6768 MB / 0.5312 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3827, allocations: 1.703 kB / 0.5312 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.383, allocations: 43.02 kB / 0.5312 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004228/0.3834, allocations: 149.5 kB / 0.5314 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.3834, allocations: 9.719 kB / 0.5314 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003253/0.3867, allocations: 2.254 MB / 0.5336 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3867, allocations: 5.219 kB / 0.5336 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.3884, allocations: 0.6958 MB / 0.5343 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.3886, allocations: 148.4 kB / 0.5344 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.481e-05/0.3887, allocations: 10.59 kB / 0.5344 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.389, allocations: 24.97 kB / 0.5344 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3891, allocations: 34.48 kB / 0.5345 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.3891, allocations: 12.28 kB / 0.5345 GB, free: 3.418 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003314/0.3894, allocations: 282.3 kB / 0.5348 GB, free: 3.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3894, allocations: 1 kB / 0.5348 GB, free: 3.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008002/0.3902, allocations: 162.1 kB / 0.5349 GB, free: 3.207 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.00203/0.3923, allocations: 1.25 MB / 0.5361 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3934, allocations: 0.4999 MB / 0.5366 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3934, allocations: 0 / 0.5366 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005733/0.394, allocations: 349.1 kB / 0.537 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.3948, allocations: 168 kB / 0.5371 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006773/0.4015, allocations: 4.576 MB / 0.5416 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.402, allocations: 0.9305 MB / 0.5425 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.4023, allocations: 84.47 kB / 0.5426 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.4026, allocations: 190.6 kB / 0.5428 GB, free: 13.43 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4026, allocations: 0 / 0.5428 GB, free: 13.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03728/0.4399, allocations: 13.27 MB / 0.5557 GB, free: 2.332 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.41, allocations: 3.75 kB / 0.5557 GB, free: 2.328 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)