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.0008286/0.0008286, allocations: 79.7 kB / 20.66 MB, free: 3.883 MB / 18.57 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.0008703/0.0008703, allocations: 170.3 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.8803/0.8803, allocations: 177.2 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.2291/0.2291, allocations: 29.41 MB / 290.2 MB, free: 2.43 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 430.3 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.215e-05/2.33e-05, allocations: 8.391 kB / 430.3 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005167/0.005191, allocations: 6.223 MB / 436.5 MB, free: 7.355 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.007212, allocations: 1.605 MB / 438.1 MB, free: 5.746 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.007499, allocations: 43.62 kB / 438.1 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004198/0.007919, allocations: 158.7 kB / 438.3 MB, free: 5.547 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006648/0.008584, allocations: 457.4 kB / 438.7 MB, free: 5.098 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.009098, allocations: 375.2 kB / 439.1 MB, free: 4.73 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.01016, allocations: 1.485 MB / 440.6 MB, free: 3.242 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002704/0.01043, allocations: 242.2 kB / 440.8 MB, free: 2.996 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008616/0.01129, allocations: 0.8144 MB / 441.6 MB, free: 2.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006743/0.01196, allocations: 0.6314 MB / 442.3 MB, free: 1.547 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.01208, allocations: 96 kB / 442.4 MB, free: 1.453 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.01221, allocations: 100 kB / 442.5 MB, free: 1.355 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002756/0.01248, allocations: 422.8 kB / 442.9 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002644/0.01275, allocations: 339.3 kB / 443.2 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1607/0.1735, allocations: 1.23 MB / 444.4 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1735, allocations: 0 / 444.4 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1735, allocations: 0 / 444.4 MB, free: 45.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.095e-05/0.1735, allocations: 3.188 kB / 444.4 MB, free: 45.56 MB / 410.7 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.001589/0.1751, allocations: 1.255 MB / 445.7 MB, free: 44.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.1751, allocations: 13.52 kB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.127e-05/0.1752, allocations: 115.6 kB / 445.8 MB, free: 44.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.1753, allocations: 106.3 kB / 445.9 MB, free: 44.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007596/0.1761, allocations: 0.6636 MB / 446.6 MB, free: 44.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.1763, allocations: 0.7493 MB / 447.3 MB, free: 43.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.602e-05/0.1764, allocations: 65.39 kB / 447.4 MB, free: 43.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.1776, allocations: 1.143 MB / 448.6 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1776, allocations: 5.141 kB / 448.6 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.707e-05/0.1776, allocations: 29.66 kB / 448.6 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.909e-05/0.1777, allocations: 43.73 kB / 448.6 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.1791, allocations: 1.169 MB / 449.8 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.1816, allocations: 3.225 MB / 453 MB, free: 42.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1829, allocations: 0.9142 MB / 453.9 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008315/0.1837, allocations: 0.6529 MB / 454.6 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.361e-05/0.1838, allocations: 7.031 kB / 454.6 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007896/0.1846, allocations: 0.687 MB / 455.3 MB, free: 41.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 1.994e-06/0.1846, allocations: 0 / 455.3 MB, free: 41.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.009615/0.1942, allocations: 5.515 MB / 460.8 MB, free: 40.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.1942, allocations: 86.53 kB / 460.9 MB, free: 40.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.1945, allocations: 481 kB / 461.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.1945, allocations: 47.38 kB / 461.4 MB, free: 40.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.1946, allocations: 327.2 kB / 461.7 MB, free: 40.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.401e-05/0.1947, allocations: 212.9 kB / 461.9 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.1949, allocations: 130.8 kB / 462.1 MB, free: 39.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.233e-05/0.1949, allocations: 381 kB / 462.4 MB, free: 39.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.1955, allocations: 0.5337 MB / 463 MB, free: 39.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.1961, allocations: 0.6632 MB / 463.6 MB, free: 39.03 MB / 410.7 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.003594/0.1997, allocations: 3.069 MB / 466.7 MB, free: 38.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1997, allocations: 6.625 kB / 466.7 MB, free: 38.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003799/0.2035, allocations: 2.523 MB / 469.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.2036, allocations: 48.38 kB / 469.3 MB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2036, allocations: 3 kB / 469.3 MB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.2049, allocations: 1.084 MB / 470.4 MB, free: 37.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.2051, allocations: 114.6 kB / 470.5 MB, free: 37.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00801/0.2131, allocations: 6.668 MB / 477.1 MB, free: 34.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/0.2135, allocations: 85.06 kB / 477.2 MB, free: 34.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.2135, allocations: 43.17 kB / 477.3 MB, free: 34.35 MB / 410.7 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.0002648/0.2138, allocations: 292.7 kB / 477.6 MB, free: 34.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.2139, allocations: 64.67 kB / 477.6 MB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004504/0.2184, allocations: 2.414 MB / 480 MB, free: 33.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.2184, allocations: 6.5 kB / 480 MB, free: 33.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.2184, allocations: 1.188 kB / 480 MB, free: 33.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.2184, allocations: 7.219 kB / 480 MB, free: 33.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005338/0.2237, allocations: 3.369 MB / 483.4 MB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.2237, allocations: 2 kB / 483.4 MB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002102/0.2239, allocations: 74.59 kB / 483.5 MB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.2255, allocations: 1.101 MB / 484.6 MB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.2255, allocations: 23.06 kB / 484.6 MB, free: 32.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009036/0.2345, allocations: 6.655 MB / 491.3 MB, free: 29.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.2345, allocations: 4.594 kB / 491.3 MB, free: 29.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005215/0.2398, allocations: 3.201 MB / 494.5 MB, free: 28.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.24, allocations: 144.8 kB / 494.6 MB, free: 28.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.2401, allocations: 33.08 kB / 494.6 MB, free: 28.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.2404, allocations: 98.5 kB / 494.7 MB, free: 28.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.2406, allocations: 168 kB / 494.9 MB, free: 28.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.2407, allocations: 25.03 kB / 494.9 MB, free: 28.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002545/0.2409, allocations: 323.1 kB / 495.2 MB, free: 28.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2409, allocations: 6.75 kB / 495.3 MB, free: 28.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000655/0.2416, allocations: 222.7 kB / 495.5 MB, free: 28.38 MB / 410.7 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.004994/0.2466, allocations: 3.762 MB / 499.2 MB, free: 26.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.2489, allocations: 1.702 MB / 0.4892 GB, free: 25.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2489, allocations: 0 / 0.4892 GB, free: 25.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.2504, allocations: 1.095 MB / 0.4903 GB, free: 24.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005146/0.2509, allocations: 165.1 kB / 0.4904 GB, free: 24.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.262, allocations: 9.922 MB / 0.5001 GB, free: 15.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.2623, allocations: 403.4 kB / 0.5005 GB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.2625, allocations: 121.2 kB / 0.5006 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.2627, allocations: 234 kB / 0.5008 GB, free: 15.02 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2627, allocations: 0 / 0.5008 GB, free: 15.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.2942, allocations: 23.28 MB / 0.5236 GB, free: 7.957 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.047/8.341, allocations: 7.156 kB / 0.5236 GB, free: 7.953 MB / 426.7 MB " [Timeout remaining time 652] (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 os._exit(0), Time elapsed: 10.295186824630946] Failed to read output from testmodel.py, exit status != 0: 8.43491491721943 8.445058121 8.269724839 Calling exit ...