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.00152/0.00152, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001694/0.001694, allocations: 209.8 kB / 24.49 MB, free: 4.137 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.399/1.399, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.1784/0.1784, allocations: 38.52 MB / 353.2 MB, free: 12.55 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.002132/0.002132, allocations: 63.91 kB / 493.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3149, allocations: 62.46 MB / 0.5432 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00812/0.323, allocations: 6.749 MB / 0.5498 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.3259, allocations: 1.708 MB / 0.5515 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002698/0.3262, allocations: 37.41 kB / 0.5515 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004798/0.3267, allocations: 158.7 kB / 0.5517 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000865/0.3275, allocations: 453.7 kB / 0.5521 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.3282, allocations: 346.9 kB / 0.5524 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001605/0.3298, allocations: 1.512 MB / 0.5539 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003851/0.3302, allocations: 258.8 kB / 0.5542 GB, free: 8.141 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009066/0.3311, allocations: 0.6322 MB / 0.5548 GB, free: 7.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009708/0.3321, allocations: 0.6871 MB / 0.5554 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.3322, allocations: 98.5 kB / 0.5555 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.3324, allocations: 98.91 kB / 0.5556 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004344/0.3328, allocations: 428.4 kB / 0.556 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004855/0.3333, allocations: 471.1 kB / 0.5565 GB, free: 6.766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.3346, allocations: 1.191 MB / 0.5577 GB, free: 5.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3346, allocations: 0 / 0.5577 GB, free: 5.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3346, allocations: 0 / 0.5577 GB, free: 5.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.3346, allocations: 0 / 0.5577 GB, free: 5.66 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.002794/0.3374, allocations: 1.255 MB / 0.5589 GB, free: 4.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3374, allocations: 11.98 kB / 0.5589 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.3376, allocations: 108.3 kB / 0.559 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.3391, allocations: 0.661 MB / 0.5596 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006853/0.3398, allocations: 0.7561 MB / 0.5604 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.3399, allocations: 71.98 kB / 0.5604 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.3422, allocations: 1.145 MB / 0.5616 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3422, allocations: 0 / 0.5616 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-05/0.3423, allocations: 24 kB / 0.5616 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001128/0.3424, allocations: 37.28 kB / 0.5616 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002749/0.3452, allocations: 1.172 MB / 0.5628 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005683/0.3509, allocations: 3.449 MB / 0.5661 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.3533, allocations: 0.9171 MB / 0.567 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.355, allocations: 0.6501 MB / 0.5677 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.747e-05/0.355, allocations: 8.5 kB / 0.5677 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001558/0.3566, allocations: 0.6918 MB / 0.5683 GB, free: 10.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.425e-06/0.3566, allocations: 0 / 0.5683 GB, free: 10.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01926/0.3759, allocations: 5.503 MB / 0.5737 GB, free: 4.762 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.367e-05/0.3759, allocations: 101.5 kB / 0.5738 GB, free: 4.645 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006179/0.3766, allocations: 469.9 kB / 0.5743 GB, free: 4.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.3767, allocations: 41.7 kB / 0.5743 GB, free: 4.129 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.377, allocations: 332.8 kB / 0.5746 GB, free: 3.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/0.3772, allocations: 214.2 kB / 0.5748 GB, free: 3.586 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/0.3774, allocations: 130.3 kB / 0.575 GB, free: 3.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.3776, allocations: 366.8 kB / 0.5753 GB, free: 3.086 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.3788, allocations: 0.509 MB / 0.5758 GB, free: 2.578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.3801, allocations: 0.622 MB / 0.5764 GB, free: 1.914 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.007462/0.3876, allocations: 3.062 MB / 0.5794 GB, free: 14.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.3876, allocations: 4 kB / 0.5794 GB, free: 14.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007562/0.3951, allocations: 2.493 MB / 0.5818 GB, free: 12.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.046e-05/0.3952, allocations: 49.69 kB / 0.5819 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.3952, allocations: 4 kB / 0.5819 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002475/0.3977, allocations: 1.086 MB / 0.5829 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005693/0.3983, allocations: 119.8 kB / 0.5831 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/0.414, allocations: 6.756 MB / 0.5897 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007487/0.4147, allocations: 83.95 kB / 0.5897 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.4148, allocations: 47.97 kB / 0.5898 GB, free: 4.012 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.0004461/0.4153, allocations: 275.5 kB / 0.59 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.4154, allocations: 59.62 kB / 0.5901 GB, free: 3.676 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/0.4231, allocations: 2.431 MB / 0.5925 GB, free: 1.234 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.4231, allocations: 4 kB / 0.5925 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4231, allocations: 4 kB / 0.5925 GB, free: 1.227 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.4231, allocations: 3.984 kB / 0.5925 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009635/0.4328, allocations: 3.53 MB / 0.5959 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.4328, allocations: 0 / 0.5959 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/0.4332, allocations: 79.83 kB / 0.596 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002455/0.4356, allocations: 1.094 MB / 0.5971 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.022e-05/0.4357, allocations: 19.98 kB / 0.5971 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/0.4513, allocations: 6.729 MB / 0.6037 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4513, allocations: 0 / 0.6037 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009299/0.4606, allocations: 3.202 MB / 0.6068 GB, free: 2.328 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004304/0.461, allocations: 147.5 kB / 0.6069 GB, free: 2.184 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.4611, allocations: 27.98 kB / 0.607 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000694/0.4618, allocations: 99.86 kB / 0.6071 GB, free: 2.059 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004081/0.4622, allocations: 180.1 kB / 0.6072 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/0.4623, allocations: 19.98 kB / 0.6073 GB, free: 1.863 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000393/0.4627, allocations: 330.8 kB / 0.6076 GB, free: 1.543 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4627, allocations: 0 / 0.6076 GB, free: 1.543 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000811/0.4635, allocations: 224 kB / 0.6078 GB, free: 1.324 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.0001915/0.4637, allocations: 127.2 kB / 0.6079 GB, free: 1.191 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00445/0.4681, allocations: 1.674 MB / 0.6095 GB, free: 15.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4681, allocations: 4 kB / 0.6095 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003165/0.4713, allocations: 1.079 MB / 0.6106 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008889/0.4722, allocations: 165.2 kB / 0.6108 GB, free: 14.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.4755, allocations: 1.783 MB / 0.6125 GB, free: 12.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006963/0.4762, allocations: 0.9967 MB / 0.6135 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.4763, allocations: 47.44 kB / 0.6135 GB, free: 11.32 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4763, allocations: 0 / 0.6135 GB, free: 11.32 MB / 462.1 MB Notification: Performance of Templates: time 0.01898/0.4953, allocations: 13.54 MB / 0.6267 GB, free: 13.82 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.489536328939721] Failed to read output from testmodel.py, exit status != 0: 0.5049762330017984 0.5187049349999999 0.181126699 Calling exit ...