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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 127.4 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1898/0.1898, allocations: 38.51 MB / 348.7 MB, free: 2.59 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 63.91 kB / 487.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1198, allocations: 62.41 MB / 0.5367 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009331/0.1291, allocations: 6.552 MB / 0.5431 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004344/0.1335, allocations: 1.936 MB / 0.545 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005251/0.134, allocations: 43.62 kB / 0.545 GB, free: 15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.1355, allocations: 453.6 kB / 0.5454 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.1365, allocations: 421.9 kB / 0.5458 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1376, allocations: 347.2 kB / 0.5462 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.1391, allocations: 1.036 MB / 0.5472 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007101/0.1398, allocations: 424.4 kB / 0.5476 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009554/0.1408, allocations: 474.1 kB / 0.548 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009505/0.1417, allocations: 0.6074 MB / 0.5486 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.1418, allocations: 72 kB / 0.5487 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006498/0.1425, allocations: 275.6 kB / 0.549 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004377/0.1429, allocations: 379 kB / 0.5493 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000502/0.1434, allocations: 429.8 kB / 0.5497 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.1448, allocations: 1.051 MB / 0.5508 GB, free: 9.082 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1448, allocations: 0 / 0.5508 GB, free: 9.082 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1448, allocations: 0 / 0.5508 GB, free: 9.082 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.1448, allocations: 0 / 0.5508 GB, free: 9.082 MB / 414.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.002547/0.1473, allocations: 1.139 MB / 0.5519 GB, free: 7.887 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1474, allocations: 12.03 kB / 0.5519 GB, free: 7.875 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.1475, allocations: 126.8 kB / 0.552 GB, free: 7.742 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009216/0.1484, allocations: 164.2 kB / 0.5522 GB, free: 7.582 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.1496, allocations: 0.6083 MB / 0.5527 GB, free: 6.934 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.576e-05/0.1496, allocations: 49.69 kB / 0.5528 GB, free: 6.887 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.1498, allocations: 75.91 kB / 0.5529 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.1515, allocations: 1.014 MB / 0.5539 GB, free: 5.758 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.1515, allocations: 0 / 0.5539 GB, free: 5.758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.918e-05/0.1516, allocations: 35.97 kB / 0.5539 GB, free: 5.723 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002213/0.1518, allocations: 73.94 kB / 0.554 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.1535, allocations: 0.9758 MB / 0.5549 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005191/0.1586, allocations: 3.265 MB / 0.5581 GB, free: 1.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.1597, allocations: 0.6323 MB / 0.5587 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006486/0.1604, allocations: 386.4 kB / 0.5591 GB, free: 260 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.874e-05/0.1604, allocations: 8.547 kB / 0.5591 GB, free: 252 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.1605, allocations: 47.06 kB / 0.5591 GB, free: 196 kB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 2.244e-06/0.1605, allocations: 0 / 0.5591 GB, free: 196 kB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004253/0.1647, allocations: 2.45 MB / 0.5615 GB, free: 13.65 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.1648, allocations: 85.67 kB / 0.5616 GB, free: 13.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005517/0.1654, allocations: 445.8 kB / 0.562 GB, free: 13.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.061e-05/0.1654, allocations: 37.7 kB / 0.5621 GB, free: 13.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/0.1657, allocations: 368.4 kB / 0.5624 GB, free: 12.69 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002544/0.166, allocations: 269.7 kB / 0.5627 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.1662, allocations: 154.6 kB / 0.5628 GB, free: 12.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000241/0.1664, allocations: 378.7 kB / 0.5632 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005468/0.167, allocations: 337.8 kB / 0.5635 GB, free: 11.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007223/0.1677, allocations: 0.5224 MB / 0.564 GB, free: 10.96 MB / 430.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.00547/0.1732, allocations: 2.234 MB / 0.5662 GB, free: 8.645 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.1732, allocations: 3.938 kB / 0.5662 GB, free: 8.641 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001874/0.1751, allocations: 1.099 MB / 0.5673 GB, free: 7.516 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1751, allocations: 8 kB / 0.5673 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.1751, allocations: 8.062 kB / 0.5673 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.1753, allocations: 52.7 kB / 0.5674 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007731/0.176, allocations: 183.8 kB / 0.5675 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.1774, allocations: 1.5 MB / 0.569 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/0.1778, allocations: 35.97 kB / 0.569 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.955e-05/0.1779, allocations: 31.98 kB / 0.5691 GB, free: 5.555 MB / 430.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.0004439/0.1784, allocations: 285.4 kB / 0.5693 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.1785, allocations: 67.58 kB / 0.5694 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.1801, allocations: 0.97 MB / 0.5703 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.947e-05/0.1802, allocations: 16 kB / 0.5704 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1802, allocations: 3.938 kB / 0.5704 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.1802, allocations: 4.125 kB / 0.5704 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.1836, allocations: 2.016 MB / 0.5723 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/0.1836, allocations: 4 kB / 0.5723 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007092/0.1843, allocations: 147.8 kB / 0.5725 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.1844, allocations: 36.83 kB / 0.5725 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.1845, allocations: 24.48 kB / 0.5725 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.1858, allocations: 1.5 MB / 0.574 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.1858, allocations: 4 kB / 0.574 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.1879, allocations: 1.525 MB / 0.5755 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.1881, allocations: 148.7 kB / 0.5756 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.818e-05/0.1882, allocations: 16 kB / 0.5757 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.1885, allocations: 35.97 kB / 0.5757 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.1886, allocations: 64.36 kB / 0.5757 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.1887, allocations: 24 kB / 0.5758 GB, free: 14.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000359/0.189, allocations: 299.1 kB / 0.5761 GB, free: 13.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.189, allocations: 4 kB / 0.5761 GB, free: 13.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007224/0.1898, allocations: 187.9 kB / 0.5762 GB, free: 13.76 MB / 446.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.002753/0.1925, allocations: 2.128 MB / 0.5783 GB, free: 11.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.1942, allocations: 0.9116 MB / 0.5792 GB, free: 10.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1942, allocations: 4.188 kB / 0.5792 GB, free: 10.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007284/0.1949, allocations: 489.5 kB / 0.5797 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008817/0.1958, allocations: 158.1 kB / 0.5798 GB, free: 9.965 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.2059, allocations: 7.064 MB / 0.5867 GB, free: 2.516 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007878/0.2067, allocations: 1.005 MB / 0.5877 GB, free: 1.477 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005482/0.2072, allocations: 209.3 kB / 0.5879 GB, free: 1.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004205/0.2077, allocations: 279.3 kB / 0.5882 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2077, allocations: 4 kB / 0.5882 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.344/0.5517, allocations: 14.76 MB / 0.6026 GB, free: 49.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.58, allocations: 13.33 kB / 0.6026 GB, free: 49.18 MB / 446.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.638598249992356] Failed to read output from testmodel.py, exit status != 0: 11.674507811010699 11.694073994 11.545586635 Calling exit ...