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.001661/0.001661, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.55/1.55, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001735/0.001735, allocations: 126.2 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1628/0.1628, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.107e-05/4.109e-05, allocations: 4 kB / 397.5 MB, free: 1.047 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3177, allocations: 53.23 MB / 450.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3436/0.6613, allocations: 95.91 MB / 0.5339 GB, free: 88.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.6617, allocations: 91.97 kB / 0.534 GB, free: 88.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0414/0.7031, allocations: 15.28 MB / 0.5489 GB, free: 80.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.7031, allocations: 0 / 0.5489 GB, free: 80.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.271e-05/0.7032, allocations: 12 kB / 0.5489 GB, free: 80.11 MB / 378.7 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.001335/0.7045, allocations: 0.8057 MB / 0.5497 GB, free: 79.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/0.7046, allocations: 12.03 kB / 0.5497 GB, free: 79.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.7047, allocations: 71.16 kB / 0.5498 GB, free: 79.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002312/0.707, allocations: 1.05 MB / 0.5508 GB, free: 78.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.7071, allocations: 37 kB / 0.5508 GB, free: 78.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.762e-05/0.7072, allocations: 56.53 kB / 0.5509 GB, free: 77.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007914/0.708, allocations: 0.618 MB / 0.5515 GB, free: 77.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.708, allocations: 4 kB / 0.5515 GB, free: 77.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.7081, allocations: 20 kB / 0.5515 GB, free: 77.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.7081, allocations: 16 kB / 0.5515 GB, free: 77.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006539/0.7087, allocations: 0.4958 MB / 0.552 GB, free: 76.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002437/0.7112, allocations: 2.245 MB / 0.5542 GB, free: 74.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006685/0.7119, allocations: 465.3 kB / 0.5546 GB, free: 73.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.7124, allocations: 341.6 kB / 0.555 GB, free: 73.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.7125, allocations: 8.703 kB / 0.555 GB, free: 73.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.7125, allocations: 42.56 kB / 0.555 GB, free: 73.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.394e-06/0.7125, allocations: 0 / 0.555 GB, free: 73.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001894/0.7144, allocations: 1.342 MB / 0.5563 GB, free: 72.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.7145, allocations: 85.14 kB / 0.5564 GB, free: 72.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.7148, allocations: 363.1 kB / 0.5567 GB, free: 71.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.7148, allocations: 29.7 kB / 0.5568 GB, free: 71.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.7149, allocations: 300.4 kB / 0.5571 GB, free: 71.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.89e-05/0.715, allocations: 165.6 kB / 0.5572 GB, free: 71.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.715, allocations: 12 kB / 0.5572 GB, free: 71.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.072e-05/0.7151, allocations: 358.8 kB / 0.5576 GB, free: 70.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.7154, allocations: 181.1 kB / 0.5577 GB, free: 70.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.7156, allocations: 299.7 kB / 0.558 GB, free: 70.34 MB / 378.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.001717/0.7173, allocations: 0.7458 MB / 0.5588 GB, free: 69.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.7174, allocations: 4 kB / 0.5588 GB, free: 69.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.000936/0.7183, allocations: 0.6836 MB / 0.5594 GB, free: 68.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.7183, allocations: 12.09 kB / 0.5594 GB, free: 68.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.7184, allocations: 3.938 kB / 0.5594 GB, free: 68.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003512/0.7187, allocations: 132.8 kB / 0.5596 GB, free: 68.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/0.7191, allocations: 107.9 kB / 0.5597 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/0.7212, allocations: 2.343 MB / 0.562 GB, free: 66.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.7216, allocations: 28.05 kB / 0.562 GB, free: 66.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/0.7216, allocations: 23.94 kB / 0.562 GB, free: 66.09 MB / 378.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: 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.0001112/0.7217, allocations: 144.6 kB / 0.5621 GB, free: 65.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.722e-05/0.7218, allocations: 47.44 kB / 0.5622 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009451/0.7227, allocations: 0.6422 MB / 0.5628 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.7228, allocations: 4 kB / 0.5628 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.7228, allocations: 0 / 0.5628 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.7228, allocations: 7.984 kB / 0.5628 GB, free: 65.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.7245, allocations: 1.342 MB / 0.5641 GB, free: 63.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.7245, allocations: 8.156 kB / 0.5641 GB, free: 63.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.7249, allocations: 71.89 kB / 0.5642 GB, free: 63.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003225/0.7252, allocations: 132.8 kB / 0.5643 GB, free: 63.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.7252, allocations: 16.08 kB / 0.5644 GB, free: 63.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001921/0.7272, allocations: 2.341 MB / 0.5666 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7272, allocations: 0 / 0.5666 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.7283, allocations: 1.035 MB / 0.5677 GB, free: 60 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.263e-05/0.7284, allocations: 124.5 kB / 0.5678 GB, free: 59.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.7285, allocations: 12.03 kB / 0.5678 GB, free: 59.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.7287, allocations: 20 kB / 0.5678 GB, free: 59.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.7288, allocations: 43.62 kB / 0.5678 GB, free: 59.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.7288, allocations: 16 kB / 0.5679 GB, free: 59.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002416/0.7291, allocations: 285.1 kB / 0.5681 GB, free: 59.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7291, allocations: 4 kB / 0.5681 GB, free: 59.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005731/0.7297, allocations: 156 kB / 0.5683 GB, free: 59.33 MB / 378.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: 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.0001766/0.7299, allocations: 119.1 kB / 0.5684 GB, free: 59.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009031/0.7308, allocations: 0.6369 MB / 0.569 GB, free: 58.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7308, allocations: 0 / 0.569 GB, free: 58.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00051/0.7313, allocations: 426.5 kB / 0.5694 GB, free: 58.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005584/0.7319, allocations: 118 kB / 0.5695 GB, free: 58.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.7333, allocations: 1.022 MB / 0.5705 GB, free: 56.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.7336, allocations: 0.9413 MB / 0.5715 GB, free: 55.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003111/0.7339, allocations: 100.7 kB / 0.5716 GB, free: 55.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.4e-05/0.734, allocations: 47.44 kB / 0.5716 GB, free: 55.83 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.7341, allocations: 0 / 0.5716 GB, free: 55.83 MB / 378.7 MB Notification: Performance of Templates: time 0.009937/0.744, allocations: 6.349 MB / 0.5778 GB, free: 49.49 MB / 378.7 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)