Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001171/0.001171, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.393/1.393, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1777/0.1777, allocations: 37.98 MB / 309.9 MB, free: 5.945 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.001442/0.001442, allocations: 71.03 kB / 432.5 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 55.25 MB / 487.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008952/0.1227, allocations: 6.489 MB / 494.3 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003099/0.1259, allocations: 1.353 MB / 495.6 MB, free: 444 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006902/0.1266, allocations: 27.81 kB / 495.7 MB, free: 416 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004928/0.1271, allocations: 122.9 kB / 495.8 MB, free: 292 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001523/0.1287, allocations: 421.9 kB / 496.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007006/0.1294, allocations: 243.6 kB / 496.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001623/0.131, allocations: 1.114 MB / 497.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006133/0.1317, allocations: 405.7 kB / 497.9 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001098/0.1328, allocations: 0.502 MB / 498.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.1339, allocations: 0.5255 MB / 499 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002114/0.1341, allocations: 68 kB / 499 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002881/0.1344, allocations: 68 kB / 499.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004234/0.1348, allocations: 331.2 kB / 499.4 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007072/0.1356, allocations: 398.1 kB / 499.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.1367, allocations: 0.9187 MB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.1367, allocations: 4 kB / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1368, allocations: 0 / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.738e-05/0.1368, allocations: 0 / 0.489 GB, free: 11.31 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00268/0.1395, allocations: 1.145 MB / 0.4901 GB, free: 10.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1395, allocations: 15.89 kB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.1398, allocations: 87.94 kB / 0.4902 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.141, allocations: 0.6195 MB / 0.4908 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.1411, allocations: 120.8 kB / 0.4909 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.1413, allocations: 64 kB / 0.491 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.143, allocations: 0.8575 MB / 0.4918 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.143, allocations: 7.984 kB / 0.4918 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.166e-05/0.1431, allocations: 28 kB / 0.4919 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/0.1432, allocations: 37.28 kB / 0.4919 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.1445, allocations: 0.6178 MB / 0.4925 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004293/0.1489, allocations: 2.739 MB / 0.4952 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.1506, allocations: 0.9082 MB / 0.4961 GB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007487/0.1514, allocations: 310.2 kB / 0.4964 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.1515, allocations: 8.328 kB / 0.4964 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007439/0.1522, allocations: 342.8 kB / 0.4967 GB, free: 3.047 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.355e-06/0.1522, allocations: 8 kB / 0.4967 GB, free: 3.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.004633/0.1569, allocations: 1.975 MB / 0.4986 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.859e-05/0.157, allocations: 122.8 kB / 0.4988 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006736/0.1577, allocations: 0.5066 MB / 0.4993 GB, free: 292 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.1577, allocations: 37.7 kB / 0.4993 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/0.1581, allocations: 355.8 kB / 0.4996 GB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.1582, allocations: 138.1 kB / 0.4998 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.1584, allocations: 122.1 kB / 0.4999 GB, free: 15.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.1586, allocations: 366.8 kB / 0.5002 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.159, allocations: 229.1 kB / 0.5004 GB, free: 15.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.1595, allocations: 394.2 kB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007781/0.1602, allocations: 0.6249 MB / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.1603, allocations: 4 kB / 0.5014 GB, free: 13.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001336/0.1616, allocations: 0.8862 MB / 0.5023 GB, free: 12.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.1618, allocations: 53.69 kB / 0.5023 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.1618, allocations: 4 kB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003134/0.1621, allocations: 93.97 kB / 0.5024 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/0.1625, allocations: 103.8 kB / 0.5025 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00273/0.1653, allocations: 3.263 MB / 0.5057 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/0.1657, allocations: 36.06 kB / 0.5058 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.531e-05/0.1658, allocations: 43.97 kB / 0.5058 GB, free: 9.066 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004076/0.1662, allocations: 266.6 kB / 0.5061 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.1663, allocations: 63.25 kB / 0.5061 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.1679, allocations: 0.7042 MB / 0.5068 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.1679, allocations: 7.938 kB / 0.5068 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.1679, allocations: 7.938 kB / 0.5068 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.1679, allocations: 3.984 kB / 0.5068 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.1705, allocations: 1.54 MB / 0.5083 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1705, allocations: 0 / 0.5083 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.1708, allocations: 55.91 kB / 0.5084 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003042/0.1711, allocations: 97.62 kB / 0.5085 GB, free: 6.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.1712, allocations: 15.97 kB / 0.5085 GB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002783/0.174, allocations: 3.255 MB / 0.5117 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.174, allocations: 4.031 kB / 0.5117 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.1762, allocations: 1.072 MB / 0.5127 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.1765, allocations: 180.3 kB / 0.5129 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.1767, allocations: 23.98 kB / 0.5129 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004317/0.1771, allocations: 35.95 kB / 0.5129 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.696e-05/0.1772, allocations: 40.08 kB / 0.513 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.1773, allocations: 15.98 kB / 0.513 GB, free: 1.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004787/0.1778, allocations: 358.8 kB / 0.5133 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1778, allocations: 0 / 0.5133 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007543/0.1785, allocations: 148 kB / 0.5135 GB, free: 0.7109 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001966/0.1787, allocations: 135.8 kB / 0.5136 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.1805, allocations: 0.9063 MB / 0.5145 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1805, allocations: 0 / 0.5145 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009554/0.1815, allocations: 0.4891 MB / 0.515 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008801/0.1823, allocations: 154.4 kB / 0.5151 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.1855, allocations: 1.534 MB / 0.5166 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006993/0.1862, allocations: 0.9721 MB / 0.5176 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.1864, allocations: 47.42 kB / 0.5176 GB, free: 12.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.094e-06/0.1864, allocations: 0 / 0.5176 GB, free: 12.34 MB / 414.1 MB Notification: Performance of Templates: time 0.2598/0.4462, allocations: 13.5 MB / 0.5308 GB, free: 50.61 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)