Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001639/0.001644, allocations: 184.1 kB / 15.77 MB, free: 6.375 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.995/1.995, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.001147/0.001147, allocations: 102.8 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2763/0.2763, allocations: 38.05 MB / 356.6 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006304/0.0006308, allocations: 20 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1368, allocations: 56.33 MB / 479 MB, free: 2.051 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01532/0.1522, allocations: 6.24 MB / 485.3 MB, free: 11.78 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006912/0.1591, allocations: 1.79 MB / 487.1 MB, free: 9.984 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.1604, allocations: 47.69 kB / 487.1 MB, free: 9.938 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.1615, allocations: 139.1 kB / 487.2 MB, free: 9.801 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002463/0.164, allocations: 378.8 kB / 487.6 MB, free: 9.43 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.1656, allocations: 215.6 kB / 487.8 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00171/0.1674, allocations: 491 kB / 488.3 MB, free: 8.738 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006305/0.1681, allocations: 184.3 kB / 488.5 MB, free: 8.559 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.1692, allocations: 294.9 kB / 488.8 MB, free: 8.27 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.1702, allocations: 322.9 kB / 489.1 MB, free: 7.953 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.1704, allocations: 27.94 kB / 489.1 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.1706, allocations: 28 kB / 489.1 MB, free: 7.898 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004656/0.1711, allocations: 215.4 kB / 489.4 MB, free: 7.688 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002692/0.1714, allocations: 133.4 kB / 489.5 MB, free: 7.551 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.1724, allocations: 0.4948 MB / 490 MB, free: 7.055 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1725, allocations: 0 / 490 MB, free: 7.055 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.893e-06/0.1725, allocations: 3.984 kB / 490 MB, free: 7.051 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.299e-05/0.1725, allocations: 3.938 kB / 490 MB, free: 7.047 MB / 330.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.003521/0.1761, allocations: 0.855 MB / 490.8 MB, free: 6.141 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.475e-05/0.1762, allocations: 12.03 kB / 490.9 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.1765, allocations: 67.2 kB / 490.9 MB, free: 6.062 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.1786, allocations: 0.5014 MB / 491.4 MB, free: 5.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-05/0.1787, allocations: 44.97 kB / 491.5 MB, free: 5.477 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.1789, allocations: 51.91 kB / 491.5 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.1811, allocations: 0.6132 MB / 492.1 MB, free: 4.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.1812, allocations: 0 / 492.1 MB, free: 4.773 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.1813, allocations: 20 kB / 492.1 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002661/0.1816, allocations: 44.92 kB / 492.2 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.1837, allocations: 0.5034 MB / 492.7 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008059/0.1918, allocations: 2.238 MB / 494.9 MB, free: 1.871 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001972/0.1938, allocations: 497 kB / 495.4 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.448e-05/0.1939, allocations: 4.062 kB / 495.4 MB, free: 1.363 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/0.194, allocations: 46.5 kB / 495.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 4.599e-06/0.194, allocations: 0 / 495.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.007725/0.2017, allocations: 1.723 MB / 497.2 MB, free: 15.51 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.2019, allocations: 85.06 kB / 497.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009933/0.2029, allocations: 409.9 kB / 497.7 MB, free: 15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.039e-05/0.203, allocations: 37.7 kB / 497.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003712/0.2034, allocations: 338.7 kB / 498 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.2036, allocations: 165.6 kB / 498.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.2037, allocations: 12 kB / 498.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2038, allocations: 326.8 kB / 498.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/0.2044, allocations: 189 kB / 498.7 MB, free: 13.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006015/0.205, allocations: 303.6 kB / 499 MB, free: 13.59 MB / 346.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.003552/0.2085, allocations: 0.7607 MB / 499.8 MB, free: 12.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2086, allocations: 0 / 499.8 MB, free: 12.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0019/0.2105, allocations: 0.6641 MB / 0.4887 GB, free: 12.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.2105, allocations: 8.469 kB / 0.4887 GB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.2106, allocations: 8 kB / 0.4887 GB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006387/0.2112, allocations: 132.7 kB / 0.4889 GB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008851/0.2121, allocations: 115.8 kB / 0.489 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004303/0.2164, allocations: 2.33 MB / 0.4912 GB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005541/0.217, allocations: 24.08 kB / 0.4913 GB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.752e-05/0.2171, allocations: 27.92 kB / 0.4913 GB, free: 9.363 MB / 346.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004561/0.2176, allocations: 225.5 kB / 0.4915 GB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.2177, allocations: 59.42 kB / 0.4916 GB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.2196, allocations: 0.6425 MB / 0.4922 GB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.2196, allocations: 4 kB / 0.4922 GB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.507e-06/0.2196, allocations: 4 kB / 0.4922 GB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.2196, allocations: 3.984 kB / 0.4922 GB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/0.2232, allocations: 1.36 MB / 0.4935 GB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.363e-06/0.2232, allocations: 0 / 0.4935 GB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007143/0.2239, allocations: 71.89 kB / 0.4936 GB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006744/0.2246, allocations: 148.7 kB / 0.4937 GB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.676e-05/0.2247, allocations: 15.95 kB / 0.4938 GB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004207/0.2289, allocations: 2.342 MB / 0.496 GB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.229, allocations: 8.109 kB / 0.496 GB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.2315, allocations: 1.033 MB / 0.4971 GB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.2317, allocations: 124.5 kB / 0.4972 GB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.2318, allocations: 16.03 kB / 0.4972 GB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004241/0.2323, allocations: 15.98 kB / 0.4972 GB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.2324, allocations: 40.39 kB / 0.4972 GB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.2325, allocations: 12 kB / 0.4973 GB, free: 2.926 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000508/0.233, allocations: 291.1 kB / 0.4975 GB, free: 2.641 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.233, allocations: 0 / 0.4975 GB, free: 2.641 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009126/0.2339, allocations: 144 kB / 0.4977 GB, free: 2.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001938/0.2341, allocations: 111.2 kB / 0.4978 GB, free: 2.383 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.236, allocations: 0.6487 MB / 0.4984 GB, free: 1.719 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/0.236, allocations: 4 kB / 0.4984 GB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.2371, allocations: 433.1 kB / 0.4988 GB, free: 1.281 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000997/0.2381, allocations: 122.4 kB / 0.4989 GB, free: 1.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.2416, allocations: 1.64 MB / 0.5005 GB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007484/0.2424, allocations: 0.9411 MB / 0.5015 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.2427, allocations: 43.42 kB / 0.5015 GB, free: 14.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2427, allocations: 0 / 0.5015 GB, free: 14.46 MB / 362.7 MB Notification: Performance of Templates: time 0.02034/0.263, allocations: 8.858 MB / 0.5102 GB, free: 5.594 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)