Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 173.5 kB / 16.76 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.735/2.735, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 93.05 kB / 271.3 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3332/0.3331, allocations: 38.07 MB / 357.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006676/0.0006679, allocations: 15.98 kB / 424 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5694/0.5701, allocations: 56.31 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2485/0.8187, allocations: 104.5 MB / 0.571 GB, free: 13.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004722/0.8193, allocations: 107.9 kB / 0.5712 GB, free: 13.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07808/0.8974, allocations: 17.49 MB / 0.5882 GB, free: 12.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.8975, allocations: 8 kB / 0.5882 GB, free: 12.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001089/0.8976, allocations: 12 kB / 0.5882 GB, free: 12.02 MB / 426.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.005597/0.9032, allocations: 1.21 MB / 0.5894 GB, free: 10.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.075e-05/0.9033, allocations: 8.031 kB / 0.5894 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009096/0.9042, allocations: 92 kB / 0.5895 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005072/0.9093, allocations: 1.002 MB / 0.5905 GB, free: 9.605 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009095/0.9103, allocations: 351.8 kB / 0.5908 GB, free: 9.215 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005109/0.9108, allocations: 64 kB / 0.5909 GB, free: 9.152 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005509/0.9164, allocations: 1.21 MB / 0.5921 GB, free: 7.898 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.749e-05/0.9165, allocations: 0 / 0.5921 GB, free: 7.898 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002578/0.9168, allocations: 27.98 kB / 0.5921 GB, free: 7.871 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.971e-05/0.9168, allocations: 19.94 kB / 0.5921 GB, free: 7.852 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005434/0.9223, allocations: 1.274 MB / 0.5934 GB, free: 6.578 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/0.9336, allocations: 3.555 MB / 0.5968 GB, free: 2.918 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004248/0.938, allocations: 1.042 MB / 0.5979 GB, free: 1.855 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002947/0.941, allocations: 0.741 MB / 0.5986 GB, free: 1.105 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.9412, allocations: 16.48 kB / 0.5986 GB, free: 1.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002667/0.9439, allocations: 0.7462 MB / 0.5993 GB, free: 336 kB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 6.863e-06/0.9439, allocations: 0 / 0.5993 GB, free: 336 kB / 426.7 MB Notification: Performance of matching and sorting (n=61): time 0.03383/0.9778, allocations: 7.038 MB / 0.6062 GB, free: 9.211 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.9779, allocations: 97.66 kB / 0.6063 GB, free: 9.098 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.979, allocations: 461.9 kB / 0.6067 GB, free: 8.637 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002894/0.9793, allocations: 41.7 kB / 0.6068 GB, free: 8.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000453/0.9797, allocations: 320.2 kB / 0.6071 GB, free: 8.273 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004298/0.9802, allocations: 205.2 kB / 0.6073 GB, free: 8.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.144e-05/0.9803, allocations: 16 kB / 0.6073 GB, free: 8.055 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002549/0.9806, allocations: 374.7 kB / 0.6076 GB, free: 7.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.9827, allocations: 0.552 MB / 0.6082 GB, free: 7.125 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002192/0.9849, allocations: 0.6765 MB / 0.6088 GB, free: 6.406 MB / 442.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.01282/0.9977, allocations: 3.362 MB / 0.6121 GB, free: 2.969 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.9978, allocations: 4 kB / 0.6121 GB, free: 2.965 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01452/1.012, allocations: 3.033 MB / 0.6151 GB, free: 15.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000167/1.013, allocations: 53.62 kB / 0.6151 GB, free: 15.85 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/1.013, allocations: 4 kB / 0.6152 GB, free: 15.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004974/1.018, allocations: 1.188 MB / 0.6163 GB, free: 14.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/1.019, allocations: 107.8 kB / 0.6164 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02831/1.047, allocations: 7.127 MB / 0.6234 GB, free: 7.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/1.048, allocations: 108 kB / 0.6235 GB, free: 7.188 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000239/1.049, allocations: 47.91 kB / 0.6235 GB, free: 7.141 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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[4],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.001023/1.05, allocations: 291.2 kB / 0.6238 GB, free: 6.848 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/1.05, allocations: 55.25 kB / 0.6239 GB, free: 6.793 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01373/1.064, allocations: 2.995 MB / 0.6268 GB, free: 3.781 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/1.064, allocations: 8 kB / 0.6268 GB, free: 3.773 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/1.064, allocations: 0 / 0.6268 GB, free: 3.773 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.08e-05/1.064, allocations: 3.984 kB / 0.6268 GB, free: 3.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01737/1.081, allocations: 4.114 MB / 0.6308 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.529e-05/1.082, allocations: 4 kB / 0.6308 GB, free: 15.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007912/1.082, allocations: 75.83 kB / 0.6309 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004438/1.087, allocations: 1.18 MB / 0.632 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002666/1.087, allocations: 23.98 kB / 0.6321 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02682/1.114, allocations: 7.087 MB / 0.639 GB, free: 7.055 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/1.114, allocations: 0 / 0.639 GB, free: 7.055 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01751/1.132, allocations: 3.829 MB / 0.6427 GB, free: 3.184 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008763/1.133, allocations: 220.3 kB / 0.6429 GB, free: 2.949 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00029/1.133, allocations: 35.92 kB / 0.643 GB, free: 2.914 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/1.134, allocations: 131.9 kB / 0.6431 GB, free: 2.785 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007097/1.135, allocations: 164.3 kB / 0.6432 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/1.135, allocations: 19.98 kB / 0.6433 GB, free: 2.605 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000783/1.136, allocations: 318.9 kB / 0.6436 GB, free: 2.297 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.136, allocations: 4 kB / 0.6436 GB, free: 2.293 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001955/1.138, allocations: 240.1 kB / 0.6438 GB, free: 2.059 MB / 474.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004734/1.138, allocations: 143 kB / 0.6439 GB, free: 1.91 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3676/1.506, allocations: 1.928 MB / 0.6458 GB, free: 144.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/1.506, allocations: 3 kB / 0.6458 GB, free: 144.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006439/1.512, allocations: 1.27 MB / 0.6471 GB, free: 144.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/1.514, allocations: 145.5 kB / 0.6472 GB, free: 144.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006451/1.521, allocations: 2.081 MB / 0.6492 GB, free: 143.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/1.522, allocations: 0.9966 MB / 0.6502 GB, free: 142.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004137/1.523, allocations: 46.2 kB / 0.6503 GB, free: 142.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/1.523, allocations: 0 / 0.6503 GB, free: 142.9 MB / 474.7 MB Notification: Performance of Templates: time 0.04465/1.567, allocations: 13.43 MB / 0.6634 GB, free: 142.3 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)