Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001972/0.001972, allocations: 110.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.002372/0.002372, allocations: 191 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.182/0.182, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 75.88 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3567, allocations: 58.04 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.009167/0.3659, allocations: 5.974 MB / 0.5094 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.3698, allocations: 1.541 MB / 0.511 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00065/0.3705, allocations: 27.47 kB / 0.511 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006789/0.3712, allocations: 138.8 kB / 0.5111 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001331/0.3725, allocations: 372.3 kB / 0.5115 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.3736, allocations: 309.1 kB / 0.5118 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002034/0.3757, allocations: 1.343 MB / 0.5131 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006936/0.3764, allocations: 366 kB / 0.5134 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.3777, allocations: 0.5497 MB / 0.514 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.3792, allocations: 0.5517 MB / 0.5145 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003754/0.3796, allocations: 93.69 kB / 0.5146 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004179/0.38, allocations: 91.84 kB / 0.5147 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007032/0.3808, allocations: 343.8 kB / 0.515 GB, free: 468 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009826/0.3818, allocations: 407.7 kB / 0.5154 GB, free: 220 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002278/0.3841, allocations: 1.063 MB / 0.5164 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3841, allocations: 0 / 0.5164 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3841, allocations: 0.5938 kB / 0.5164 GB, free: 15.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.3841, allocations: 0 / 0.5164 GB, free: 15.82 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.004645/0.3888, allocations: 1.212 MB / 0.5176 GB, free: 15.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.3889, allocations: 18.86 kB / 0.5176 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000242/0.3891, allocations: 111.9 kB / 0.5177 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002898/0.3894, allocations: 83.3 kB / 0.5178 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.3916, allocations: 0.6752 MB / 0.5185 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006384/0.3923, allocations: 338.9 kB / 0.5188 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002128/0.3925, allocations: 62.3 kB / 0.5189 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.3953, allocations: 1.039 MB / 0.5199 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3954, allocations: 1.406 kB / 0.5199 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.753e-05/0.3955, allocations: 25.95 kB / 0.5199 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.3955, allocations: 14.06 kB / 0.5199 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003104/0.3986, allocations: 1.089 MB / 0.521 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006127/0.4047, allocations: 3.207 MB / 0.5241 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002332/0.4071, allocations: 0.7498 MB / 0.5248 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.4088, allocations: 0.536 MB / 0.5254 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.618e-05/0.4089, allocations: 5.875 kB / 0.5254 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001693/0.4106, allocations: 0.6248 MB / 0.526 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.4106, allocations: 0 / 0.526 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.004288/0.4149, allocations: 1.377 MB / 0.5273 GB, free: 10.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.415, allocations: 135.6 kB / 0.5275 GB, free: 10.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006711/0.4157, allocations: 396 kB / 0.5278 GB, free: 9.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.4158, allocations: 38.52 kB / 0.5279 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/0.4161, allocations: 302.4 kB / 0.5282 GB, free: 9.516 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.4163, allocations: 169.5 kB / 0.5283 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/0.4166, allocations: 116.6 kB / 0.5284 GB, free: 9.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4167, allocations: 360.3 kB / 0.5288 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.4178, allocations: 462.7 kB / 0.5292 GB, free: 8.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.419, allocations: 0.5539 MB / 0.5298 GB, free: 8.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002173/0.4212, allocations: 0.8856 MB / 0.5306 GB, free: 7.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4212, allocations: 0 / 0.5306 GB, free: 7.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002712/0.4239, allocations: 1.092 MB / 0.5317 GB, free: 7.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.512e-05/0.424, allocations: 51.62 kB / 0.5317 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.424, allocations: 3.344 kB / 0.5317 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.4241, allocations: 5.688 kB / 0.5317 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006069/0.4301, allocations: 1.107 MB / 0.5328 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00822/0.4384, allocations: 4.704 MB / 0.5374 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009427/0.4394, allocations: 108.1 kB / 0.5375 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.4395, allocations: 39.12 kB / 0.5376 GB, free: 2.832 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004716/0.44, allocations: 244.8 kB / 0.5378 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4401, allocations: 58.88 kB / 0.5378 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002786/0.4429, allocations: 0.9919 MB / 0.5388 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.4429, allocations: 5.375 kB / 0.5388 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.4429, allocations: 1.125 kB / 0.5388 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.4429, allocations: 1.188 kB / 0.5388 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004326/0.4473, allocations: 2.135 MB / 0.5409 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4473, allocations: 1.125 kB / 0.5409 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007262/0.4546, allocations: 1.278 MB / 0.5422 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/0.4546, allocations: 7.781 kB / 0.5422 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.4547, allocations: 17.3 kB / 0.5422 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.4547, allocations: 3.781 kB / 0.5422 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.4547, allocations: 10.12 kB / 0.5422 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004395/0.4591, allocations: 1.696 MB / 0.5439 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004977/0.4597, allocations: 212.7 kB / 0.5441 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.4599, allocations: 31.98 kB / 0.5441 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008471/0.4607, allocations: 83.88 kB / 0.5442 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002623/0.461, allocations: 99.73 kB / 0.5443 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-05/0.4611, allocations: 19.98 kB / 0.5443 GB, free: 14.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003982/0.4615, allocations: 271.1 kB / 0.5445 GB, free: 13.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4615, allocations: 0 / 0.5445 GB, free: 13.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008373/0.4623, allocations: 179.7 kB / 0.5447 GB, free: 13.63 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004501/0.4669, allocations: 2.276 MB / 0.5469 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007913/0.4748, allocations: 2.078 MB / 0.549 GB, free: 9.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4748, allocations: 0 / 0.549 GB, free: 9.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003821/0.4786, allocations: 0.9682 MB / 0.5499 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009921/0.4797, allocations: 133.4 kB / 0.55 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.492, allocations: 6.564 MB / 0.5564 GB, free: 1.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.4926, allocations: 0.929 MB / 0.5573 GB, free: 408 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005628/0.4932, allocations: 156.6 kB / 0.5575 GB, free: 248 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003768/0.4936, allocations: 199.4 kB / 0.5577 GB, free: 48 kB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4936, allocations: 4 kB / 0.5577 GB, free: 44 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03648/0.5301, allocations: 13.69 MB / 0.5711 GB, free: 2.551 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.89, allocations: 11.94 kB / 0.5711 GB, free: 2.539 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_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_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)