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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 113.5 kB / 17.02 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 195.1 kB / 17.96 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1811/0.1811, allocations: 37.99 MB / 309.2 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 63.91 kB / 431.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1632, allocations: 55.24 MB / 487 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.009763/0.173, allocations: 6.095 MB / 493.1 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.1765, allocations: 1.458 MB / 494.6 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000771/0.1773, allocations: 31.81 kB / 494.6 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008978/0.1782, allocations: 138.9 kB / 494.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001523/0.1798, allocations: 378 kB / 495.1 MB, free: 248 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007061/0.1805, allocations: 199.5 kB / 495.3 MB, free: 48 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.1819, allocations: 0.9265 MB / 496.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004613/0.1824, allocations: 274.7 kB / 496.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006112/0.183, allocations: 406.3 kB / 496.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006608/0.1836, allocations: 462.5 kB / 497.4 MB, free: 14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.629e-05/0.1837, allocations: 48 kB / 497.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.1838, allocations: 48 kB / 497.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000265/0.1841, allocations: 271.2 kB / 497.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.1844, allocations: 318.4 kB / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006664/0.1851, allocations: 0.6656 MB / 498.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1851, allocations: 4 kB / 498.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1851, allocations: 0 / 498.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.1852, allocations: 3.938 kB / 498.7 MB, free: 12.65 MB / 382.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.00175/0.1869, allocations: 0.9486 MB / 499.7 MB, free: 11.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.187, allocations: 11.89 kB / 499.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1871, allocations: 68.09 kB / 499.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009497/0.1881, allocations: 0.557 MB / 0.4886 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.355e-05/0.1881, allocations: 45.06 kB / 0.4886 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.63e-05/0.1882, allocations: 51.98 kB / 0.4887 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009396/0.1892, allocations: 0.6288 MB / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.1892, allocations: 3.984 kB / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.1893, allocations: 16 kB / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.1894, allocations: 40.97 kB / 0.4893 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007491/0.1901, allocations: 0.5074 MB / 0.4898 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00303/0.1932, allocations: 2.206 MB / 0.492 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008379/0.194, allocations: 497.1 kB / 0.4925 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006706/0.1947, allocations: 350.2 kB / 0.4928 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1948, allocations: 7.953 kB / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.1948, allocations: 46.48 kB / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.195e-06/0.1948, allocations: 0 / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003732/0.1985, allocations: 1.742 MB / 0.4945 GB, free: 4.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.1986, allocations: 89.05 kB / 0.4946 GB, free: 4.508 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005188/0.1992, allocations: 421.8 kB / 0.495 GB, free: 4.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.1992, allocations: 33.64 kB / 0.4951 GB, free: 4.047 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.1995, allocations: 296.5 kB / 0.4953 GB, free: 3.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.1997, allocations: 169.6 kB / 0.4955 GB, free: 3.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.1999, allocations: 102.2 kB / 0.4956 GB, free: 3.477 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.2001, allocations: 358.8 kB / 0.4959 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.2004, allocations: 189 kB / 0.4961 GB, free: 2.934 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.2008, allocations: 311.6 kB / 0.4964 GB, free: 2.578 MB / 382.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.002761/0.2035, allocations: 1.235 MB / 0.4976 GB, free: 1.277 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.2036, allocations: 0 / 0.4976 GB, free: 1.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001283/0.2048, allocations: 0.707 MB / 0.4983 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.2049, allocations: 12.06 kB / 0.4983 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2049, allocations: 4 kB / 0.4983 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004/0.2053, allocations: 136.8 kB / 0.4985 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.2058, allocations: 111.8 kB / 0.4986 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00357/0.2094, allocations: 2.611 MB / 0.5011 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.2097, allocations: 28.02 kB / 0.5011 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.2098, allocations: 20 kB / 0.5012 GB, free: 13.5 MB / 398.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: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000454/0.2102, allocations: 221.7 kB / 0.5014 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.2104, allocations: 55.28 kB / 0.5014 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.2116, allocations: 0.6542 MB / 0.5021 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2116, allocations: 4 kB / 0.5021 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.2116, allocations: 4 kB / 0.5021 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.2116, allocations: 7.922 kB / 0.5021 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.2142, allocations: 1.373 MB / 0.5034 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.2142, allocations: 4.156 kB / 0.5034 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004328/0.2146, allocations: 75.89 kB / 0.5035 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005002/0.2152, allocations: 144.8 kB / 0.5036 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.2152, allocations: 15.98 kB / 0.5037 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003746/0.219, allocations: 2.627 MB / 0.5062 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.423e-06/0.219, allocations: 4 kB / 0.5062 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001838/0.2208, allocations: 0.9815 MB / 0.5072 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.221, allocations: 124.5 kB / 0.5073 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.134e-05/0.2211, allocations: 15.98 kB / 0.5073 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.2214, allocations: 24.02 kB / 0.5073 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.2215, allocations: 43.83 kB / 0.5074 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.2216, allocations: 15.98 kB / 0.5074 GB, free: 6.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003748/0.2219, allocations: 287.1 kB / 0.5077 GB, free: 6.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2219, allocations: 0 / 0.5077 GB, free: 6.543 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007319/0.2227, allocations: 144 kB / 0.5078 GB, free: 6.402 MB / 398.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 () * Number of clocked 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 (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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002199/0.2229, allocations: 115.2 kB / 0.5079 GB, free: 6.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.2242, allocations: 0.6605 MB / 0.5086 GB, free: 5.605 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2242, allocations: 0 / 0.5086 GB, free: 5.605 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.2249, allocations: 442.1 kB / 0.509 GB, free: 5.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008368/0.2258, allocations: 138 kB / 0.5091 GB, free: 5.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002744/0.2285, allocations: 1.327 MB / 0.5104 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000673/0.2292, allocations: 0.9292 MB / 0.5113 GB, free: 2.691 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003226/0.2296, allocations: 104.7 kB / 0.5114 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.2297, allocations: 43.42 kB / 0.5115 GB, free: 2.543 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2297, allocations: 3.938 kB / 0.5115 GB, free: 2.539 MB / 398.1 MB Notification: Performance of Templates: time 0.01377/0.2435, allocations: 6.749 MB / 0.5181 GB, free: 11.78 MB / 414.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)