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.0008532/0.0008532, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001621/0.001621, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9304/0.9304, allocations: 177.1 MB / 204.3 MB, free: 5.703 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.2397/0.2397, allocations: 29.42 MB / 290.1 MB, free: 2.449 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.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: Performance of FrontEnd - loaded program: time 2.505e-06/2.505e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/2.052e-05, allocations: 2.281 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.00538/0.0054, allocations: 5.806 MB / 436 MB, free: 7.77 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.007598, allocations: 1.367 MB / 437.4 MB, free: 6.398 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003273/0.007925, allocations: 39.62 kB / 437.4 MB, free: 6.359 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004476/0.008373, allocations: 146.8 kB / 437.6 MB, free: 6.215 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007868/0.00916, allocations: 397.6 kB / 437.9 MB, free: 5.824 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.009644, allocations: 199.5 kB / 438.1 MB, free: 5.629 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.01083, allocations: 0.938 MB / 439.1 MB, free: 4.688 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002484/0.01108, allocations: 167.2 kB / 439.2 MB, free: 4.516 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007021/0.01178, allocations: 0.5452 MB / 439.8 MB, free: 3.969 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.01226, allocations: 442.8 kB / 440.2 MB, free: 3.535 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.87e-05/0.01232, allocations: 48 kB / 440.3 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.635e-05/0.0124, allocations: 51.94 kB / 440.3 MB, free: 3.438 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.01259, allocations: 279.2 kB / 440.6 MB, free: 3.164 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.01275, allocations: 219.5 kB / 440.8 MB, free: 2.949 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005199/0.01327, allocations: 0.6736 MB / 441.5 MB, free: 2.273 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.01327, allocations: 4 kB / 441.5 MB, free: 2.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01328, allocations: 0 / 441.5 MB, free: 2.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.01329, allocations: 0 / 441.5 MB, free: 2.27 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001175/0.01446, allocations: 0.8921 MB / 442.4 MB, free: 1.344 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.0145, allocations: 15.98 kB / 442.4 MB, free: 1.328 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.982e-05/0.01458, allocations: 90.7 kB / 442.5 MB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/0.01466, allocations: 68.52 kB / 442.5 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006765/0.01534, allocations: 0.4923 MB / 443 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.01537, allocations: 41.31 kB / 443.1 MB, free: 0.6016 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.289e-05/0.01545, allocations: 48.38 kB / 443.1 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1875/0.203, allocations: 0.6198 MB / 443.7 MB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.203, allocations: 4.625 kB / 443.8 MB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.2031, allocations: 18.12 kB / 443.8 MB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.2032, allocations: 34.12 kB / 443.8 MB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000657/0.2038, allocations: 0.5115 MB / 444.3 MB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.2057, allocations: 2.064 MB / 446.4 MB, free: 53.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004983/0.2062, allocations: 462.5 kB / 446.8 MB, free: 53.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003651/0.2066, allocations: 329.6 kB / 447.2 MB, free: 53.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.2066, allocations: 6.375 kB / 447.2 MB, free: 53.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.2066, allocations: 37.81 kB / 447.2 MB, free: 53.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 1.834e-06/0.2066, allocations: 0 / 447.2 MB, free: 53.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.002075/0.2087, allocations: 1.599 MB / 448.8 MB, free: 52.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.2087, allocations: 91.08 kB / 448.9 MB, free: 52.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.209, allocations: 427 kB / 449.3 MB, free: 52.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.209, allocations: 32.98 kB / 449.3 MB, free: 52.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.368e-05/0.2091, allocations: 298.2 kB / 449.6 MB, free: 51.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.895e-05/0.2092, allocations: 170.2 kB / 449.8 MB, free: 51.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.2093, allocations: 98.98 kB / 449.9 MB, free: 51.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.159e-05/0.2093, allocations: 361.2 kB / 450.2 MB, free: 51.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.2095, allocations: 184.5 kB / 450.4 MB, free: 51.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/0.2097, allocations: 313.7 kB / 450.7 MB, free: 51.02 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.00186/0.2115, allocations: 1.167 MB / 451.9 MB, free: 50.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2115, allocations: 3.938 kB / 451.9 MB, free: 50.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009834/0.2125, allocations: 0.702 MB / 452.6 MB, free: 50.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2125, allocations: 9.781 kB / 452.6 MB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.2125, allocations: 9.141 kB / 452.6 MB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003254/0.2129, allocations: 145.1 kB / 452.8 MB, free: 50.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.2132, allocations: 110 kB / 452.9 MB, free: 50.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.2154, allocations: 2.474 MB / 455.3 MB, free: 48.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.2157, allocations: 32.14 kB / 455.4 MB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.2158, allocations: 23.81 kB / 455.4 MB, free: 48.42 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: 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.0002572/0.216, allocations: 215.2 kB / 455.6 MB, free: 48.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.407e-05/0.2161, allocations: 57.88 kB / 455.7 MB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009574/0.217, allocations: 0.6573 MB / 456.3 MB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.217, allocations: 6.5 kB / 456.3 MB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2171, allocations: 0 / 456.3 MB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2171, allocations: 6.766 kB / 456.3 MB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.2189, allocations: 1.242 MB / 457.6 MB, free: 47.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2189, allocations: 3.219 kB / 457.6 MB, free: 47.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.2192, allocations: 77.45 kB / 457.7 MB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002337/0.2194, allocations: 147.9 kB / 457.8 MB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.2194, allocations: 17.12 kB / 457.8 MB, free: 47.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0014/0.2208, allocations: 2.494 MB / 460.3 MB, free: 45.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2208, allocations: 3.438 kB / 460.3 MB, free: 45.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007578/0.2216, allocations: 0.9869 MB / 461.3 MB, free: 44.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.2216, allocations: 43.98 kB / 461.3 MB, free: 44.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.2217, allocations: 17.31 kB / 461.4 MB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.2218, allocations: 20.09 kB / 461.4 MB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.2218, allocations: 41.7 kB / 461.4 MB, free: 44.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2219, allocations: 20.06 kB / 461.4 MB, free: 44.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001671/0.222, allocations: 285.7 kB / 461.7 MB, free: 44.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.222, allocations: 4 kB / 461.7 MB, free: 44.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000389/0.2224, allocations: 148.6 kB / 461.9 MB, free: 44.75 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: 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.000916/0.2233, allocations: 1.526 MB / 463.4 MB, free: 43.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006499/0.224, allocations: 0.6381 MB / 464 MB, free: 43.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.224, allocations: 0 / 464 MB, free: 43.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.2243, allocations: 424.4 kB / 464.4 MB, free: 43.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.2248, allocations: 128.5 kB / 464.6 MB, free: 43.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/0.2287, allocations: 5.056 MB / 469.6 MB, free: 40.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.2289, allocations: 329.4 kB / 469.9 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002/0.2291, allocations: 102.2 kB / 470 MB, free: 40.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.2292, allocations: 198.4 kB / 470.2 MB, free: 40.07 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2292, allocations: 0 / 470.2 MB, free: 40.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.2589, allocations: 13.12 MB / 483.4 MB, free: 38.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.116/7.375, allocations: 8.938 kB / 483.4 MB, free: 38.2 MB / 410.7 MB " [Timeout remaining time 653] (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: 9.432940729893744] Failed to read output from testmodel.py, exit status != 0: 7.463703739456832 7.476899009 7.461701758 Calling exit ...