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.001462/0.001462, allocations: 78.27 kB / 20.49 MB, free: 1.25 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.001658/0.001658, allocations: 163.3 kB / 23.75 MB, free: 4.215 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.54/1.54, allocations: 177.2 MB / 204.1 MB, free: 9.285 MB / 190.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.167/0.167, allocations: 29.43 MB / 289.9 MB, free: 3.402 MB / 270.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.00211/0.00211, allocations: 63.89 kB / 430.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3583, allocations: 62.46 MB / 492.9 MB, free: 1.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008938/0.3673, allocations: 6.243 MB / 499.1 MB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003384/0.3706, allocations: 1.609 MB / 0.489 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004762/0.3711, allocations: 43.62 kB / 0.489 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006223/0.3717, allocations: 154.8 kB / 0.4892 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.3728, allocations: 453.8 kB / 0.4896 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008001/0.3736, allocations: 347.5 kB / 0.49 GB, free: 9.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.3755, allocations: 1.52 MB / 0.4914 GB, free: 7.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004472/0.376, allocations: 242.2 kB / 0.4917 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.3775, allocations: 0.8493 MB / 0.4925 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001117/0.3786, allocations: 0.6698 MB / 0.4932 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001562/0.3788, allocations: 96 kB / 0.4932 GB, free: 5.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.379, allocations: 100 kB / 0.4933 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004811/0.3794, allocations: 430.9 kB / 0.4937 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005032/0.3799, allocations: 394.5 kB / 0.4941 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.3814, allocations: 1.191 MB / 0.4953 GB, free: 3.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3814, allocations: 0 / 0.4953 GB, free: 3.637 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3814, allocations: 0 / 0.4953 GB, free: 3.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.3814, allocations: 0 / 0.4953 GB, free: 3.637 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.002974/0.3844, allocations: 1.26 MB / 0.4965 GB, free: 2.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3844, allocations: 15.98 kB / 0.4965 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.3846, allocations: 100.4 kB / 0.4966 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.3862, allocations: 0.6649 MB / 0.4973 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000775/0.3869, allocations: 0.7483 MB / 0.498 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.3871, allocations: 64 kB / 0.4981 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00252/0.3896, allocations: 1.141 MB / 0.4992 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.3896, allocations: 0 / 0.4992 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.512e-05/0.3897, allocations: 24 kB / 0.4992 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/0.3899, allocations: 45.22 kB / 0.4993 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002812/0.3927, allocations: 1.172 MB / 0.5004 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/0.3984, allocations: 3.156 MB / 0.5035 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.4009, allocations: 0.9137 MB / 0.5044 GB, free: 9.973 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.4027, allocations: 0.6511 MB / 0.505 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.682e-05/0.4027, allocations: 8.5 kB / 0.505 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001635/0.4044, allocations: 0.684 MB / 0.5057 GB, free: 8.605 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.936e-06/0.4044, allocations: 0 / 0.5057 GB, free: 8.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01992/0.4243, allocations: 5.507 MB / 0.5111 GB, free: 3.059 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.4244, allocations: 89.61 kB / 0.5111 GB, free: 2.949 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00068/0.4251, allocations: 425.8 kB / 0.5116 GB, free: 2.527 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.4252, allocations: 41.7 kB / 0.5116 GB, free: 2.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003642/0.4256, allocations: 336.7 kB / 0.5119 GB, free: 2.148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002755/0.4258, allocations: 214.2 kB / 0.5121 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.4261, allocations: 134.3 kB / 0.5122 GB, free: 1.801 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.4263, allocations: 374.7 kB / 0.5126 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4276, allocations: 0.5341 MB / 0.5131 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.4289, allocations: 0.6665 MB / 0.5138 GB, free: 176 kB / 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.007421/0.4363, allocations: 3.072 MB / 0.5168 GB, free: 13.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.4363, allocations: 4 kB / 0.5168 GB, free: 13.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007797/0.4441, allocations: 2.514 MB / 0.5192 GB, free: 10.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.94e-05/0.4442, allocations: 49.69 kB / 0.5193 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.4442, allocations: 4 kB / 0.5193 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/0.4468, allocations: 1.086 MB / 0.5203 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/0.4474, allocations: 107.8 kB / 0.5204 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01665/0.4641, allocations: 6.644 MB / 0.5269 GB, free: 2.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.465, allocations: 87.89 kB / 0.527 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/0.4652, allocations: 47.91 kB / 0.5271 GB, free: 2.359 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.0008102/0.4661, allocations: 279.8 kB / 0.5273 GB, free: 2.074 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.4663, allocations: 55.62 kB / 0.5274 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008039/0.4743, allocations: 2.419 MB / 0.5297 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.4743, allocations: 4 kB / 0.5298 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.4743, allocations: 12.06 kB / 0.5298 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.4744, allocations: 3.984 kB / 0.5298 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009708/0.4841, allocations: 3.286 MB / 0.533 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.4841, allocations: 4 kB / 0.533 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/0.4845, allocations: 75.89 kB / 0.5331 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002578/0.4871, allocations: 1.098 MB / 0.5341 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.4872, allocations: 19.98 kB / 0.5341 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01633/0.5035, allocations: 6.635 MB / 0.5406 GB, free: 4.285 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5035, allocations: 4 kB / 0.5406 GB, free: 4.281 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009751/0.5133, allocations: 3.202 MB / 0.5438 GB, free: 1.035 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/0.5138, allocations: 143.8 kB / 0.5439 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.5139, allocations: 31.98 kB / 0.5439 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007728/0.5147, allocations: 95.86 kB / 0.544 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/0.5152, allocations: 172.2 kB / 0.5442 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.758e-05/0.5152, allocations: 19.98 kB / 0.5442 GB, free: 0.582 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004116/0.5156, allocations: 291.1 kB / 0.5445 GB, free: 304 kB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5156, allocations: 0 / 0.5445 GB, free: 304 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.001018/0.5167, allocations: 228 kB / 0.5447 GB, free: 76 kB / 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.0002545/0.5169, allocations: 127.2 kB / 0.5448 GB, free: 15.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004791/0.5217, allocations: 1.706 MB / 0.5465 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.5217, allocations: 0 / 0.5465 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003259/0.525, allocations: 1.079 MB / 0.5475 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009572/0.5259, allocations: 144.6 kB / 0.5477 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.5298, allocations: 1.705 MB / 0.5493 GB, free: 11.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.5304, allocations: 403.2 kB / 0.5497 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003922/0.5308, allocations: 120.9 kB / 0.5498 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.5309, allocations: 48.48 kB / 0.5499 GB, free: 10.63 MB / 462.1 MB Notification: Performance of SimCode: time 2.285e-06/0.5309, allocations: 0 / 0.5499 GB, free: 10.63 MB / 462.1 MB Notification: Performance of Templates: time 0.02736/0.5583, allocations: 15.57 MB / 0.5651 GB, free: 11.13 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: 5.756554089486599] Failed to read output from testmodel.py, exit status != 0: 0.5687411688268185 0.584027277 0.199161576 Calling exit ...