Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 174.2 kB / 16.76 MB, free: 4.945 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.000861/0.0008608, allocations: 89.41 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2058/0.2058, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000676/0.0006762, allocations: 11.98 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5022/0.5029, allocations: 56.32 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.6741, allocations: 111.2 MB / 0.5776 GB, free: 7.176 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.6746, allocations: 95.95 kB / 0.5777 GB, free: 7.082 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0651/0.7397, allocations: 21.84 MB / 0.599 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.7397, allocations: 3.938 kB / 0.599 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.29e-05/0.7398, allocations: 16 kB / 0.599 GB, free: 0.9648 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00227/0.7421, allocations: 1.013 MB / 0.6 GB, free: 15.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.7421, allocations: 8.031 kB / 0.6 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006962/0.7428, allocations: 127.8 kB / 0.6001 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.7446, allocations: 0.8261 MB / 0.6009 GB, free: 14.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.5e-05/0.7447, allocations: 54.42 kB / 0.601 GB, free: 14.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.7448, allocations: 60 kB / 0.601 GB, free: 14.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.7465, allocations: 1.003 MB / 0.602 GB, free: 13.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.7465, allocations: 7.984 kB / 0.602 GB, free: 13.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-05/0.7466, allocations: 24 kB / 0.602 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001574/0.7468, allocations: 69.22 kB / 0.6021 GB, free: 13.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.7484, allocations: 0.9387 MB / 0.603 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005307/0.7537, allocations: 3.209 MB / 0.6062 GB, free: 9.387 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.7549, allocations: 0.6908 MB / 0.6068 GB, free: 8.676 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/0.7556, allocations: 450.2 kB / 0.6073 GB, free: 8.234 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.648e-05/0.7557, allocations: 17.47 kB / 0.6073 GB, free: 8.215 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.7558, allocations: 43.12 kB / 0.6073 GB, free: 8.164 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 3.817e-06/0.7558, allocations: 0 / 0.6073 GB, free: 8.164 MB / 442.7 MB Notification: Performance of matching and sorting (n=79): time 0.004441/0.7602, allocations: 2.538 MB / 0.6098 GB, free: 5.535 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.7603, allocations: 89.66 kB / 0.6099 GB, free: 5.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.7609, allocations: 421.8 kB / 0.6103 GB, free: 5.004 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.7609, allocations: 45.64 kB / 0.6103 GB, free: 4.953 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.7612, allocations: 339.9 kB / 0.6107 GB, free: 4.613 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002782/0.7615, allocations: 279.9 kB / 0.6109 GB, free: 4.336 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.7615, allocations: 16 kB / 0.6109 GB, free: 4.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.7618, allocations: 374.8 kB / 0.6113 GB, free: 3.945 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005423/0.7623, allocations: 357.7 kB / 0.6116 GB, free: 3.598 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006727/0.763, allocations: 0.5161 MB / 0.6121 GB, free: 3.023 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/0.7731, allocations: 3.572 MB / 0.6156 GB, free: 15.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.7731, allocations: 0 / 0.6156 GB, free: 15.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001897/0.775, allocations: 1.106 MB / 0.6167 GB, free: 14.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.775, allocations: 8 kB / 0.6167 GB, free: 14.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.7751, allocations: 4 kB / 0.6167 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/0.7752, allocations: 40.83 kB / 0.6168 GB, free: 14.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007701/0.776, allocations: 187.7 kB / 0.6169 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.7773, allocations: 1.397 MB / 0.6183 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005486/0.7779, allocations: 35.97 kB / 0.6183 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.948e-05/0.778, allocations: 35.98 kB / 0.6184 GB, free: 12.38 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * Array equations: 3 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000568/0.7786, allocations: 273.6 kB / 0.6186 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.7787, allocations: 59.25 kB / 0.6187 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.7804, allocations: 1.025 MB / 0.6197 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.31e-05/0.7805, allocations: 23.98 kB / 0.6197 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.7805, allocations: 3.984 kB / 0.6197 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.7805, allocations: 4 kB / 0.6197 GB, free: 10.96 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003575/0.7841, allocations: 2.081 MB / 0.6218 GB, free: 8.746 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/0.7841, allocations: 4 kB / 0.6218 GB, free: 8.742 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006811/0.7848, allocations: 159.7 kB / 0.6219 GB, free: 8.586 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.7849, allocations: 41.39 kB / 0.6219 GB, free: 8.543 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-05/0.785, allocations: 20 kB / 0.622 GB, free: 8.523 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.7863, allocations: 1.386 MB / 0.6233 GB, free: 7.008 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.7863, allocations: 12.06 kB / 0.6233 GB, free: 6.996 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.7886, allocations: 1.607 MB / 0.6249 GB, free: 5.293 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.7888, allocations: 144.3 kB / 0.625 GB, free: 5.133 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.508e-05/0.7889, allocations: 19.98 kB / 0.6251 GB, free: 5.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.7892, allocations: 51.88 kB / 0.6251 GB, free: 5.062 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.7894, allocations: 56.38 kB / 0.6252 GB, free: 5.008 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.663e-05/0.7894, allocations: 28 kB / 0.6252 GB, free: 4.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003715/0.7898, allocations: 287.1 kB / 0.6255 GB, free: 4.699 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7898, allocations: 0 / 0.6255 GB, free: 4.699 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008338/0.7907, allocations: 208 kB / 0.6257 GB, free: 4.496 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003492/0.791, allocations: 175 kB / 0.6258 GB, free: 4.316 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.7927, allocations: 0.9814 MB / 0.6268 GB, free: 3.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.7927, allocations: 4 kB / 0.6268 GB, free: 3.316 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007825/0.7935, allocations: 0.5544 MB / 0.6273 GB, free: 2.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.7945, allocations: 134.3 kB / 0.6275 GB, free: 2.621 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.7981, allocations: 2.465 MB / 0.6299 GB, free: 68 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007366/0.7989, allocations: 1.017 MB / 0.6309 GB, free: 15.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.7991, allocations: 59.44 kB / 0.6309 GB, free: 14.96 MB / 474.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7991, allocations: 0 / 0.6309 GB, free: 14.96 MB / 474.7 MB Notification: Performance of Templates: time 0.01828/0.8174, allocations: 12.09 MB / 0.6427 GB, free: 2.867 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)