Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001608/0.001608, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.392/1.392, allocations: 194.3 MB / 203.1 MB, free: 9.25 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001592/0.001592, allocations: 117 kB / 248.1 MB, free: 6.355 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.168/0.168, allocations: 37.92 MB / 330.9 MB, free: 7.305 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.473e-05/1.475e-05, allocations: 4 kB / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.07938, allocations: 53.24 MB / 443.6 MB, free: 25.09 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3203/0.3998, allocations: 95.25 MB / 0.5262 GB, free: 9.453 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.4, allocations: 94.58 kB / 0.5263 GB, free: 9.441 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03768/0.4377, allocations: 15.13 MB / 0.5411 GB, free: 15.94 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4378, allocations: 0 / 0.5411 GB, free: 15.94 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.141e-05/0.4378, allocations: 16.16 kB / 0.5411 GB, free: 15.93 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001446/0.4393, allocations: 0.8066 MB / 0.5419 GB, free: 15.11 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4393, allocations: 8.031 kB / 0.5419 GB, free: 15.11 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.4395, allocations: 67.16 kB / 0.542 GB, free: 15.04 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.442, allocations: 1.048 MB / 0.543 GB, free: 14.14 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.4421, allocations: 16 kB / 0.543 GB, free: 14.13 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.205e-05/0.4422, allocations: 40.58 kB / 0.543 GB, free: 14.09 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007638/0.4429, allocations: 473.3 kB / 0.5435 GB, free: 13.77 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008181/0.4438, allocations: 0.5576 MB / 0.544 GB, free: 13.31 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.4438, allocations: 0 / 0.544 GB, free: 13.31 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.4439, allocations: 0 / 0.544 GB, free: 13.31 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.4439, allocations: 12 kB / 0.544 GB, free: 13.3 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.4468, allocations: 2.148 MB / 0.5461 GB, free: 11.43 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006935/0.4475, allocations: 454 kB / 0.5466 GB, free: 11.12 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005628/0.448, allocations: 319.7 kB / 0.5469 GB, free: 10.88 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.4481, allocations: 8 kB / 0.5469 GB, free: 10.88 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.4481, allocations: 46.38 kB / 0.5469 GB, free: 10.82 MB / 363.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.4481, allocations: 0 / 0.5469 GB, free: 10.82 MB / 363.1 MB Notification: Performance of matching and sorting (n=47): time 0.002017/0.4502, allocations: 1.261 MB / 0.5482 GB, free: 9.738 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.4502, allocations: 85.05 kB / 0.5482 GB, free: 9.637 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.4506, allocations: 323.4 kB / 0.5486 GB, free: 9.371 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.4506, allocations: 25.7 kB / 0.5486 GB, free: 9.34 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.4508, allocations: 301.1 kB / 0.5489 GB, free: 9.117 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.4509, allocations: 153.3 kB / 0.549 GB, free: 8.984 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.451, allocations: 0 / 0.549 GB, free: 8.984 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4511, allocations: 361.1 kB / 0.5494 GB, free: 8.645 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.4513, allocations: 172.2 kB / 0.5495 GB, free: 8.531 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.4516, allocations: 278.8 kB / 0.5498 GB, free: 8.277 MB / 363.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.001846/0.4535, allocations: 0.7291 MB / 0.5505 GB, free: 7.676 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.4535, allocations: 4 kB / 0.5505 GB, free: 7.672 MB / 363.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001137/0.4547, allocations: 0.6292 MB / 0.5511 GB, free: 7.172 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.4547, allocations: 8.031 kB / 0.5511 GB, free: 7.164 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.4547, allocations: 8 kB / 0.5511 GB, free: 7.156 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000361/0.4551, allocations: 133.2 kB / 0.5513 GB, free: 7.047 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.4555, allocations: 119.4 kB / 0.5514 GB, free: 6.934 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/0.458, allocations: 2.248 MB / 0.5536 GB, free: 4.926 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.4583, allocations: 12.14 kB / 0.5536 GB, free: 4.914 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.4584, allocations: 27.42 kB / 0.5536 GB, free: 4.891 MB / 363.1 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: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.4585, allocations: 124.3 kB / 0.5537 GB, free: 4.766 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.844e-05/0.4586, allocations: 43.44 kB / 0.5538 GB, free: 4.723 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.4597, allocations: 0.595 MB / 0.5543 GB, free: 4.277 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4597, allocations: 8 kB / 0.5544 GB, free: 4.27 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4597, allocations: 3.953 kB / 0.5544 GB, free: 4.266 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.4597, allocations: 3.984 kB / 0.5544 GB, free: 4.262 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.4615, allocations: 1.232 MB / 0.5556 GB, free: 3.215 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.4615, allocations: 0 / 0.5556 GB, free: 3.215 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.4619, allocations: 79.11 kB / 0.5556 GB, free: 3.141 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/0.4622, allocations: 131.2 kB / 0.5558 GB, free: 3.031 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.4623, allocations: 11.3 kB / 0.5558 GB, free: 3.023 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.4646, allocations: 2.243 MB / 0.558 GB, free: 1.016 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.4646, allocations: 7.938 kB / 0.558 GB, free: 1.008 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.4658, allocations: 0.9867 MB / 0.5589 GB, free: 172 kB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.4659, allocations: 120.4 kB / 0.559 GB, free: 36 kB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.112e-05/0.466, allocations: 8.031 kB / 0.5591 GB, free: 28 kB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.4663, allocations: 7.953 kB / 0.5591 GB, free: 20 kB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.87e-05/0.4664, allocations: 36.31 kB / 0.5591 GB, free: 15.99 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.4664, allocations: 15.88 kB / 0.5591 GB, free: 15.98 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0002708/0.4667, allocations: 252.8 kB / 0.5594 GB, free: 15.78 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4667, allocations: 0 / 0.5594 GB, free: 15.78 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0006102/0.4673, allocations: 139.9 kB / 0.5595 GB, free: 15.64 MB / 379.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001827/0.4675, allocations: 111.1 kB / 0.5596 GB, free: 15.53 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.0009493/0.4685, allocations: 0.6 MB / 0.5602 GB, free: 15.05 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.4685, allocations: 4 kB / 0.5602 GB, free: 15.05 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.469, allocations: 389.9 kB / 0.5606 GB, free: 14.74 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.4696, allocations: 103.7 kB / 0.5607 GB, free: 14.66 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.4712, allocations: 0.998 MB / 0.5616 GB, free: 13.72 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.4717, allocations: 0.9433 MB / 0.5626 GB, free: 12.77 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.4721, allocations: 104.6 kB / 0.5627 GB, free: 12.67 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.412e-05/0.4722, allocations: 39.38 kB / 0.5627 GB, free: 12.63 MB / 379.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4722, allocations: 0 / 0.5627 GB, free: 12.63 MB / 379.1 MB Notification: Performance of Templates: time 0.01075/0.4829, allocations: 5.756 MB / 0.5683 GB, free: 6.922 MB / 379.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)