Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",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.001474/0.001474, allocations: 109.8 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.001734/0.001734, 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.387/1.387, 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.1696/0.1696, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 71.89 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3241, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.00808/0.3322, allocations: 6.933 MB / 0.5104 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003487/0.3357, allocations: 2.023 MB / 0.5124 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004613/0.3362, allocations: 36.56 kB / 0.5124 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.3375, allocations: 498 kB / 0.5129 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001314/0.3388, allocations: 0.5702 MB / 0.5134 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009445/0.3398, allocations: 388.1 kB / 0.5138 GB, free: 452 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.3413, allocations: 1.405 MB / 0.5152 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001198/0.3425, allocations: 0.819 MB / 0.516 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.3437, allocations: 0.6379 MB / 0.5166 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.3449, allocations: 0.6832 MB / 0.5173 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002294/0.3452, allocations: 97.47 kB / 0.5174 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001027/0.3462, allocations: 0.5104 MB / 0.5179 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006228/0.3468, allocations: 0.5025 MB / 0.5183 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007999/0.3476, allocations: 0.5598 MB / 0.5189 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002422/0.3501, allocations: 1.541 MB / 0.5204 GB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3501, allocations: 0 / 0.5204 GB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3501, allocations: 4.656 kB / 0.5204 GB, free: 13.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.3501, allocations: 0 / 0.5204 GB, free: 13.74 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003438/0.3536, allocations: 1.603 MB / 0.522 GB, free: 12.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3536, allocations: 9.562 kB / 0.522 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00023/0.3539, allocations: 155.7 kB / 0.5221 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008828/0.3548, allocations: 178.7 kB / 0.5223 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.3562, allocations: 0.7268 MB / 0.523 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.3563, allocations: 178.8 kB / 0.5232 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.3566, allocations: 107 kB / 0.5233 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.3596, allocations: 1.532 MB / 0.5248 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.3596, allocations: 1.5 kB / 0.5248 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.3597, allocations: 38.64 kB / 0.5248 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/0.3599, allocations: 66.5 kB / 0.5249 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002426/0.3624, allocations: 1.167 MB / 0.526 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007519/0.3699, allocations: 4.784 MB / 0.5307 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003232/0.3732, allocations: 1.136 MB / 0.5318 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.3746, allocations: 0.5583 MB / 0.5323 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.353e-05/0.3746, allocations: 11.8 kB / 0.5324 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0016/0.3763, allocations: 0.7148 MB / 0.5331 GB, free: 5.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.955e-06/0.3763, allocations: 0 / 0.5331 GB, free: 5.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.008174/0.3844, allocations: 3.216 MB / 0.5362 GB, free: 4.035 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.232e-05/0.3846, allocations: 129.4 kB / 0.5363 GB, free: 3.898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007558/0.3853, allocations: 0.5942 MB / 0.5369 GB, free: 3.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.468e-05/0.3854, allocations: 55.56 kB / 0.537 GB, free: 3.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/0.3858, allocations: 466.4 kB / 0.5374 GB, free: 3.086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000261/0.3861, allocations: 280 kB / 0.5377 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000326/0.3864, allocations: 199.8 kB / 0.5379 GB, free: 2.734 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3866, allocations: 388.5 kB / 0.5382 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008007/0.3874, allocations: 486.2 kB / 0.5387 GB, free: 2.137 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.3884, allocations: 0.7493 MB / 0.5394 GB, free: 1.559 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.39, allocations: 1.253 MB / 0.5406 GB, free: 0.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.3901, allocations: 2.75 kB / 0.5406 GB, free: 0.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002472/0.3926, allocations: 1.591 MB / 0.5422 GB, free: 15.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.628e-05/0.3926, allocations: 64.45 kB / 0.5423 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001885/0.3945, allocations: 1.33 MB / 0.5436 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003852/0.3949, allocations: 113.9 kB / 0.5437 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007513/0.3957, allocations: 203.7 kB / 0.5439 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.3983, allocations: 3.361 MB / 0.5471 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007754/0.3991, allocations: 72.02 kB / 0.5472 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.3993, allocations: 79.88 kB / 0.5473 GB, free: 10.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005985/0.3999, allocations: 385.4 kB / 0.5477 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.4, allocations: 79.48 kB / 0.5477 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002796/0.4028, allocations: 1.263 MB / 0.549 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.341e-05/0.4029, allocations: 20 kB / 0.549 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4029, allocations: 3.938 kB / 0.549 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.4029, allocations: 7.922 kB / 0.549 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00466/0.4076, allocations: 2.436 MB / 0.5514 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.4076, allocations: 0 / 0.5514 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000748/0.4084, allocations: 139.8 kB / 0.5515 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001174/0.4085, allocations: 32.83 kB / 0.5515 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.13e-05/0.4086, allocations: 36 kB / 0.5516 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.4098, allocations: 1.638 MB / 0.5532 GB, free: 4.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4099, allocations: 4 kB / 0.5532 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004259/0.4141, allocations: 1.924 MB / 0.5551 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000748/0.4149, allocations: 244.5 kB / 0.5553 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.4152, allocations: 79.94 kB / 0.5554 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008162/0.416, allocations: 87.81 kB / 0.5554 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.4161, allocations: 56.58 kB / 0.5555 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.606e-05/0.4162, allocations: 31.97 kB / 0.5555 GB, free: 1.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005576/0.4168, allocations: 398.8 kB / 0.5559 GB, free: 1.594 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4168, allocations: 0 / 0.5559 GB, free: 1.594 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00112/0.4179, allocations: 236 kB / 0.5561 GB, free: 1.363 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004629/0.4226, allocations: 2.55 MB / 0.5586 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00291/0.4255, allocations: 1.634 MB / 0.5602 GB, free: 13.08 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.4255, allocations: 1.562 kB / 0.5602 GB, free: 13.08 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.4269, allocations: 0.6588 MB / 0.5609 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.428, allocations: 172.1 kB / 0.561 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.4412, allocations: 9.238 MB / 0.5701 GB, free: 2.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006931/0.4419, allocations: 1.114 MB / 0.5711 GB, free: 1.445 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006555/0.4426, allocations: 238.5 kB / 0.5714 GB, free: 1.207 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004531/0.4431, allocations: 335.3 kB / 0.5717 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4431, allocations: 3.938 kB / 0.5717 GB, free: 0.875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05021/0.4933, allocations: 18.83 MB / 0.5901 GB, free: 14.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.21, allocations: 19.17 kB / 0.5901 GB, free: 14.2 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)