Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.0008861/0.0008861, 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.001118/0.001118, 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.9353/0.9353, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2254/0.2254, allocations: 29.4 MB / 290.1 MB, free: 2.465 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.671e-05, allocations: 2.844 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008101/0.008128, allocations: 6.225 MB / 436.4 MB, free: 7.355 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.01022, allocations: 1.617 MB / 438.1 MB, free: 5.734 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002889/0.01051, allocations: 39.69 kB / 438.1 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.01097, allocations: 158.7 kB / 438.2 MB, free: 5.539 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007065/0.01167, allocations: 465.3 kB / 438.7 MB, free: 5.082 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.01221, allocations: 371.2 kB / 439.1 MB, free: 4.719 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.01357, allocations: 1.511 MB / 440.6 MB, free: 3.203 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.01386, allocations: 250.2 kB / 440.8 MB, free: 2.949 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008721/0.01473, allocations: 0.8144 MB / 441.6 MB, free: 2.133 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006346/0.01536, allocations: 0.6235 MB / 442.3 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.01546, allocations: 96 kB / 442.4 MB, free: 1.414 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.01558, allocations: 100 kB / 442.4 MB, free: 1.316 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.01585, allocations: 446.8 kB / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.01609, allocations: 343.3 kB / 443.2 MB, free: 0.543 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1818/0.1979, allocations: 1.23 MB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1979, allocations: 2 kB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1979, allocations: 3.469 kB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.606e-05/0.1979, allocations: 0 / 444.5 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.002224/0.2001, allocations: 1.242 MB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.2002, allocations: 13.08 kB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/0.2003, allocations: 114.4 kB / 445.8 MB, free: 44.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.2005, allocations: 104.8 kB / 445.9 MB, free: 44.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.2016, allocations: 0.6742 MB / 446.6 MB, free: 44.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.2019, allocations: 0.7448 MB / 447.3 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.202, allocations: 65.78 kB / 447.4 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.2035, allocations: 1.148 MB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.2035, allocations: 0 / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/0.2036, allocations: 26.75 kB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.2037, allocations: 40.41 kB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.2052, allocations: 1.174 MB / 449.8 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003556/0.2088, allocations: 3.23 MB / 453 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.2103, allocations: 0.9175 MB / 453.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008919/0.2112, allocations: 0.6481 MB / 454.6 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.2113, allocations: 9.75 kB / 454.6 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008329/0.2121, allocations: 0.6861 MB / 455.3 MB, free: 41.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 2.174e-06/0.2121, allocations: 0 / 455.3 MB, free: 41.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.01001/0.2221, allocations: 5.511 MB / 460.8 MB, free: 40.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.2222, allocations: 97.92 kB / 460.9 MB, free: 40.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003711/0.2225, allocations: 471.1 kB / 461.4 MB, free: 40.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.2226, allocations: 44.36 kB / 461.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.2227, allocations: 329.8 kB / 461.7 MB, free: 40.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.944e-05/0.2228, allocations: 213.5 kB / 461.9 MB, free: 39.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.223, allocations: 129.5 kB / 462.1 MB, free: 39.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.612e-05/0.223, allocations: 376.2 kB / 462.4 MB, free: 39.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006245/0.2237, allocations: 0.5338 MB / 463 MB, free: 39.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006418/0.2243, allocations: 0.6623 MB / 463.6 MB, free: 39 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.003805/0.2281, allocations: 3.072 MB / 466.7 MB, free: 38.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.2281, allocations: 0 / 466.7 MB, free: 38.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003936/0.232, allocations: 2.523 MB / 469.2 MB, free: 37.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.635e-05/0.2321, allocations: 51.78 kB / 469.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.2321, allocations: 3.062 kB / 469.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.2334, allocations: 1.079 MB / 470.3 MB, free: 37.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.2336, allocations: 113.3 kB / 470.5 MB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008374/0.242, allocations: 6.673 MB / 477.1 MB, free: 34.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005857/0.2426, allocations: 89.11 kB / 477.2 MB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.524e-05/0.2427, allocations: 39.45 kB / 477.3 MB, free: 34.32 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.0003911/0.2431, allocations: 286.7 kB / 477.5 MB, free: 34.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.2431, allocations: 63.45 kB / 477.6 MB, free: 34.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004629/0.2478, allocations: 2.418 MB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.2478, allocations: 7.594 kB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2478, allocations: 1 kB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.2478, allocations: 7.359 kB / 480 MB, free: 33.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005657/0.2534, allocations: 3.371 MB / 483.4 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.2534, allocations: 2.469 kB / 483.4 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.2537, allocations: 76.83 kB / 483.5 MB, free: 32.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/0.2552, allocations: 1.1 MB / 484.6 MB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.875e-05/0.2552, allocations: 18.94 kB / 484.6 MB, free: 32.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009265/0.2645, allocations: 6.666 MB / 491.3 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2645, allocations: 2.156 kB / 491.3 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005543/0.27, allocations: 3.198 MB / 494.5 MB, free: 28.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/0.2704, allocations: 144.4 kB / 494.6 MB, free: 28.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.608e-05/0.2704, allocations: 31.34 kB / 494.6 MB, free: 28.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.2708, allocations: 99.3 kB / 494.7 MB, free: 28.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003274/0.2711, allocations: 171.6 kB / 494.9 MB, free: 28.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.2712, allocations: 25.44 kB / 494.9 MB, free: 28.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003261/0.2715, allocations: 325.3 kB / 495.2 MB, free: 28.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2715, allocations: 0 / 495.2 MB, free: 28.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007665/0.2723, allocations: 227.4 kB / 495.5 MB, free: 28.35 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.005197/0.2775, allocations: 3.763 MB / 499.2 MB, free: 26.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002508/0.28, allocations: 1.698 MB / 0.4892 GB, free: 25.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.28, allocations: 0 / 0.4892 GB, free: 25.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.2816, allocations: 1.092 MB / 0.4903 GB, free: 24.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006457/0.2822, allocations: 159.2 kB / 0.4904 GB, free: 24.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.2944, allocations: 9.932 MB / 0.5001 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.2947, allocations: 403.4 kB / 0.5005 GB, free: 15.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003316/0.295, allocations: 125.1 kB / 0.5006 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.2952, allocations: 236.4 kB / 0.5008 GB, free: 14.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/0.2952, allocations: 0 / 0.5008 GB, free: 14.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03794/0.3332, allocations: 23.17 MB / 0.5235 GB, free: 8.004 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.388, allocations: 3.938 kB / 0.5235 GB, free: 8 MB / 426.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.496362854726613] Failed to read output from testmodel.py, exit status != 0: 8.488855459727347 8.506680179 8.305730479 Calling exit ...