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.001854/0.001854, allocations: 112.8 kB / 17.06 MB, free: 5.773 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.001955/0.001955, allocations: 200 kB / 18.01 MB, free: 4.914 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.463/1.463, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1862/0.1862, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.89 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3315, allocations: 58.05 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006151/0.3377, allocations: 6.1 MB / 0.5096 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.3398, allocations: 1.407 MB / 0.5109 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002714/0.3401, allocations: 27.75 kB / 0.511 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004484/0.3406, allocations: 142.4 kB / 0.5111 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007546/0.3413, allocations: 375.5 kB / 0.5115 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.3419, allocations: 201 kB / 0.5117 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.343, allocations: 0.9244 MB / 0.5126 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.3435, allocations: 268.4 kB / 0.5128 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005753/0.3441, allocations: 408.4 kB / 0.5132 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006968/0.3448, allocations: 467.5 kB / 0.5136 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.684e-05/0.3449, allocations: 47.19 kB / 0.5137 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.345, allocations: 47.66 kB / 0.5137 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002895/0.3453, allocations: 259.2 kB / 0.514 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003275/0.3456, allocations: 333.8 kB / 0.5143 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008733/0.3465, allocations: 0.6717 MB / 0.515 GB, free: 408 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3465, allocations: 2.078 kB / 0.515 GB, free: 408 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3466, allocations: 0 / 0.515 GB, free: 408 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.3466, allocations: 3.938 kB / 0.515 GB, free: 404 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.001753/0.3483, allocations: 0.9678 MB / 0.5159 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3484, allocations: 14.58 kB / 0.5159 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.3485, allocations: 87.86 kB / 0.516 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.3486, allocations: 69.39 kB / 0.5161 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3497, allocations: 0.5615 MB / 0.5166 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.182e-05/0.3497, allocations: 45.14 kB / 0.5167 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3498, allocations: 48.81 kB / 0.5167 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.351, allocations: 0.6206 MB / 0.5173 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3511, allocations: 0.5312 kB / 0.5173 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.666e-05/0.3511, allocations: 21.62 kB / 0.5173 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.3513, allocations: 33.09 kB / 0.5174 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009141/0.3522, allocations: 0.5101 MB / 0.5179 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.3554, allocations: 2.226 MB / 0.52 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008523/0.3563, allocations: 497.7 kB / 0.5205 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007132/0.357, allocations: 355.4 kB / 0.5209 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.3571, allocations: 13.06 kB / 0.5209 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.3571, allocations: 42.22 kB / 0.5209 GB, free: 12.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.884e-06/0.3571, allocations: 0 / 0.5209 GB, free: 12.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003935/0.361, allocations: 1.762 MB / 0.5226 GB, free: 11.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.3611, allocations: 87.39 kB / 0.5227 GB, free: 11.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006088/0.3617, allocations: 421.3 kB / 0.5231 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.3618, allocations: 35.08 kB / 0.5232 GB, free: 11.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.3621, allocations: 293.1 kB / 0.5234 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.3622, allocations: 172 kB / 0.5236 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.3624, allocations: 95.84 kB / 0.5237 GB, free: 11.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.3626, allocations: 359.6 kB / 0.524 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.363, allocations: 190.8 kB / 0.5242 GB, free: 10.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/0.3634, allocations: 312.2 kB / 0.5245 GB, free: 10.61 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.002859/0.3663, allocations: 1.239 MB / 0.5257 GB, free: 10.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.3663, allocations: 1.219 kB / 0.5257 GB, free: 10.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001375/0.3677, allocations: 0.7152 MB / 0.5264 GB, free: 9.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3677, allocations: 6.938 kB / 0.5264 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.3677, allocations: 5.328 kB / 0.5264 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004467/0.3682, allocations: 138.1 kB / 0.5266 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004672/0.3687, allocations: 111.8 kB / 0.5267 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003501/0.3722, allocations: 2.61 MB / 0.5292 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/0.3726, allocations: 28.91 kB / 0.5292 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.3727, allocations: 25.19 kB / 0.5293 GB, free: 7.727 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.0004447/0.3731, allocations: 223.2 kB / 0.5295 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.917e-05/0.3732, allocations: 55.75 kB / 0.5295 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001275/0.3745, allocations: 0.6543 MB / 0.5302 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.3745, allocations: 6.031 kB / 0.5302 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3746, allocations: 3.297 kB / 0.5302 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.3746, allocations: 7.203 kB / 0.5302 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.3772, allocations: 1.38 MB / 0.5315 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3773, allocations: 2.062 kB / 0.5315 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003728/0.3776, allocations: 71.58 kB / 0.5316 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004739/0.3781, allocations: 150 kB / 0.5318 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.316e-05/0.3782, allocations: 11.89 kB / 0.5318 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/0.3815, allocations: 2.617 MB / 0.5343 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3816, allocations: 10.36 kB / 0.5343 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.3831, allocations: 0.9969 MB / 0.5353 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.3833, allocations: 124.3 kB / 0.5354 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.207e-05/0.3834, allocations: 13.5 kB / 0.5354 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.3837, allocations: 23.39 kB / 0.5355 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.004e-05/0.3838, allocations: 41.19 kB / 0.5355 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.3838, allocations: 19.19 kB / 0.5355 GB, free: 3.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003802/0.3842, allocations: 287.8 kB / 0.5358 GB, free: 3.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3842, allocations: 0 / 0.5358 GB, free: 3.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007385/0.385, allocations: 144 kB / 0.5359 GB, free: 3.316 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.001838/0.3868, allocations: 1.543 MB / 0.5374 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.388, allocations: 0.6553 MB / 0.5381 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3881, allocations: 0.9375 kB / 0.5381 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006942/0.3888, allocations: 444.6 kB / 0.5385 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/0.3895, allocations: 137.4 kB / 0.5386 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007197/0.3967, allocations: 5.139 MB / 0.5436 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007436/0.3975, allocations: 0.9292 MB / 0.5446 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003536/0.3979, allocations: 107.8 kB / 0.5447 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.3982, allocations: 193.9 kB / 0.5448 GB, free: 12.93 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3982, allocations: 0 / 0.5448 GB, free: 12.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04137/0.4396, allocations: 11.91 MB / 0.5565 GB, free: 1.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/11.02, allocations: 1.438 kB / 0.5565 GB, free: 1.48 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)