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.001496/0.001496, allocations: 99.66 kB / 21.18 MB, free: 0.6445 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.001678/0.001678, allocations: 210 kB / 24.48 MB, free: 3.938 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.496/1.496, allocations: 230.6 MB / 258.2 MB, free: 7.758 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.1849/0.1849, allocations: 38.56 MB / 353.2 MB, free: 12.3 MB / 286.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [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.002131/0.002131, allocations: 75.89 kB / 493.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3192, allocations: 62.45 MB / 0.5432 GB, free: 420 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008403/0.3276, allocations: 6.26 MB / 0.5493 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.3309, allocations: 1.617 MB / 0.5509 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003629/0.3313, allocations: 36.06 kB / 0.5509 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005312/0.3318, allocations: 155.7 kB / 0.551 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001013/0.3329, allocations: 452.7 kB / 0.5515 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000756/0.3336, allocations: 352.3 kB / 0.5518 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001688/0.3353, allocations: 1.511 MB / 0.5533 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003989/0.3357, allocations: 242.2 kB / 0.5535 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.3368, allocations: 0.64 MB / 0.5541 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009875/0.3378, allocations: 0.6565 MB / 0.5548 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.3379, allocations: 97.72 kB / 0.5549 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.3381, allocations: 98.31 kB / 0.555 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004593/0.3386, allocations: 433.8 kB / 0.5554 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004689/0.3391, allocations: 395.4 kB / 0.5558 GB, free: 7.289 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.3404, allocations: 1.203 MB / 0.5569 GB, free: 6.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3404, allocations: 0 / 0.5569 GB, free: 6.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3404, allocations: 3.938 kB / 0.5569 GB, free: 6.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.3404, allocations: 0 / 0.5569 GB, free: 6.078 MB / 398.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.002855/0.3433, allocations: 1.257 MB / 0.5582 GB, free: 4.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3433, allocations: 11.98 kB / 0.5582 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.3435, allocations: 104.3 kB / 0.5583 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.3451, allocations: 0.6572 MB / 0.5589 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007193/0.3459, allocations: 0.7522 MB / 0.5596 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.346, allocations: 67.98 kB / 0.5597 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/0.3485, allocations: 1.141 MB / 0.5608 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.3485, allocations: 0 / 0.5608 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.3486, allocations: 28 kB / 0.5609 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.3487, allocations: 41.28 kB / 0.5609 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.3516, allocations: 1.172 MB / 0.562 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005688/0.3573, allocations: 3.149 MB / 0.5651 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.3599, allocations: 0.9253 MB / 0.566 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001793/0.3617, allocations: 0.655 MB / 0.5667 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.3617, allocations: 4.5 kB / 0.5667 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001648/0.3634, allocations: 0.684 MB / 0.5673 GB, free: 11.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.335e-06/0.3634, allocations: 0 / 0.5673 GB, free: 11.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02026/0.3836, allocations: 5.507 MB / 0.5727 GB, free: 5.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.3837, allocations: 89.59 kB / 0.5728 GB, free: 5.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005811/0.3843, allocations: 421.8 kB / 0.5732 GB, free: 4.969 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.3844, allocations: 45.69 kB / 0.5732 GB, free: 4.918 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003046/0.3847, allocations: 332.7 kB / 0.5736 GB, free: 4.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.385, allocations: 218.2 kB / 0.5738 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/0.3853, allocations: 130.3 kB / 0.5739 GB, free: 4.242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.3855, allocations: 366.7 kB / 0.5742 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.3867, allocations: 0.538 MB / 0.5748 GB, free: 3.328 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.388, allocations: 0.6666 MB / 0.5754 GB, free: 2.617 MB / 414.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.007396/0.3954, allocations: 3.073 MB / 0.5784 GB, free: 15.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3954, allocations: 0 / 0.5784 GB, free: 15.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008479/0.4039, allocations: 2.514 MB / 0.5809 GB, free: 12.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-05/0.404, allocations: 52.34 kB / 0.5809 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.404, allocations: 7.938 kB / 0.5809 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002721/0.4067, allocations: 1.082 MB / 0.582 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006139/0.4073, allocations: 107.9 kB / 0.5821 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01704/0.4243, allocations: 6.647 MB / 0.5886 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008199/0.4252, allocations: 96.02 kB / 0.5887 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.804e-05/0.4253, allocations: 43.97 kB / 0.5887 GB, free: 4.797 MB / 430.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.0005008/0.4258, allocations: 287.1 kB / 0.589 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.4259, allocations: 55.62 kB / 0.589 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008479/0.4343, allocations: 2.419 MB / 0.5914 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.4344, allocations: 8 kB / 0.5914 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.4344, allocations: 3.938 kB / 0.5914 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.4344, allocations: 3.984 kB / 0.5914 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.4445, allocations: 3.297 MB / 0.5946 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.4445, allocations: 0 / 0.5946 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003958/0.4449, allocations: 79.89 kB / 0.5947 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002598/0.4475, allocations: 1.101 MB / 0.5958 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.4476, allocations: 15.98 kB / 0.5958 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01663/0.4642, allocations: 6.618 MB / 0.6023 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.4642, allocations: 3.938 kB / 0.6023 GB, free: 6.727 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/0.4742, allocations: 3.199 MB / 0.6054 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004859/0.4747, allocations: 147.5 kB / 0.6055 GB, free: 3.348 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.4748, allocations: 31.98 kB / 0.6056 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007948/0.4756, allocations: 95.86 kB / 0.6057 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004217/0.476, allocations: 168.2 kB / 0.6058 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.4761, allocations: 23.98 kB / 0.6058 GB, free: 3.035 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003664/0.4765, allocations: 291.1 kB / 0.6061 GB, free: 2.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4765, allocations: 4 kB / 0.6061 GB, free: 2.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008451/0.4773, allocations: 220 kB / 0.6063 GB, free: 2.531 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.0002037/0.4775, allocations: 141.6 kB / 0.6065 GB, free: 2.387 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004856/0.4824, allocations: 1.698 MB / 0.6081 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4824, allocations: 384 / 0.6081 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00338/0.4857, allocations: 1.094 MB / 0.6092 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008699/0.4866, allocations: 121.9 kB / 0.6093 GB, free: 15.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.4901, allocations: 1.783 MB / 0.6111 GB, free: 13.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.4906, allocations: 403.2 kB / 0.6114 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.4908, allocations: 47.44 kB / 0.6115 GB, free: 13.12 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4908, allocations: 0 / 0.6115 GB, free: 13.12 MB / 462.1 MB Notification: Performance of Templates: time 0.0202/0.511, allocations: 13.45 MB / 0.6246 GB, free: 15.7 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.692020983900875] Failed to read output from testmodel.py, exit status != 0: 0.5202276832424104 0.5358551469999999 0.19207283199999994 Calling exit ...