Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.001149/0.001149, allocations: 105.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.001231/0.001231, 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1828/0.1828, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.91 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3356, allocations: 58.05 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008938/0.3446, allocations: 6.555 MB / 0.51 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003019/0.3476, allocations: 1.646 MB / 0.5116 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007204/0.3484, allocations: 29.66 kB / 0.5116 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006989/0.3491, allocations: 158.6 kB / 0.5118 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001298/0.3505, allocations: 443.9 kB / 0.5122 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009217/0.3514, allocations: 356 kB / 0.5126 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002044/0.3535, allocations: 1.506 MB / 0.514 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.3541, allocations: 409.9 kB / 0.5144 GB, free: 476 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.3553, allocations: 0.6175 MB / 0.515 GB, free: 200 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.3567, allocations: 0.6489 MB / 0.5157 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003152/0.357, allocations: 97.62 kB / 0.5158 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.3574, allocations: 98.94 kB / 0.5158 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000745/0.3582, allocations: 414.8 kB / 0.5162 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009252/0.3591, allocations: 472.5 kB / 0.5167 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.3608, allocations: 1.187 MB / 0.5179 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.3608, allocations: 1.188 kB / 0.5179 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3608, allocations: 0 / 0.5179 GB, free: 15.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.3609, allocations: 0 / 0.5179 GB, free: 15.09 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003549/0.3644, allocations: 1.332 MB / 0.5192 GB, free: 14.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.3645, allocations: 13.14 kB / 0.5192 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001979/0.3647, allocations: 119.5 kB / 0.5193 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.365, allocations: 96.67 kB / 0.5194 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.3668, allocations: 0.7386 MB / 0.5201 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004779/0.3673, allocations: 349 kB / 0.5204 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.3675, allocations: 69.39 kB / 0.5205 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/0.3701, allocations: 1.137 MB / 0.5216 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3702, allocations: 0 / 0.5216 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.982e-05/0.3703, allocations: 27.16 kB / 0.5216 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.3704, allocations: 42.48 kB / 0.5217 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003031/0.3735, allocations: 1.18 MB / 0.5228 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006043/0.3795, allocations: 3.48 MB / 0.5262 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002612/0.3822, allocations: 0.9551 MB / 0.5272 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.3839, allocations: 0.6909 MB / 0.5278 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.384, allocations: 6.875 kB / 0.5278 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001579/0.3856, allocations: 0.6893 MB / 0.5285 GB, free: 9.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 4.248e-06/0.3856, allocations: 3.984 kB / 0.5285 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02106/0.4067, allocations: 5.671 MB / 0.5341 GB, free: 6.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.4068, allocations: 90.02 kB / 0.5341 GB, free: 6.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008324/0.4076, allocations: 480.1 kB / 0.5346 GB, free: 6.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.4078, allocations: 39.36 kB / 0.5346 GB, free: 6.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003718/0.4082, allocations: 335.4 kB / 0.535 GB, free: 5.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/0.4085, allocations: 209.4 kB / 0.5352 GB, free: 5.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/0.4088, allocations: 133.1 kB / 0.5353 GB, free: 5.465 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4089, allocations: 367 kB / 0.5356 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.4101, allocations: 0.5118 MB / 0.5361 GB, free: 4.859 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.4114, allocations: 0.6268 MB / 0.5367 GB, free: 4.465 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007242/0.4186, allocations: 3.129 MB / 0.5398 GB, free: 2.848 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4187, allocations: 0 / 0.5398 GB, free: 2.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00776/0.4264, allocations: 2.507 MB / 0.5422 GB, free: 0.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.619e-05/0.4265, allocations: 49.91 kB / 0.5423 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.4265, allocations: 4 kB / 0.5423 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002424/0.4289, allocations: 1.085 MB / 0.5434 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.4295, allocations: 115.7 kB / 0.5435 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01624/0.4457, allocations: 6.863 MB / 0.5502 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000959/0.4467, allocations: 79.95 kB / 0.5502 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.4469, allocations: 47.91 kB / 0.5503 GB, free: 8.117 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005688/0.4475, allocations: 279.5 kB / 0.5506 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.4476, allocations: 67.56 kB / 0.5506 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008059/0.4557, allocations: 2.429 MB / 0.553 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4557, allocations: 8 kB / 0.553 GB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4558, allocations: 4 kB / 0.553 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4558, allocations: 0 / 0.553 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.4658, allocations: 3.56 MB / 0.5565 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.4658, allocations: 0 / 0.5565 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000412/0.4663, allocations: 79.89 kB / 0.5566 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/0.4687, allocations: 1.093 MB / 0.5576 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.913e-05/0.4688, allocations: 19.98 kB / 0.5576 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01629/0.4851, allocations: 6.837 MB / 0.5643 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.4851, allocations: 128 / 0.5643 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009995/0.4951, allocations: 3.196 MB / 0.5674 GB, free: 6.254 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006661/0.4958, allocations: 232.7 kB / 0.5677 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/0.4961, allocations: 35.92 kB / 0.5677 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009201/0.497, allocations: 103.8 kB / 0.5678 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004215/0.4975, allocations: 168.2 kB / 0.568 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-05/0.4975, allocations: 23.98 kB / 0.568 GB, free: 5.684 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004728/0.498, allocations: 322.9 kB / 0.5683 GB, free: 5.371 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.498, allocations: 0 / 0.5683 GB, free: 5.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001211/0.4992, allocations: 220 kB / 0.5685 GB, free: 5.156 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009973/0.5092, allocations: 3.776 MB / 0.5722 GB, free: 1.332 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004767/0.514, allocations: 1.731 MB / 0.5739 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.5141, allocations: 4 kB / 0.5739 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003358/0.5174, allocations: 1.114 MB / 0.575 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.5187, allocations: 156.2 kB / 0.5751 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0245/0.5432, allocations: 9.879 MB / 0.5848 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000992/0.5443, allocations: 0.9967 MB / 0.5857 GB, free: 3.168 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005498/0.5449, allocations: 125.1 kB / 0.5859 GB, free: 3.047 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004886/0.5454, allocations: 235.4 kB / 0.5861 GB, free: 2.816 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.5454, allocations: 0 / 0.5861 GB, free: 2.816 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05216/0.5975, allocations: 22.73 MB / 0.6083 GB, free: 12.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.65, allocations: 11.92 kB / 0.6083 GB, free: 12.28 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_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_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)