Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.001632/0.001632, 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.001906/0.001906, 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.584/1.584, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.1952/0.1952, allocations: 38.51 MB / 348.7 MB, free: 2.633 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.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.001913/0.001913, allocations: 67.91 kB / 487.1 MB, free: 22.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1346, allocations: 62.41 MB / 0.5367 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.0104/0.145, allocations: 6.633 MB / 0.5431 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003394/0.1484, allocations: 1.683 MB / 0.5448 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.1487, allocations: 39.62 kB / 0.5448 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005303/0.1493, allocations: 166.8 kB / 0.545 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.1503, allocations: 441.8 kB / 0.5454 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008168/0.1511, allocations: 351.4 kB / 0.5457 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00211/0.1532, allocations: 1.496 MB / 0.5472 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000553/0.1538, allocations: 317.8 kB / 0.5475 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.1552, allocations: 0.6268 MB / 0.5481 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.1563, allocations: 0.6971 MB / 0.5488 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.1565, allocations: 96 kB / 0.5489 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.1567, allocations: 100 kB / 0.549 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004607/0.1571, allocations: 419 kB / 0.5494 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005148/0.1576, allocations: 473.9 kB / 0.5498 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.159, allocations: 1.191 MB / 0.551 GB, free: 8.969 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.159, allocations: 0 / 0.551 GB, free: 8.969 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.159, allocations: 0 / 0.551 GB, free: 8.969 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.159, allocations: 0 / 0.551 GB, free: 8.969 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.00306/0.1621, allocations: 1.332 MB / 0.5523 GB, free: 7.574 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.1621, allocations: 8.031 kB / 0.5523 GB, free: 7.566 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001784/0.1623, allocations: 122.7 kB / 0.5524 GB, free: 7.438 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.1625, allocations: 100.4 kB / 0.5525 GB, free: 7.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.164, allocations: 0.7332 MB / 0.5532 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004707/0.1645, allocations: 342.8 kB / 0.5536 GB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.1646, allocations: 64 kB / 0.5536 GB, free: 6.117 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.1671, allocations: 1.141 MB / 0.5547 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.1671, allocations: 3.938 kB / 0.5547 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.719e-05/0.1672, allocations: 31.98 kB / 0.5548 GB, free: 4.902 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.1673, allocations: 37.28 kB / 0.5548 GB, free: 4.867 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002933/0.1703, allocations: 1.176 MB / 0.556 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006178/0.1764, allocations: 3.493 MB / 0.5594 GB, free: 100 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002683/0.1791, allocations: 0.9181 MB / 0.5603 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/0.1809, allocations: 0.6513 MB / 0.5609 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.508e-05/0.181, allocations: 8.469 kB / 0.5609 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00168/0.1827, allocations: 0.6772 MB / 0.5616 GB, free: 13.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=59): time 2.194e-06/0.1827, allocations: 4 kB / 0.5616 GB, free: 13.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=61): time 0.02127/0.2039, allocations: 5.672 MB / 0.5671 GB, free: 8.043 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.997e-05/0.204, allocations: 89.66 kB / 0.5672 GB, free: 7.938 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000758/0.2048, allocations: 469.9 kB / 0.5676 GB, free: 7.469 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.2049, allocations: 41.7 kB / 0.5677 GB, free: 7.422 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003159/0.2052, allocations: 332.8 kB / 0.568 GB, free: 7.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.2054, allocations: 210.2 kB / 0.5682 GB, free: 6.883 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002702/0.2057, allocations: 138.2 kB / 0.5683 GB, free: 6.742 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.2059, allocations: 374.8 kB / 0.5687 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.2071, allocations: 0.5012 MB / 0.5692 GB, free: 5.867 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.2084, allocations: 0.6297 MB / 0.5698 GB, free: 5.188 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007686/0.2161, allocations: 3.139 MB / 0.5729 GB, free: 1.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2161, allocations: 0 / 0.5729 GB, free: 1.973 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008595/0.2247, allocations: 2.491 MB / 0.5753 GB, free: 15.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/0.2249, allocations: 49.62 kB / 0.5753 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.2249, allocations: 7.984 kB / 0.5753 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002791/0.2277, allocations: 1.092 MB / 0.5764 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/0.2283, allocations: 107.8 kB / 0.5765 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0177/0.246, allocations: 6.87 MB / 0.5832 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008684/0.2469, allocations: 83.97 kB / 0.5833 GB, free: 7.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.777e-05/0.247, allocations: 39.97 kB / 0.5833 GB, free: 7.07 MB / 446.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: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005061/0.2475, allocations: 287.4 kB / 0.5836 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.2476, allocations: 59.62 kB / 0.5837 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008659/0.2562, allocations: 2.425 MB / 0.586 GB, free: 4.285 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.2563, allocations: 8 kB / 0.5861 GB, free: 4.277 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.2563, allocations: 0 / 0.5861 GB, free: 4.277 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.14e-05/0.2563, allocations: 7.969 kB / 0.5861 GB, free: 4.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.2669, allocations: 3.552 MB / 0.5895 GB, free: 0.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.2669, allocations: 0 / 0.5895 GB, free: 0.625 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.2674, allocations: 75.89 kB / 0.5896 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2676/0.535, allocations: 1.089 MB / 0.5907 GB, free: 51.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.5352, allocations: 17.61 kB / 0.5907 GB, free: 51.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01732/0.5525, allocations: 6.838 MB / 0.5974 GB, free: 49.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.5525, allocations: 2.438 kB / 0.5974 GB, free: 49.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/0.5634, allocations: 3.199 MB / 0.6005 GB, free: 49.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.5638, allocations: 221 kB / 0.6007 GB, free: 48.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.5639, allocations: 33.48 kB / 0.6007 GB, free: 48.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007976/0.5647, allocations: 91.97 kB / 0.6008 GB, free: 48.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004722/0.5651, allocations: 175.9 kB / 0.601 GB, free: 48.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-05/0.5652, allocations: 22.09 kB / 0.601 GB, free: 48.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003653/0.5656, allocations: 323.7 kB / 0.6013 GB, free: 48.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5656, allocations: 0.5 kB / 0.6013 GB, free: 48.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009482/0.5665, allocations: 224.4 kB / 0.6015 GB, free: 48.77 MB / 446.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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009635/0.5762, allocations: 3.771 MB / 0.6052 GB, free: 47.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004418/0.5806, allocations: 1.677 MB / 0.6068 GB, free: 46.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5806, allocations: 0 / 0.6068 GB, free: 46.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00319/0.5838, allocations: 1.083 MB / 0.6079 GB, free: 46.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009315/0.5847, allocations: 157.7 kB / 0.6081 GB, free: 46.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/0.6063, allocations: 9.875 MB / 0.6177 GB, free: 40.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.6068, allocations: 0.9919 MB / 0.6187 GB, free: 39.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004114/0.6072, allocations: 129.3 kB / 0.6188 GB, free: 39.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.6074, allocations: 235.4 kB / 0.619 GB, free: 39.06 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6074, allocations: 0 / 0.619 GB, free: 39.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04964/0.6571, allocations: 22.82 MB / 0.6413 GB, free: 16.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.25, allocations: 18.97 kB / 0.6413 GB, free: 16.43 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_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_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.602997848996893] Failed to read output from testmodel.py, exit status != 0: 13.350289721987792 13.361187394 13.199985394 Calling exit ...