Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001537/0.001541, allocations: 183.9 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.999/1.999, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001138/0.001138, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2631/0.2631, allocations: 38.05 MB / 356.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004584, allocations: 12 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 56.32 MB / 479 MB, free: 2.055 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01105/0.1236, allocations: 6.766 MB / 485.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004852/0.1285, allocations: 1.779 MB / 487.6 MB, free: 9.473 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008499/0.1294, allocations: 51.62 kB / 487.6 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004793/0.1299, allocations: 131.1 kB / 487.8 MB, free: 9.293 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.1316, allocations: 402.7 kB / 488.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.1327, allocations: 263.5 kB / 488.4 MB, free: 8.641 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.134, allocations: 0.5808 MB / 489 MB, free: 8.059 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006128/0.1346, allocations: 288.6 kB / 489.3 MB, free: 7.777 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009617/0.1356, allocations: 366.6 kB / 489.6 MB, free: 7.418 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008003/0.1364, allocations: 354.8 kB / 490 MB, free: 7.07 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.1365, allocations: 28 kB / 490 MB, free: 7.043 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.1367, allocations: 32 kB / 490 MB, free: 7.012 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004266/0.1371, allocations: 267.3 kB / 490.3 MB, free: 6.75 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002363/0.1374, allocations: 165.3 kB / 490.5 MB, free: 6.582 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.1384, allocations: 0.6896 MB / 491.1 MB, free: 5.891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1384, allocations: 0 / 491.1 MB, free: 5.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1384, allocations: 4 kB / 491.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1384, allocations: 0 / 491.1 MB, free: 5.887 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002764/0.1412, allocations: 1.016 MB / 492.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.1413, allocations: 8.031 kB / 492.2 MB, free: 4.797 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.1415, allocations: 83.06 kB / 492.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001466/0.143, allocations: 0.5601 MB / 492.8 MB, free: 4.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.1432, allocations: 116.6 kB / 492.9 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001801/0.1434, allocations: 64 kB / 493 MB, free: 3.922 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00256/0.146, allocations: 0.8731 MB / 493.9 MB, free: 3.008 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.146, allocations: 0 / 493.9 MB, free: 3.008 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.1461, allocations: 27.94 kB / 493.9 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001983/0.1463, allocations: 41.28 kB / 493.9 MB, free: 2.941 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.1485, allocations: 0.6295 MB / 494.6 MB, free: 2.312 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006128/0.1546, allocations: 2.782 MB / 497.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003066/0.1578, allocations: 0.9205 MB / 498.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.1578, allocations: 4.391 kB / 498.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001296/0.1592, allocations: 362.3 kB / 498.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.166e-06/0.1592, allocations: 0 / 498.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.007091/0.1663, allocations: 1.995 MB / 0.4889 GB, free: 11.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.1664, allocations: 126.8 kB / 0.489 GB, free: 11.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009086/0.1674, allocations: 0.4988 MB / 0.4895 GB, free: 11.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.773e-05/0.1674, allocations: 41.69 kB / 0.4895 GB, free: 11.22 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.1678, allocations: 390.2 kB / 0.4899 GB, free: 10.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.168, allocations: 142.1 kB / 0.49 GB, free: 10.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.1681, allocations: 12 kB / 0.49 GB, free: 10.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1682, allocations: 334.8 kB / 0.4904 GB, free: 10.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005769/0.1688, allocations: 209.1 kB / 0.4906 GB, free: 10.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/0.1696, allocations: 374.2 kB / 0.4909 GB, free: 9.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006914/0.1703, allocations: 298.3 kB / 0.4912 GB, free: 9.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1703, allocations: 0 / 0.4912 GB, free: 9.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001965/0.1723, allocations: 0.8166 MB / 0.492 GB, free: 8.551 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.656e-05/0.1724, allocations: 53.69 kB / 0.4921 GB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.1724, allocations: 4 kB / 0.4921 GB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000389/0.1728, allocations: 73.67 kB / 0.4921 GB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007749/0.1736, allocations: 111.8 kB / 0.4922 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003241/0.1768, allocations: 2.907 MB / 0.4951 GB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006714/0.1775, allocations: 39.91 kB / 0.4951 GB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.1777, allocations: 48.22 kB / 0.4952 GB, free: 5.039 MB / 346.7 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,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005542/0.1782, allocations: 264.4 kB / 0.4954 GB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.1784, allocations: 55.3 kB / 0.4955 GB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002557/0.1809, allocations: 0.7159 MB / 0.4962 GB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.181, allocations: 7.938 kB / 0.4962 GB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.181, allocations: 7.984 kB / 0.4962 GB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.181, allocations: 0 / 0.4962 GB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.1852, allocations: 1.528 MB / 0.4977 GB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.1853, allocations: 0 / 0.4977 GB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005809/0.1859, allocations: 71.91 kB / 0.4977 GB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004312/0.1863, allocations: 89.56 kB / 0.4978 GB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.481e-05/0.1864, allocations: 15.98 kB / 0.4978 GB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003192/0.1896, allocations: 2.893 MB / 0.5007 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1896, allocations: 3.938 kB / 0.5007 GB, free: 15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003723/0.1934, allocations: 1.115 MB / 0.5018 GB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003981/0.1938, allocations: 176.3 kB / 0.5019 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.194, allocations: 31.98 kB / 0.502 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000702/0.1947, allocations: 43.95 kB / 0.502 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.1949, allocations: 31.95 kB / 0.502 GB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.607e-05/0.1949, allocations: 15.98 kB / 0.502 GB, free: 13.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006481/0.1956, allocations: 354.8 kB / 0.5024 GB, free: 13.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1956, allocations: 0 / 0.5024 GB, free: 13.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009878/0.1966, allocations: 156 kB / 0.5025 GB, free: 13 MB / 362.7 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 (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000247/0.1969, allocations: 127.2 kB / 0.5027 GB, free: 12.87 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002505/0.1994, allocations: 0.8982 MB / 0.5035 GB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1994, allocations: 4.125 kB / 0.5035 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.201, allocations: 0.5013 MB / 0.504 GB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.2021, allocations: 130.1 kB / 0.5041 GB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004401/0.2065, allocations: 1.854 MB / 0.506 GB, free: 9.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000871/0.2075, allocations: 0.9916 MB / 0.5069 GB, free: 8.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.2077, allocations: 43.44 kB / 0.507 GB, free: 8.316 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2077, allocations: 0 / 0.507 GB, free: 8.316 MB / 362.7 MB Notification: Performance of Templates: time 0.3183/0.526, allocations: 12.94 MB / 0.5196 GB, free: 51.2 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)