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.0008197/0.0008197, 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.001087/0.001087, allocations: 170.3 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.946/0.946, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2536/0.2536, allocations: 29.41 MB / 290.1 MB, free: 2.473 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.974e-06/1.974e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.592e-05/1.789e-05, allocations: 4.109 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005479/0.005497, allocations: 6.223 MB / 436.4 MB, free: 7.355 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.008024, allocations: 1.621 MB / 438 MB, free: 5.73 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004123/0.008436, allocations: 35.69 kB / 438.1 MB, free: 5.695 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004734/0.00891, allocations: 158.7 kB / 438.2 MB, free: 5.539 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008128/0.009722, allocations: 469.3 kB / 438.7 MB, free: 5.078 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006959/0.01042, allocations: 367.2 kB / 439.1 MB, free: 4.719 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001378/0.0118, allocations: 1.515 MB / 440.6 MB, free: 3.199 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.01216, allocations: 246.2 kB / 440.8 MB, free: 2.949 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.01355, allocations: 0.8182 MB / 441.6 MB, free: 2.129 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.01458, allocations: 0.6196 MB / 442.2 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001816/0.01476, allocations: 100 kB / 442.3 MB, free: 1.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.01495, allocations: 103.9 kB / 442.4 MB, free: 1.309 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003401/0.01529, allocations: 446.8 kB / 442.9 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003047/0.01559, allocations: 339.3 kB / 443.2 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1895/0.2051, allocations: 1.235 MB / 444.4 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2051, allocations: 3.375 kB / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2051, allocations: 0 / 444.5 MB, free: 45.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.963e-05/0.2052, 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.001586/0.2068, allocations: 1.237 MB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2068, allocations: 13.58 kB / 445.7 MB, free: 44.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.2069, allocations: 123.1 kB / 445.8 MB, free: 44.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.207, allocations: 99.56 kB / 445.9 MB, free: 44.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007841/0.2078, allocations: 0.6687 MB / 446.6 MB, free: 44.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.208, allocations: 0.7428 MB / 447.3 MB, free: 43.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.648e-05/0.2081, allocations: 69.45 kB / 447.4 MB, free: 43.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.2093, allocations: 1.144 MB / 448.5 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.2093, allocations: 3.141 kB / 448.5 MB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.2094, allocations: 33.64 kB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-05/0.2094, allocations: 36.48 kB / 448.6 MB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.2108, allocations: 1.175 MB / 449.8 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002621/0.2135, allocations: 3.228 MB / 453 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.2147, allocations: 0.9238 MB / 453.9 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008416/0.2155, allocations: 0.6476 MB / 454.6 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.228e-05/0.2156, allocations: 6.719 kB / 454.6 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007735/0.2164, allocations: 0.6838 MB / 455.3 MB, free: 41.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 1.794e-06/0.2164, allocations: 0 / 455.3 MB, free: 41.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.009323/0.2257, allocations: 5.512 MB / 460.8 MB, free: 40.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.2257, allocations: 89.78 kB / 460.9 MB, free: 40.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.226, allocations: 479.7 kB / 461.3 MB, free: 40.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.2261, allocations: 43.83 kB / 461.4 MB, free: 40.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.2262, allocations: 327.5 kB / 461.7 MB, free: 40.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.314e-05/0.2263, allocations: 212.3 kB / 461.9 MB, free: 39.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.2264, allocations: 130.2 kB / 462 MB, free: 39.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.331e-05/0.2265, allocations: 372.7 kB / 462.4 MB, free: 39.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006026/0.2271, allocations: 0.5403 MB / 462.9 MB, free: 39.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/0.2277, allocations: 0.6612 MB / 463.6 MB, free: 38.99 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.003413/0.2311, allocations: 3.078 MB / 466.7 MB, free: 38.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2311, allocations: 3.172 kB / 466.7 MB, free: 38.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003698/0.2348, allocations: 2.519 MB / 469.2 MB, free: 37.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.2349, allocations: 48.27 kB / 469.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.2349, allocations: 2.969 kB / 469.3 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.2361, allocations: 1.086 MB / 470.3 MB, free: 37.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.2363, allocations: 112.8 kB / 470.5 MB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008265/0.2446, allocations: 6.674 MB / 477.1 MB, free: 34.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003905/0.245, allocations: 87.08 kB / 477.2 MB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.2451, allocations: 38.34 kB / 477.3 MB, free: 34.33 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.000344/0.2454, allocations: 291.9 kB / 477.5 MB, free: 34.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.891e-05/0.2455, allocations: 65.64 kB / 477.6 MB, free: 34.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004828/0.2503, allocations: 2.415 MB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.2503, allocations: 7.25 kB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2503, allocations: 1.766 kB / 480 MB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.2503, allocations: 7.266 kB / 480 MB, free: 33.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005564/0.2559, allocations: 3.372 MB / 483.4 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.2559, allocations: 2.984 kB / 483.4 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.2561, allocations: 76.77 kB / 483.5 MB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001617/0.2577, allocations: 1.097 MB / 484.6 MB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-05/0.2578, allocations: 23.61 kB / 484.6 MB, free: 32.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008925/0.2667, allocations: 6.654 MB / 491.3 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2667, allocations: 2.219 kB / 491.3 MB, free: 29.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005256/0.272, allocations: 3.202 MB / 494.5 MB, free: 28.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.2722, allocations: 146.4 kB / 494.6 MB, free: 28.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.415e-05/0.2723, allocations: 31.42 kB / 494.6 MB, free: 28.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.2727, allocations: 91.8 kB / 494.7 MB, free: 28.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.2729, allocations: 172.8 kB / 494.9 MB, free: 28.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.753e-05/0.2729, allocations: 26.11 kB / 494.9 MB, free: 28.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002659/0.2732, allocations: 324 kB / 495.2 MB, free: 28.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2732, allocations: 3.562 kB / 495.2 MB, free: 28.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006671/0.2739, allocations: 223.4 kB / 495.5 MB, free: 28.36 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.005474/0.2794, allocations: 3.761 MB / 499.2 MB, free: 26.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.2819, allocations: 1.7 MB / 0.4892 GB, free: 25.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2819, allocations: 0 / 0.4892 GB, free: 25.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.2834, allocations: 1.1 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.0005817/0.284, allocations: 155.9 kB / 0.4904 GB, free: 24.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.2952, allocations: 9.935 MB / 0.5001 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.2955, allocations: 403.4 kB / 0.5005 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002332/0.2957, allocations: 118 kB / 0.5006 GB, free: 15.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.2959, allocations: 236.4 kB / 0.5008 GB, free: 14.94 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2959, allocations: 0 / 0.5008 GB, free: 14.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.3278, allocations: 23.16 MB / 0.5234 GB, free: 8.008 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.327, allocations: 11.38 kB / 0.5235 GB, free: 8 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.414397335611284] Failed to read output from testmodel.py, exit status != 0: 8.422769375145435 8.431074011 8.22423537 Calling exit ...