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.001333/0.001333, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001561/0.001561, allocations: 211.4 kB / 23.73 MB, free: 4.41 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.573/1.573, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.1893/0.1893, allocations: 38.55 MB / 352.5 MB, free: 12.32 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.002149/0.002149, allocations: 63.89 kB / 493 MB, free: 4.199 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3992, allocations: 62.46 MB / 0.5424 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009152/0.4083, allocations: 6.263 MB / 0.5485 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004529/0.4128, allocations: 1.604 MB / 0.5501 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007189/0.4136, allocations: 36.75 kB / 0.5501 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007989/0.4144, allocations: 155.8 kB / 0.5503 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001404/0.4158, allocations: 460.6 kB / 0.5507 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009564/0.4167, allocations: 347.2 kB / 0.5511 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002008/0.4187, allocations: 1.505 MB / 0.5525 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004695/0.4192, allocations: 250.3 kB / 0.5528 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.4207, allocations: 0.6366 MB / 0.5534 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.4221, allocations: 0.6714 MB / 0.554 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.4223, allocations: 98.56 kB / 0.5541 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002635/0.4225, allocations: 98.19 kB / 0.5542 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005214/0.423, allocations: 425.1 kB / 0.5546 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005818/0.4236, allocations: 394.6 kB / 0.555 GB, free: 7.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.4251, allocations: 1.191 MB / 0.5562 GB, free: 6.086 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.4252, allocations: 4 kB / 0.5562 GB, free: 6.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4252, allocations: 0 / 0.5562 GB, free: 6.082 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.4252, allocations: 0 / 0.5562 GB, free: 6.082 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.003216/0.4284, allocations: 1.264 MB / 0.5574 GB, free: 4.773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/0.4284, allocations: 11.98 kB / 0.5574 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/0.4287, allocations: 104.4 kB / 0.5575 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.4304, allocations: 0.6572 MB / 0.5582 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007534/0.4311, allocations: 0.7483 MB / 0.5589 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.4313, allocations: 67.94 kB / 0.559 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.4338, allocations: 1.141 MB / 0.5601 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.4338, allocations: 0 / 0.5601 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.575e-05/0.4339, allocations: 31.94 kB / 0.5601 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.4341, allocations: 37.28 kB / 0.5601 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.437, allocations: 1.176 MB / 0.5613 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005763/0.4428, allocations: 3.161 MB / 0.5644 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002606/0.4454, allocations: 0.9137 MB / 0.5653 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.4471, allocations: 0.6472 MB / 0.5659 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.034e-05/0.4472, allocations: 4.5 kB / 0.5659 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001654/0.4489, allocations: 0.684 MB / 0.5666 GB, free: 11.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.465e-06/0.4489, allocations: 0 / 0.5666 GB, free: 11.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02053/0.4694, allocations: 5.51 MB / 0.572 GB, free: 5.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.358e-05/0.4695, allocations: 89.61 kB / 0.572 GB, free: 5.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006688/0.4702, allocations: 425.8 kB / 0.5725 GB, free: 4.965 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.4703, allocations: 45.7 kB / 0.5725 GB, free: 4.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/0.4706, allocations: 332.7 kB / 0.5728 GB, free: 4.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000249/0.4708, allocations: 218.2 kB / 0.573 GB, free: 4.371 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.4711, allocations: 126.3 kB / 0.5731 GB, free: 4.242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.4713, allocations: 374.7 kB / 0.5735 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.4726, allocations: 0.5381 MB / 0.574 GB, free: 3.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.474, allocations: 0.6587 MB / 0.5747 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.007773/0.4818, allocations: 3.08 MB / 0.5777 GB, free: 15.47 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.4818, allocations: 0 / 0.5777 GB, free: 15.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008441/0.4902, allocations: 2.51 MB / 0.5801 GB, free: 12.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.4903, allocations: 56.66 kB / 0.5802 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.4903, allocations: 4 kB / 0.5802 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002651/0.493, allocations: 1.086 MB / 0.5812 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.4935, allocations: 107.8 kB / 0.5813 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01764/0.5112, allocations: 6.653 MB / 0.5878 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009927/0.5122, allocations: 91.91 kB / 0.5879 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.5123, allocations: 39.97 kB / 0.588 GB, free: 4.793 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.0007501/0.513, allocations: 287.6 kB / 0.5882 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.5132, allocations: 59.62 kB / 0.5883 GB, free: 4.445 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008362/0.5215, allocations: 2.419 MB / 0.5907 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.5215, allocations: 8 kB / 0.5907 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5215, allocations: 3.938 kB / 0.5907 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.5216, allocations: 3.984 kB / 0.5907 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.5319, allocations: 3.293 MB / 0.5939 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.5319, allocations: 4 kB / 0.5939 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004227/0.5323, allocations: 75.89 kB / 0.594 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002619/0.5349, allocations: 1.101 MB / 0.595 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.263e-05/0.535, allocations: 19.98 kB / 0.5951 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01707/0.5521, allocations: 6.625 MB / 0.6015 GB, free: 6.715 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.5521, allocations: 0 / 0.6015 GB, free: 6.715 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/0.5624, allocations: 3.199 MB / 0.6047 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005586/0.5629, allocations: 143.5 kB / 0.6048 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.5631, allocations: 31.98 kB / 0.6048 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007447/0.5638, allocations: 95.86 kB / 0.6049 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004744/0.5643, allocations: 168.2 kB / 0.6051 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.928e-05/0.5644, allocations: 23.98 kB / 0.6051 GB, free: 3.027 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003915/0.5647, allocations: 295.1 kB / 0.6054 GB, free: 2.738 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5647, allocations: 0 / 0.6054 GB, free: 2.738 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001011/0.5658, allocations: 220 kB / 0.6056 GB, free: 2.523 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.0002358/0.566, allocations: 133.8 kB / 0.6057 GB, free: 2.387 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004998/0.571, allocations: 1.706 MB / 0.6074 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.571, allocations: 0 / 0.6074 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003405/0.5744, allocations: 1.083 MB / 0.6084 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009574/0.5754, allocations: 139.9 kB / 0.6086 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.5791, allocations: 1.711 MB / 0.6102 GB, free: 13.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.5796, allocations: 403.3 kB / 0.6106 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003937/0.58, allocations: 116.9 kB / 0.6107 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.5802, allocations: 43.42 kB / 0.6108 GB, free: 13.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5802, allocations: 0 / 0.6108 GB, free: 13.07 MB / 462.1 MB Notification: Performance of Templates: time 0.0289/0.6091, allocations: 16.45 MB / 0.6269 GB, free: 12.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: 5.981528917327523] Failed to read output from testmodel.py, exit status != 0: 0.6197850983589888 0.634728214 0.20631341 Calling exit ...