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.00131/0.00131, allocations: 114.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.002008/0.002008, allocations: 189.4 kB / 18 MB, free: 5.098 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.487/1.487, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1882/0.1882, allocations: 38.03 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 63.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3362, allocations: 58.06 MB / 0.5036 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006556/0.3428, allocations: 6.555 MB / 0.51 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.3455, allocations: 1.655 MB / 0.5116 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004005/0.3459, allocations: 28.75 kB / 0.5117 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004926/0.3464, allocations: 150.4 kB / 0.5118 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009011/0.3473, allocations: 446.5 kB / 0.5122 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007458/0.3481, allocations: 352.4 kB / 0.5126 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.3497, allocations: 1.5 MB / 0.514 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.3502, allocations: 402.9 kB / 0.5144 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008415/0.351, allocations: 0.597 MB / 0.515 GB, free: 236 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009906/0.352, allocations: 0.644 MB / 0.5156 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.3522, allocations: 98.38 kB / 0.5157 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002318/0.3524, allocations: 102.6 kB / 0.5158 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005859/0.353, allocations: 420.6 kB / 0.5162 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006719/0.3537, allocations: 473.6 kB / 0.5167 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001674/0.3554, allocations: 1.182 MB / 0.5178 GB, free: 15.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3554, allocations: 1.125 kB / 0.5178 GB, free: 15.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3554, allocations: 0 / 0.5178 GB, free: 15.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.817e-05/0.3554, allocations: 0 / 0.5178 GB, free: 15.12 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.003058/0.3585, allocations: 1.329 MB / 0.5191 GB, free: 14.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3586, allocations: 13.73 kB / 0.5191 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.3587, allocations: 121.6 kB / 0.5193 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.359, allocations: 97.23 kB / 0.5193 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/0.3605, allocations: 0.7514 MB / 0.5201 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000499/0.361, allocations: 341.4 kB / 0.5204 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.3612, allocations: 65.48 kB / 0.5205 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002772/0.364, allocations: 1.14 MB / 0.5216 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.364, allocations: 1.062 kB / 0.5216 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.231e-05/0.3641, allocations: 27.89 kB / 0.5216 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001252/0.3642, allocations: 38.5 kB / 0.5216 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003015/0.3673, allocations: 1.174 MB / 0.5228 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006004/0.3733, allocations: 3.488 MB / 0.5262 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.376, allocations: 0.9646 MB / 0.5271 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/0.3779, allocations: 0.6868 MB / 0.5278 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.503e-05/0.378, allocations: 6.531 kB / 0.5278 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001643/0.3796, allocations: 0.6821 MB / 0.5285 GB, free: 9.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.515e-06/0.3796, allocations: 0 / 0.5285 GB, free: 9.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02155/0.4012, allocations: 5.686 MB / 0.534 GB, free: 6.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.4013, allocations: 90.42 kB / 0.5341 GB, free: 6.359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007952/0.4021, allocations: 475.7 kB / 0.5346 GB, free: 6.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.4023, allocations: 47.16 kB / 0.5346 GB, free: 6.023 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.4027, allocations: 327.9 kB / 0.5349 GB, free: 5.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002666/0.4029, allocations: 212.8 kB / 0.5351 GB, free: 5.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.4032, allocations: 131.2 kB / 0.5353 GB, free: 5.477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.4034, allocations: 369.1 kB / 0.5356 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.4048, allocations: 0.5042 MB / 0.5361 GB, free: 4.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.4061, allocations: 0.6307 MB / 0.5367 GB, free: 4.477 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.007765/0.4139, allocations: 3.136 MB / 0.5398 GB, free: 2.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4139, allocations: 1.188 kB / 0.5398 GB, free: 2.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008395/0.4223, allocations: 2.495 MB / 0.5422 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.4225, allocations: 49.69 kB / 0.5423 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.4225, allocations: 7.938 kB / 0.5423 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002704/0.4252, allocations: 1.086 MB / 0.5433 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006059/0.4258, allocations: 115.7 kB / 0.5434 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01772/0.4436, allocations: 6.855 MB / 0.5501 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009656/0.4445, allocations: 87.95 kB / 0.5502 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.4447, allocations: 39.97 kB / 0.5503 GB, free: 8.188 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.000696/0.4454, allocations: 279.5 kB / 0.5505 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002215/0.4457, allocations: 63.58 kB / 0.5506 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0089/0.4546, allocations: 2.433 MB / 0.553 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.4546, allocations: 8 kB / 0.553 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4546, allocations: 0 / 0.553 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.4546, allocations: 4.109 kB / 0.553 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/0.4657, allocations: 3.56 MB / 0.5565 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.4657, allocations: 3.984 kB / 0.5565 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004746/0.4662, allocations: 76.06 kB / 0.5565 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002746/0.469, allocations: 1.09 MB / 0.5576 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/0.4692, allocations: 19.98 kB / 0.5576 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01754/0.4867, allocations: 6.836 MB / 0.5643 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.4867, allocations: 7.938 kB / 0.5643 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/0.4977, allocations: 3.196 MB / 0.5674 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007994/0.4986, allocations: 232.7 kB / 0.5676 GB, free: 6.074 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003401/0.499, allocations: 31.98 kB / 0.5677 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.5, allocations: 99.8 kB / 0.5678 GB, free: 5.945 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005733/0.5006, allocations: 172.2 kB / 0.5679 GB, free: 5.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.5007, allocations: 23.98 kB / 0.568 GB, free: 5.754 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006374/0.5014, allocations: 326.8 kB / 0.5683 GB, free: 5.438 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5014, allocations: 0 / 0.5683 GB, free: 5.438 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001356/0.5028, allocations: 224 kB / 0.5685 GB, free: 5.219 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.01115/0.5139, allocations: 3.772 MB / 0.5722 GB, free: 1.398 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005555/0.5195, allocations: 1.727 MB / 0.5738 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.5196, allocations: 4 kB / 0.5739 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003663/0.5232, allocations: 1.122 MB / 0.5749 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.5245, allocations: 160.1 kB / 0.5751 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02628/0.5508, allocations: 9.871 MB / 0.5847 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009028/0.5517, allocations: 1.005 MB / 0.5857 GB, free: 3.227 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005188/0.5523, allocations: 125.2 kB / 0.5858 GB, free: 3.105 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004307/0.5527, allocations: 239.3 kB / 0.5861 GB, free: 2.871 MB / 446.1 MB Notification: Performance of SimCode: time 6.52e-07/0.5527, allocations: 0 / 0.5861 GB, free: 2.871 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06265/0.6154, allocations: 22.71 MB / 0.6082 GB, free: 12.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.4, allocations: 14.83 kB / 0.6083 GB, free: 12.35 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)