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.001636/0.001636, allocations: 105.6 kB / 16.92 MB, free: 5.723 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.00184/0.00184, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.313/1.313, allocations: 222.9 MB / 241.5 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.03 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 60.7 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.0854, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007357/0.09279, allocations: 6.479 MB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00287/0.09569, allocations: 1.881 MB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003271/0.09603, allocations: 31.81 kB / 465.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.09721, allocations: 444.7 kB / 465.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007769/0.098, allocations: 413.9 kB / 466.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.09882, allocations: 351.2 kB / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.09984, allocations: 1.028 MB / 467.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006511/0.1005, allocations: 0.4965 MB / 468.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006025/0.1011, allocations: 462.2 kB / 468.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00076/0.1019, allocations: 0.5685 MB / 469.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.102, allocations: 68 kB / 469.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005304/0.1026, allocations: 271.6 kB / 469.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003312/0.1029, allocations: 371.1 kB / 469.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004363/0.1034, allocations: 425.9 kB / 470.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009517/0.1043, allocations: 1.024 MB / 471.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1043, allocations: 0 / 471.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1043, allocations: 0 / 471.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.1044, allocations: 0 / 471.2 MB, free: 9.684 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002052/0.1064, allocations: 1.121 MB / 472.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1065, allocations: 15.89 kB / 472.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.1066, allocations: 118.7 kB / 472.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007353/0.1073, allocations: 131.8 kB / 472.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1084, allocations: 0.5612 MB / 473.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.1084, allocations: 53.67 kB / 473.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/0.1086, allocations: 75.86 kB / 473.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.1101, allocations: 1.014 MB / 474.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.1101, allocations: 0 / 474.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-05/0.1102, allocations: 28 kB / 474.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002066/0.1104, allocations: 77.94 kB / 474.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.1119, allocations: 0.9797 MB / 475.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004685/0.1166, allocations: 3.272 MB / 478.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1177, allocations: 0.6801 MB / 479.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006044/0.1183, allocations: 430.4 kB / 479.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.1184, allocations: 17.42 kB / 479.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.1184, allocations: 39.12 kB / 479.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.435e-06/0.1184, allocations: 0 / 479.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.004029/0.1224, allocations: 2.431 MB / 482.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.1225, allocations: 85.67 kB / 482.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005493/0.1231, allocations: 437.8 kB / 482.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.1231, allocations: 37.7 kB / 482.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.1234, allocations: 363.7 kB / 483.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/0.1237, allocations: 260.2 kB / 483.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.124, allocations: 150.6 kB / 483.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1241, allocations: 374.7 kB / 483.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005476/0.1247, allocations: 341.8 kB / 484.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006804/0.1254, allocations: 0.5224 MB / 484.8 MB, free: 11.62 MB / 366.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.005052/0.1304, allocations: 2.245 MB / 487 MB, free: 9.281 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1305, allocations: 0 / 487 MB, free: 9.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001671/0.1321, allocations: 1.114 MB / 488.1 MB, free: 8.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1322, allocations: 8 kB / 488.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.1322, allocations: 7.984 kB / 488.1 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.1323, allocations: 40.78 kB / 488.2 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007745/0.1331, allocations: 191.7 kB / 488.4 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.1345, allocations: 1.496 MB / 489.9 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.135, allocations: 43.94 kB / 489.9 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.1351, allocations: 39.92 kB / 489.9 MB, free: 6.172 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[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.0004074/0.1355, allocations: 281.4 kB / 490.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1356, allocations: 63.25 kB / 490.3 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.1371, allocations: 0.9661 MB / 491.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/0.1372, allocations: 15.98 kB / 491.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.1372, allocations: 7.938 kB / 491.3 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.1372, allocations: 3.984 kB / 491.3 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003234/0.1404, allocations: 1.997 MB / 493.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.1405, allocations: 8.031 kB / 493.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.1412, allocations: 147.8 kB / 493.4 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.1413, allocations: 40.77 kB / 493.5 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-05/0.1413, allocations: 24 kB / 493.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.1424, allocations: 1.492 MB / 495 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.1424, allocations: 8 kB / 495 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.1443, allocations: 1.528 MB / 496.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1445, allocations: 144.3 kB / 496.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.905e-05/0.1446, allocations: 16 kB / 496.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/0.145, allocations: 39.95 kB / 496.7 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.1451, allocations: 64.36 kB / 496.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.1451, allocations: 24 kB / 496.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003257/0.1455, allocations: 299.1 kB / 497.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1455, allocations: 0 / 497.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007032/0.1462, allocations: 183.9 kB / 497.3 MB, free: 14.41 MB / 382.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.002275/0.1485, allocations: 2.13 MB / 499.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.1503, allocations: 1.173 MB / 0.4888 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.1503, allocations: 0 / 0.4888 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006727/0.151, allocations: 0.529 MB / 0.4894 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008289/0.1518, allocations: 151 kB / 0.4895 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00861/0.1604, allocations: 7.143 MB / 0.4965 GB, free: 2.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006061/0.1611, allocations: 1.009 MB / 0.4975 GB, free: 1.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000574/0.1616, allocations: 205.4 kB / 0.4977 GB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003747/0.162, allocations: 279.3 kB / 0.4979 GB, free: 1.254 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.162, allocations: 4 kB / 0.4979 GB, free: 1.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03657/0.1986, allocations: 14.28 MB / 0.5119 GB, free: 3.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.393/9.592, allocations: 12.78 kB / 0.5119 GB, free: 3.105 MB / 398.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)