Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001209/0.001209, allocations: 110.2 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.001376/0.001376, allocations: 191 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.327/1.327, 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.1766/0.1766, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3374, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006256/0.3437, allocations: 6.089 MB / 0.5096 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.3458, allocations: 1.411 MB / 0.5109 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002738/0.3461, allocations: 23.81 kB / 0.511 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004323/0.3465, allocations: 141.4 kB / 0.5111 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007162/0.3473, allocations: 387.1 kB / 0.5115 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.3477, allocations: 199.4 kB / 0.5117 GB, free: 1.789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008318/0.3486, allocations: 0.9222 MB / 0.5126 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.3489, allocations: 273.3 kB / 0.5128 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005505/0.3495, allocations: 414.9 kB / 0.5132 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006554/0.3501, allocations: 472.4 kB / 0.5137 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/0.3502, allocations: 46.91 kB / 0.5137 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.3504, allocations: 47.88 kB / 0.5138 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002561/0.3506, allocations: 257.9 kB / 0.514 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002878/0.3509, allocations: 322.1 kB / 0.5143 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007105/0.3516, allocations: 0.6847 MB / 0.515 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3516, allocations: 0 / 0.515 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3517, allocations: 0 / 0.515 GB, free: 388 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.3517, allocations: 0 / 0.515 GB, free: 388 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001633/0.3533, allocations: 0.9648 MB / 0.5159 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3533, allocations: 10.38 kB / 0.5159 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.3535, allocations: 92.86 kB / 0.516 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.3536, allocations: 69.59 kB / 0.5161 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.3547, allocations: 0.5571 MB / 0.5166 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.3547, allocations: 41.06 kB / 0.5167 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3549, allocations: 49.03 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.356, allocations: 0.6278 MB / 0.5173 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.356, allocations: 1.25 kB / 0.5173 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-05/0.3561, allocations: 21.28 kB / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.3562, allocations: 33.23 kB / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008756/0.3571, allocations: 0.5051 MB / 0.5179 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003182/0.3603, allocations: 2.226 MB / 0.52 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008533/0.3612, allocations: 0.4919 MB / 0.5205 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006718/0.3618, allocations: 356 kB / 0.5209 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.3619, allocations: 8.703 kB / 0.5209 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.3619, allocations: 49.73 kB / 0.5209 GB, free: 12.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.853e-06/0.3619, allocations: 0 / 0.5209 GB, free: 12.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003361/0.3653, allocations: 1.755 MB / 0.5226 GB, free: 11.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.3654, allocations: 87.62 kB / 0.5227 GB, free: 11.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004977/0.3659, allocations: 424.6 kB / 0.5231 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.3659, allocations: 32.67 kB / 0.5232 GB, free: 11.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.3661, allocations: 295.8 kB / 0.5234 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3663, allocations: 173.1 kB / 0.5236 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3664, allocations: 94.95 kB / 0.5237 GB, free: 11.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3666, allocations: 361.2 kB / 0.524 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.3669, allocations: 186.3 kB / 0.5242 GB, free: 10.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.3673, allocations: 314.4 kB / 0.5245 GB, free: 10.6 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.002628/0.3699, allocations: 1.24 MB / 0.5257 GB, free: 10.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3699, allocations: 5.438 kB / 0.5257 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001198/0.3711, allocations: 0.7155 MB / 0.5264 GB, free: 9.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3712, allocations: 6.984 kB / 0.5264 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3712, allocations: 4.219 kB / 0.5264 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003935/0.3716, allocations: 134.9 kB / 0.5266 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.372, allocations: 115.2 kB / 0.5267 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002867/0.3749, allocations: 2.611 MB / 0.5292 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.3753, allocations: 25.05 kB / 0.5293 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.3754, allocations: 25.03 kB / 0.5293 GB, free: 7.715 MB / 398.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: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003335/0.3757, allocations: 226.3 kB / 0.5295 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-05/0.3758, allocations: 55.5 kB / 0.5295 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.377, allocations: 0.6516 MB / 0.5302 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.377, allocations: 5.25 kB / 0.5302 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.377, allocations: 7.266 kB / 0.5302 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.377, allocations: 7.234 kB / 0.5302 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.3794, allocations: 1.376 MB / 0.5315 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3794, allocations: 2.219 kB / 0.5315 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.3797, allocations: 75.08 kB / 0.5316 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004361/0.3802, allocations: 147.2 kB / 0.5318 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.09e-05/0.3802, allocations: 15.11 kB / 0.5318 GB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002803/0.3831, allocations: 2.623 MB / 0.5343 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.3831, allocations: 2.234 kB / 0.5343 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.3845, allocations: 0.9971 MB / 0.5353 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.3847, allocations: 132.3 kB / 0.5354 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.997e-05/0.3848, allocations: 14.5 kB / 0.5355 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.385, allocations: 17.61 kB / 0.5355 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.721e-05/0.3851, allocations: 41.36 kB / 0.5355 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.3851, allocations: 15.08 kB / 0.5355 GB, free: 3.523 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.3855, allocations: 292.7 kB / 0.5358 GB, free: 3.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3855, allocations: 0 / 0.5358 GB, free: 3.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006853/0.3862, allocations: 143.9 kB / 0.5359 GB, free: 3.332 MB / 398.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001654/0.3878, allocations: 1.531 MB / 0.5374 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.389, allocations: 0.6633 MB / 0.5381 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.389, allocations: 1.469 kB / 0.5381 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.3897, allocations: 440 kB / 0.5385 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007823/0.3904, allocations: 133.4 kB / 0.5386 GB, free: 1.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006518/0.397, allocations: 5.14 MB / 0.5437 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.3975, allocations: 0.932 MB / 0.5446 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003635/0.3979, allocations: 104.7 kB / 0.5447 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002577/0.3981, allocations: 197.8 kB / 0.5448 GB, free: 12.95 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3982, allocations: 4 kB / 0.5449 GB, free: 12.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03402/0.4322, allocations: 11.91 MB / 0.5565 GB, free: 1.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.934/10.37, allocations: 5.5 kB / 0.5565 GB, free: 1.484 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_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_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)