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.001531/0.001531, allocations: 104.3 kB / 16.92 MB, free: 5.797 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.001759/0.001759, allocations: 191.5 kB / 17.85 MB, free: 5.188 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.359/1.359, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1898/0.1898, allocations: 38.02 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 64.61 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08814, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007061/0.09524, allocations: 6.075 MB / 463 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.0977, allocations: 1.426 MB / 464.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003642/0.09809, allocations: 27.81 kB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004552/0.09857, allocations: 138.9 kB / 464.6 MB, free: 260 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000903/0.09948, allocations: 382.1 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.09997, allocations: 199.5 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009121/0.1009, allocations: 0.915 MB / 466.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003484/0.1012, allocations: 282.7 kB / 466.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005493/0.1018, allocations: 398.3 kB / 466.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006485/0.1025, allocations: 470.4 kB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.816e-05/0.1026, allocations: 48 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.1027, allocations: 48 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.103, allocations: 263.3 kB / 467.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003399/0.1033, allocations: 322.3 kB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006214/0.1039, allocations: 0.6656 MB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1039, allocations: 0 / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1039, allocations: 0 / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.104, allocations: 0 / 468.6 MB, free: 12.3 MB / 350.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.001716/0.1057, allocations: 0.9437 MB / 469.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1057, allocations: 15.89 kB / 469.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.1059, allocations: 98.64 kB / 469.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.106, allocations: 68.09 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008748/0.1069, allocations: 0.5218 MB / 470.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.1069, allocations: 40.94 kB / 470.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.853e-05/0.107, allocations: 48 kB / 470.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008995/0.1079, allocations: 0.621 MB / 470.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1079, allocations: 0 / 470.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.6e-05/0.108, allocations: 27.98 kB / 470.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.1081, allocations: 28.98 kB / 471 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007707/0.1089, allocations: 0.5113 MB / 471.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.1117, allocations: 2.226 MB / 473.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007711/0.1125, allocations: 0.4893 MB / 474.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005932/0.1131, allocations: 354 kB / 474.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.1132, allocations: 4 kB / 474.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1132, allocations: 34.56 kB / 474.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.703e-06/0.1132, allocations: 4 kB / 474.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003121/0.1163, allocations: 1.753 MB / 476.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.1164, allocations: 81.11 kB / 476.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.1168, allocations: 417.9 kB / 476.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.1168, allocations: 37.83 kB / 476.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.117, allocations: 308.4 kB / 477.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.1171, allocations: 153.7 kB / 477.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.1173, allocations: 98.16 kB / 477.4 MB, free: 3.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1174, allocations: 362.8 kB / 477.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.1177, allocations: 185 kB / 477.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003338/0.118, allocations: 307.7 kB / 478.2 MB, free: 2.176 MB / 350.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.002491/0.1205, allocations: 1.249 MB / 479.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1205, allocations: 0 / 479.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001089/0.1216, allocations: 0.7069 MB / 480.2 MB, free: 140 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1217, allocations: 8 kB / 480.2 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1217, allocations: 4 kB / 480.2 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000377/0.1221, allocations: 149 kB / 480.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.1225, allocations: 107.9 kB / 480.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/0.1253, allocations: 2.618 MB / 483.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.1256, allocations: 31.95 kB / 483.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.1256, allocations: 20 kB / 483.1 MB, free: 13.06 MB / 366.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.0002662/0.1259, allocations: 218.6 kB / 483.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.274e-05/0.126, allocations: 55.28 kB / 483.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.1271, allocations: 0.6542 MB / 484.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.1271, allocations: 8 kB / 484.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1271, allocations: 0 / 484.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.1271, allocations: 11.86 kB / 484.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.1292, allocations: 1.373 MB / 485.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1292, allocations: 112 / 485.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.1296, allocations: 79.83 kB / 485.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003969/0.13, allocations: 148.7 kB / 485.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.1301, allocations: 20.09 kB / 485.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/0.1329, allocations: 2.626 MB / 488.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.133, allocations: 0 / 488.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.1344, allocations: 0.9924 MB / 489.3 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1345, allocations: 120.5 kB / 489.4 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.59e-05/0.1346, allocations: 12 kB / 489.4 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.1349, allocations: 23.97 kB / 489.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.135, allocations: 39.94 kB / 489.5 MB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.135, allocations: 16 kB / 489.5 MB, free: 6.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.1353, allocations: 287.1 kB / 489.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1353, allocations: 0 / 489.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006221/0.1359, allocations: 144 kB / 489.9 MB, free: 5.961 MB / 366.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.001661/0.1376, allocations: 1.542 MB / 491.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.1389, allocations: 0.7193 MB / 492.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1389, allocations: 4 kB / 492.2 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006947/0.1396, allocations: 438.4 kB / 492.6 MB, free: 3.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007657/0.1404, allocations: 126.2 kB / 492.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006393/0.1468, allocations: 5.182 MB / 497.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.1473, allocations: 0.9292 MB / 498.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00034/0.1477, allocations: 100.7 kB / 499 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.1479, allocations: 195.4 kB / 499.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1479, allocations: 0 / 499.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03292/0.1808, allocations: 11.72 MB / 0.4989 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.297/9.478, allocations: 7.938 kB / 0.4989 GB, free: 0.8438 MB / 382.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)