Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001313/0.001313, allocations: 108 kB / 17.06 MB, free: 5.82 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: 195.9 kB / 18 MB, free: 4.957 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.448/1.448, 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.1987/0.1987, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 71.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3246, allocations: 58.05 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006898/0.3316, allocations: 6.479 MB / 0.5099 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003141/0.3348, allocations: 1.884 MB / 0.5118 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005329/0.3353, allocations: 34.09 kB / 0.5118 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.3366, allocations: 442.3 kB / 0.5122 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.3376, allocations: 413.9 kB / 0.5126 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009979/0.3386, allocations: 350.7 kB / 0.513 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.3402, allocations: 1.029 MB / 0.514 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.3409, allocations: 0.4919 MB / 0.5144 GB, free: 376 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007595/0.3417, allocations: 460.8 kB / 0.5149 GB, free: 168 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000901/0.3426, allocations: 0.5737 MB / 0.5154 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.3427, allocations: 66.41 kB / 0.5155 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007207/0.3435, allocations: 260.8 kB / 0.5158 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004593/0.3439, allocations: 364.3 kB / 0.5161 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006076/0.3446, allocations: 424.8 kB / 0.5165 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001693/0.3463, allocations: 1.047 MB / 0.5175 GB, free: 15.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3463, allocations: 0 / 0.5175 GB, free: 15.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3463, allocations: 4 kB / 0.5175 GB, free: 15.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.3463, allocations: 0 / 0.5175 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002754/0.3491, allocations: 1.146 MB / 0.5187 GB, free: 14.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.3491, allocations: 13.95 kB / 0.5187 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001889/0.3493, allocations: 121.3 kB / 0.5188 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008356/0.3502, allocations: 131.9 kB / 0.5189 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.3515, allocations: 0.6107 MB / 0.5195 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.792e-05/0.3516, allocations: 52.72 kB / 0.5196 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.3518, allocations: 80 kB / 0.5196 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001855/0.3537, allocations: 1.01 MB / 0.5206 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.765e-05/0.3537, allocations: 4.812 kB / 0.5206 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-05/0.3538, allocations: 30.45 kB / 0.5207 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002187/0.354, allocations: 72.19 kB / 0.5207 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/0.3558, allocations: 0.9797 MB / 0.5217 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005787/0.3616, allocations: 3.266 MB / 0.5249 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.3629, allocations: 0.6861 MB / 0.5255 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/0.3636, allocations: 430.4 kB / 0.526 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.678e-05/0.3637, allocations: 11.22 kB / 0.526 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.3637, allocations: 39.27 kB / 0.526 GB, free: 10.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.336e-06/0.3637, allocations: 0 / 0.526 GB, free: 10.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004554/0.3683, allocations: 2.452 MB / 0.5284 GB, free: 9.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.3684, allocations: 89.19 kB / 0.5285 GB, free: 9.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005659/0.369, allocations: 441.5 kB / 0.5289 GB, free: 8.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.15e-05/0.369, allocations: 38.95 kB / 0.5289 GB, free: 8.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.3693, allocations: 364.7 kB / 0.5293 GB, free: 8.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.3696, allocations: 273.7 kB / 0.5295 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.3699, allocations: 153.2 kB / 0.5297 GB, free: 8.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.3701, allocations: 376.3 kB / 0.53 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.3707, allocations: 342.6 kB / 0.5304 GB, free: 7.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007618/0.3714, allocations: 0.5155 MB / 0.5309 GB, free: 7.578 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005548/0.377, allocations: 2.239 MB / 0.5331 GB, free: 6.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.377, allocations: 1.344 kB / 0.5331 GB, free: 6.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001873/0.3789, allocations: 1.102 MB / 0.5341 GB, free: 5.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3789, allocations: 7.375 kB / 0.5342 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3789, allocations: 5.75 kB / 0.5342 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.3791, allocations: 42.98 kB / 0.5342 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000798/0.3799, allocations: 195.7 kB / 0.5344 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001416/0.3814, allocations: 1.5 MB / 0.5358 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005865/0.382, allocations: 36.34 kB / 0.5359 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.986e-05/0.382, allocations: 28.09 kB / 0.5359 GB, free: 4.102 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000542/0.3826, allocations: 283.6 kB / 0.5362 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.3828, allocations: 64.33 kB / 0.5362 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.3845, allocations: 0.9745 MB / 0.5372 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/0.3845, allocations: 18.19 kB / 0.5372 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3845, allocations: 5.094 kB / 0.5372 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.3845, allocations: 3.984 kB / 0.5372 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.3881, allocations: 1.999 MB / 0.5392 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.3881, allocations: 9.438 kB / 0.5392 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006683/0.3888, allocations: 150.7 kB / 0.5393 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.3889, allocations: 41.53 kB / 0.5394 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.389, allocations: 23.02 kB / 0.5394 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.3903, allocations: 1.501 MB / 0.5409 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.3903, allocations: 9.719 kB / 0.5409 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.3925, allocations: 1.53 MB / 0.5424 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002293/0.3928, allocations: 139.2 kB / 0.5425 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3929, allocations: 29.64 kB / 0.5425 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.3933, allocations: 30.59 kB / 0.5425 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3934, allocations: 58.16 kB / 0.5426 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.3935, allocations: 23.44 kB / 0.5426 GB, free: 15.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003929/0.3939, allocations: 307.5 kB / 0.5429 GB, free: 14.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.234e-06/0.3939, allocations: 0 / 0.5429 GB, free: 14.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000811/0.3947, allocations: 194.8 kB / 0.5431 GB, free: 14.85 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(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.002836/0.3975, allocations: 2.126 MB / 0.5452 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.3993, allocations: 0.9618 MB / 0.5461 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.3993, allocations: 0 / 0.5461 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007453/0.4, allocations: 0.5186 MB / 0.5466 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000968/0.401, allocations: 155.8 kB / 0.5468 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.413, allocations: 7.068 MB / 0.5537 GB, free: 3.711 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009074/0.414, allocations: 1.02 MB / 0.5547 GB, free: 2.656 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006457/0.4146, allocations: 193.4 kB / 0.5549 GB, free: 2.465 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000505/0.4151, allocations: 279.3 kB / 0.5551 GB, free: 2.191 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4152, allocations: 4 kB / 0.5551 GB, free: 2.188 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04925/0.4644, allocations: 14.6 MB / 0.5694 GB, free: 3.738 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.44, allocations: 8 kB / 0.5694 GB, free: 3.73 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.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_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)