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.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.001415/0.001415, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001523/0.001523, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.59/1.59, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2058/0.2058, allocations: 38.51 MB / 348.7 MB, free: 2.617 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.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"}) [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.001914/0.001914, allocations: 63.91 kB / 487.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1271, allocations: 62.41 MB / 0.5367 GB, free: 7.574 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008921/0.136, allocations: 6.162 MB / 0.5427 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.1395, allocations: 1.445 MB / 0.5441 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004026/0.1399, allocations: 39.62 kB / 0.5441 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005973/0.1405, allocations: 138.9 kB / 0.5443 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.1416, allocations: 390 kB / 0.5446 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006211/0.1423, allocations: 191.6 kB / 0.5448 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.1434, allocations: 0.9227 MB / 0.5457 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003914/0.1438, allocations: 214.7 kB / 0.5459 GB, free: 14.05 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000733/0.1446, allocations: 434.2 kB / 0.5463 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007933/0.1454, allocations: 490.4 kB / 0.5468 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.683e-05/0.1454, allocations: 44 kB / 0.5468 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.1456, allocations: 48 kB / 0.5469 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003309/0.1459, allocations: 275.1 kB / 0.5472 GB, free: 12.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003998/0.1463, allocations: 318.4 kB / 0.5475 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009372/0.1472, allocations: 0.6885 MB / 0.5481 GB, free: 11.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1472, allocations: 0 / 0.5481 GB, free: 11.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1472, allocations: 0 / 0.5481 GB, free: 11.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1472, allocations: 0 / 0.5481 GB, free: 11.78 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001805/0.1491, allocations: 0.9636 MB / 0.5491 GB, free: 10.76 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.1491, allocations: 12.03 kB / 0.5491 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.1492, allocations: 90.7 kB / 0.5492 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.1493, allocations: 72.47 kB / 0.5492 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009761/0.1503, allocations: 0.5613 MB / 0.5498 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.1504, allocations: 40.94 kB / 0.5498 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-05/0.1505, allocations: 51.95 kB / 0.5499 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.1515, allocations: 0.6249 MB / 0.5505 GB, free: 9.227 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.1515, allocations: 0 / 0.5505 GB, free: 9.227 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.301e-05/0.1516, allocations: 27.92 kB / 0.5505 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001235/0.1517, allocations: 36.97 kB / 0.5505 GB, free: 9.164 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008795/0.1526, allocations: 0.5035 MB / 0.551 GB, free: 8.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.156, allocations: 2.215 MB / 0.5532 GB, free: 6.352 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009067/0.157, allocations: 476 kB / 0.5537 GB, free: 5.871 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006874/0.1576, allocations: 325.9 kB / 0.554 GB, free: 5.551 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.1577, allocations: 11.89 kB / 0.554 GB, free: 5.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.1577, allocations: 42.56 kB / 0.554 GB, free: 5.488 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.235e-06/0.1577, allocations: 0 / 0.554 GB, free: 5.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.003773/0.1615, allocations: 1.742 MB / 0.5557 GB, free: 3.672 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.1616, allocations: 89.05 kB / 0.5558 GB, free: 3.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005274/0.1621, allocations: 426 kB / 0.5562 GB, free: 3.141 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.1621, allocations: 33.7 kB / 0.5562 GB, free: 3.102 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.1624, allocations: 305 kB / 0.5565 GB, free: 2.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1626, allocations: 170.5 kB / 0.5567 GB, free: 2.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.1627, allocations: 98.2 kB / 0.5568 GB, free: 2.527 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.1629, allocations: 358.8 kB / 0.5571 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.1632, allocations: 193 kB / 0.5573 GB, free: 1.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000416/0.1637, allocations: 307.7 kB / 0.5576 GB, free: 1.629 MB / 414.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.002816/0.1665, allocations: 1.245 MB / 0.5588 GB, free: 328 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1665, allocations: 0 / 0.5588 GB, free: 328 kB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001277/0.1678, allocations: 0.7032 MB / 0.5595 GB, free: 15.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1678, allocations: 4 kB / 0.5595 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1678, allocations: 4 kB / 0.5595 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000425/0.1682, allocations: 140.8 kB / 0.5597 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000483/0.1687, allocations: 120 kB / 0.5598 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.172, allocations: 2.605 MB / 0.5623 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.1723, allocations: 24.03 kB / 0.5623 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.466e-05/0.1724, allocations: 23.98 kB / 0.5624 GB, free: 12.55 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[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.0003497/0.1727, allocations: 237.5 kB / 0.5626 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.171e-05/0.1728, allocations: 55.62 kB / 0.5626 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/0.174, allocations: 0.6464 MB / 0.5633 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1741, allocations: 4 kB / 0.5633 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.1741, allocations: 16.02 kB / 0.5633 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.1741, allocations: 8.016 kB / 0.5633 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.1764, allocations: 1.362 MB / 0.5646 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.1764, allocations: 4 kB / 0.5646 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.1767, allocations: 76 kB / 0.5647 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004248/0.1772, allocations: 140.8 kB / 0.5648 GB, free: 9.902 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.05e-05/0.1772, allocations: 23.98 kB / 0.5649 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003172/0.1804, allocations: 2.619 MB / 0.5674 GB, free: 7.121 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1804, allocations: 4 kB / 0.5674 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.1819, allocations: 0.981 MB / 0.5684 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.1821, allocations: 132.8 kB / 0.5685 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.625e-05/0.1822, allocations: 15.94 kB / 0.5685 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.1824, allocations: 19.98 kB / 0.5685 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-05/0.1825, allocations: 35.95 kB / 0.5686 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.1825, allocations: 15.98 kB / 0.5686 GB, free: 5.863 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003519/0.1829, allocations: 287.1 kB / 0.5689 GB, free: 5.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1829, allocations: 8 kB / 0.5689 GB, free: 5.574 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006941/0.1836, allocations: 144 kB / 0.569 GB, free: 5.434 MB / 430.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.001945/0.1855, allocations: 1.538 MB / 0.5705 GB, free: 3.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.1869, allocations: 0.6363 MB / 0.5711 GB, free: 3.199 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1869, allocations: 0 / 0.5711 GB, free: 3.199 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000708/0.1876, allocations: 419.8 kB / 0.5715 GB, free: 2.777 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.1884, allocations: 137.4 kB / 0.5717 GB, free: 2.645 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007279/0.1956, allocations: 5.132 MB / 0.5767 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.1963, allocations: 0.9292 MB / 0.5776 GB, free: 12.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003335/0.1966, allocations: 100.7 kB / 0.5777 GB, free: 12.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.1969, allocations: 199.4 kB / 0.5779 GB, free: 12.04 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.1969, allocations: 4 kB / 0.5779 GB, free: 12.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06285/0.2597, allocations: 11.98 MB / 0.5896 GB, free: 232 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.69, allocations: 4 kB / 0.5896 GB, free: 228 kB / 446.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.11792402600986] Failed to read output from testmodel.py, exit status != 0: 11.110971304005943 11.124687223 10.974416149 Calling exit ...