Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.001574/0.001574, allocations: 104.8 kB / 17.06 MB, free: 5.785 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.001793/0.001793, allocations: 195 kB / 18 MB, free: 4.945 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.437/1.437, 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.1768/0.1768, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.91 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3286, allocations: 58.05 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006387/0.335, allocations: 6.494 MB / 0.51 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002308/0.3374, allocations: 1.31 MB / 0.5112 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003648/0.3377, allocations: 27.66 kB / 0.5113 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.3381, allocations: 124.8 kB / 0.5114 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009275/0.339, allocations: 433.8 kB / 0.5118 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.3396, allocations: 231.6 kB / 0.512 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.3406, allocations: 1.121 MB / 0.5131 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005109/0.3411, allocations: 404.5 kB / 0.5135 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007273/0.3419, allocations: 0.5072 MB / 0.514 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.3427, allocations: 0.5221 MB / 0.5145 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.3428, allocations: 64.25 kB / 0.5146 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.3429, allocations: 65.28 kB / 0.5146 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003546/0.3433, allocations: 338 kB / 0.515 GB, free: 384 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003732/0.3437, allocations: 404.2 kB / 0.5153 GB, free: 140 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.3448, allocations: 0.9195 MB / 0.5162 GB, free: 15.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3448, allocations: 4 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3448, allocations: 4.438 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.3449, allocations: 0.5 kB / 0.5162 GB, free: 15.77 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002312/0.3472, allocations: 1.175 MB / 0.5174 GB, free: 14.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.3472, allocations: 9.594 kB / 0.5174 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.3474, allocations: 110.7 kB / 0.5175 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.3476, allocations: 87.67 kB / 0.5176 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.3487, allocations: 0.6118 MB / 0.5182 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.3489, allocations: 113.7 kB / 0.5183 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.349, allocations: 65.09 kB / 0.5184 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.3507, allocations: 0.8677 MB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3507, allocations: 5.141 kB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.892e-05/0.3508, allocations: 22.72 kB / 0.5192 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/0.3509, allocations: 45.17 kB / 0.5193 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.3522, allocations: 0.6176 MB / 0.5199 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.3563, allocations: 2.747 MB / 0.5226 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.3581, allocations: 0.9005 MB / 0.5234 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007817/0.3589, allocations: 318.2 kB / 0.5237 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.359, allocations: 4.266 kB / 0.5237 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007504/0.3597, allocations: 348.9 kB / 0.5241 GB, free: 11.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.595e-06/0.3598, allocations: 3.938 kB / 0.5241 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004423/0.3642, allocations: 2 MB / 0.526 GB, free: 9.934 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.3643, allocations: 116.2 kB / 0.5261 GB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006258/0.3649, allocations: 0.5116 MB / 0.5266 GB, free: 9.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.365, allocations: 40.09 kB / 0.5267 GB, free: 9.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.3652, allocations: 361.8 kB / 0.527 GB, free: 9.242 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.3654, allocations: 151.8 kB / 0.5272 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.3656, allocations: 121.4 kB / 0.5273 GB, free: 9.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3657, allocations: 368.9 kB / 0.5276 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003541/0.3661, allocations: 222.7 kB / 0.5279 GB, free: 8.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004468/0.3665, allocations: 401.5 kB / 0.5282 GB, free: 8.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000764/0.3673, allocations: 0.6191 MB / 0.5288 GB, free: 7.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3673, allocations: 5.312 kB / 0.5289 GB, free: 7.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001258/0.3686, allocations: 0.8931 MB / 0.5297 GB, free: 7.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.565e-05/0.3687, allocations: 50.22 kB / 0.5298 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3687, allocations: 4.375 kB / 0.5298 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003027/0.369, allocations: 97.17 kB / 0.5299 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/0.3694, allocations: 106.3 kB / 0.53 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/0.3721, allocations: 3.255 MB / 0.5331 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.3726, allocations: 29.66 kB / 0.5332 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.3727, allocations: 48.77 kB / 0.5332 GB, free: 4.324 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004594/0.3732, allocations: 275.5 kB / 0.5335 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.228e-05/0.3733, allocations: 58.84 kB / 0.5335 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.3749, allocations: 0.7092 MB / 0.5342 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3749, allocations: 4.906 kB / 0.5342 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3749, allocations: 10.16 kB / 0.5342 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3749, allocations: 1.125 kB / 0.5342 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.3775, allocations: 1.528 MB / 0.5357 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3775, allocations: 1.438 kB / 0.5357 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.3778, allocations: 57.22 kB / 0.5358 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000292/0.3781, allocations: 106.5 kB / 0.5359 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.3781, allocations: 17.11 kB / 0.5359 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.3806, allocations: 3.253 MB / 0.5391 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3806, allocations: 4.875 kB / 0.5391 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.3826, allocations: 1.067 MB / 0.5401 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.3829, allocations: 173.3 kB / 0.5403 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.383, allocations: 28.17 kB / 0.5403 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.3835, allocations: 38.94 kB / 0.5404 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.3836, allocations: 32.94 kB / 0.5404 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.3836, allocations: 18.45 kB / 0.5404 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003879/0.384, allocations: 360.5 kB / 0.5408 GB, free: 14.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.384, allocations: 4 kB / 0.5408 GB, free: 14.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007716/0.3848, allocations: 146.5 kB / 0.5409 GB, free: 14.14 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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,1,100.0%), (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.00244/0.3872, allocations: 1.65 MB / 0.5425 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.3889, allocations: 0.8985 MB / 0.5434 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3889, allocations: 0 / 0.5434 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009172/0.3898, allocations: 0.4999 MB / 0.5439 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008311/0.3907, allocations: 156.5 kB / 0.544 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007871/0.3985, allocations: 6.101 MB / 0.55 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005635/0.3991, allocations: 0.9682 MB / 0.5509 GB, free: 6.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000338/0.3995, allocations: 108.9 kB / 0.551 GB, free: 6.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002915/0.3998, allocations: 223.4 kB / 0.5513 GB, free: 5.945 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3998, allocations: 0 / 0.5513 GB, free: 5.945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05894/0.4587, allocations: 13.23 MB / 0.5642 GB, free: 8.895 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.15, allocations: 3.984 kB / 0.5642 GB, free: 8.891 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_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_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)