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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001669/0.00167, allocations: 111.6 kB / 17.29 MB, free: 6.188 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.002052/0.002051, allocations: 193.3 kB / 18.21 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.148/2.148, allocations: 222.9 MB / 241.9 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3069/0.3069, allocations: 38.02 MB / 330 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002238, allocations: 67.12 kB / 398.9 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1547, allocations: 58.05 MB / 457 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01234/0.1671, allocations: 7.346 MB / 464.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00506/0.1722, allocations: 1.788 MB / 466.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.1735, allocations: 51.69 kB / 466.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007916/0.1743, allocations: 115.2 kB / 466.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.176, allocations: 354.5 kB / 466.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007993/0.1768, allocations: 175.8 kB / 466.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001557/0.1784, allocations: 0.9189 MB / 467.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000591/0.179, allocations: 274.7 kB / 468 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009244/0.1799, allocations: 410.2 kB / 468.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009355/0.1809, allocations: 490.4 kB / 468.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.181, allocations: 48 kB / 468.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.1812, allocations: 48 kB / 469 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003716/0.1815, allocations: 259.3 kB / 469.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004411/0.182, allocations: 330.3 kB / 469.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007965/0.1828, allocations: 0.5067 MB / 470 MB, free: 11.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1828, allocations: 0 / 470 MB, free: 11.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1828, allocations: 0 / 470 MB, free: 11.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1829, allocations: 0 / 470 MB, free: 11.28 MB / 350.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.002419/0.1853, allocations: 0.9523 MB / 471 MB, free: 10.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.1854, allocations: 15.89 kB / 471 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.1855, allocations: 64.19 kB / 471.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.1867, allocations: 0.5219 MB / 471.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.028e-05/0.1868, allocations: 41.12 kB / 471.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.1869, allocations: 48 kB / 471.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.1883, allocations: 0.6171 MB / 472.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.1883, allocations: 7.938 kB / 472.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/0.1884, allocations: 24 kB / 472.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.1886, allocations: 32.97 kB / 472.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.1897, allocations: 0.5035 MB / 472.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004348/0.1941, allocations: 2.237 MB / 475.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.1953, allocations: 497 kB / 475.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008602/0.1962, allocations: 341.6 kB / 475.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.1962, allocations: 8 kB / 475.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/0.1963, allocations: 42.55 kB / 476 MB, free: 5.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 4.248e-06/0.1963, allocations: 0 / 476 MB, free: 5.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.00481/0.2011, allocations: 1.749 MB / 477.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.2012, allocations: 89.05 kB / 477.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006504/0.2019, allocations: 413.9 kB / 478.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.2019, allocations: 37.7 kB / 478.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.2022, allocations: 300.4 kB / 478.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.2024, allocations: 161.7 kB / 478.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.2026, allocations: 90.16 kB / 478.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.2028, allocations: 366.8 kB / 479.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004061/0.2032, allocations: 185 kB / 479.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005238/0.2038, allocations: 311.6 kB / 479.6 MB, free: 1.254 MB / 350.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.003687/0.2075, allocations: 1.245 MB / 480.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.2075, allocations: 4 kB / 480.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001731/0.2092, allocations: 0.7105 MB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.2093, allocations: 6.344 kB / 481.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.2093, allocations: 4 kB / 481.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000543/0.2099, allocations: 148.7 kB / 481.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006457/0.2105, allocations: 111.8 kB / 481.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004113/0.2147, allocations: 2.607 MB / 484.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005662/0.2153, allocations: 24.02 kB / 484.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.747e-05/0.2153, allocations: 20 kB / 484.5 MB, free: 12.16 MB / 366.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.0004772/0.2158, allocations: 231.8 kB / 484.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.216, allocations: 55.28 kB / 484.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.2178, allocations: 0.6503 MB / 485.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.2178, allocations: 4 kB / 485.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.2178, allocations: 8 kB / 485.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.2178, allocations: 8.031 kB / 485.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003191/0.221, allocations: 1.381 MB / 486.8 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/0.2211, allocations: 4 kB / 486.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.2216, allocations: 71.98 kB / 486.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005855/0.2222, allocations: 152.8 kB / 487.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.873e-05/0.2223, allocations: 11.98 kB / 487.1 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00401/0.2263, allocations: 2.634 MB / 489.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2263, allocations: 3.938 kB / 489.7 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.2285, allocations: 0.9807 MB / 490.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.2287, allocations: 124.6 kB / 490.8 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.2289, allocations: 16.09 kB / 490.8 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004297/0.2293, allocations: 23.86 kB / 490.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.2294, allocations: 39.95 kB / 490.9 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.982e-05/0.2295, allocations: 19.98 kB / 490.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005251/0.23, allocations: 283.1 kB / 491.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.104e-06/0.2301, allocations: 0 / 491.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001077/0.2311, allocations: 151.9 kB / 491.3 MB, free: 5.027 MB / 366.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.0002137/0.2314, allocations: 115.2 kB / 491.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.2334, allocations: 0.7155 MB / 492.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2334, allocations: 0 / 492.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.2345, allocations: 430.4 kB / 492.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.2358, allocations: 136.9 kB / 492.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.2395, allocations: 1.606 MB / 494.3 MB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008355/0.2404, allocations: 0.9253 MB / 495.3 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.2406, allocations: 47.42 kB / 495.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.2406, allocations: 0 / 495.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of Templates: time 0.02199/0.2627, allocations: 9.157 MB / 0.4926 GB, free: 7.812 MB / 382.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)