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.0012/0.0012, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001443/0.001443, allocations: 195 kB / 18 MB, free: 5.105 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.405/1.405, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1727/0.1727, allocations: 37.98 MB / 309.2 MB, free: 5.969 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.001528/0.001528, allocations: 67.89 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.1002, allocations: 55.24 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007252/0.1075, allocations: 6.489 MB / 493.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.1102, allocations: 1.364 MB / 495 MB, free: 460 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003496/0.1106, allocations: 27.81 kB / 495 MB, free: 432 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003809/0.111, allocations: 122.9 kB / 495.1 MB, free: 308 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001192/0.1122, allocations: 426 kB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005624/0.1128, allocations: 235.6 kB / 495.8 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1139, allocations: 1.121 MB / 496.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004901/0.1144, allocations: 405.8 kB / 497.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006274/0.1151, allocations: 0.498 MB / 497.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007422/0.1158, allocations: 0.5255 MB / 498.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.1159, allocations: 72 kB / 498.4 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1161, allocations: 64 kB / 498.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002891/0.1164, allocations: 331.2 kB / 498.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003342/0.1167, allocations: 398.1 kB / 499.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000783/0.1175, allocations: 0.911 MB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1175, allocations: 4 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.1175, allocations: 0 / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1176, allocations: 7.922 kB / 0.4883 GB, free: 11.33 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.001923/0.1195, allocations: 1.149 MB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1195, allocations: 15.89 kB / 0.4895 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.1197, allocations: 84 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009236/0.1206, allocations: 0.6156 MB / 0.4902 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.1208, allocations: 116.8 kB / 0.4903 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1209, allocations: 64 kB / 0.4903 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.1223, allocations: 0.873 MB / 0.4912 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.1224, allocations: 0 / 0.4912 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.1225, allocations: 24 kB / 0.4912 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001212/0.1226, allocations: 41.28 kB / 0.4913 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.1238, allocations: 0.6217 MB / 0.4919 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.1275, allocations: 2.727 MB / 0.4945 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.1291, allocations: 0.9082 MB / 0.4954 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007048/0.1298, allocations: 318.2 kB / 0.4957 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.1298, allocations: 4.328 kB / 0.4957 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006735/0.1305, allocations: 346.7 kB / 0.496 GB, free: 3.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.465e-06/0.1305, allocations: 8 kB / 0.4961 GB, free: 3.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.004169/0.1347, allocations: 1.975 MB / 0.498 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.1348, allocations: 110.8 kB / 0.4981 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000579/0.1354, allocations: 0.5105 MB / 0.4986 GB, free: 316 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.1354, allocations: 33.7 kB / 0.4986 GB, free: 276 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/0.1357, allocations: 360 kB / 0.499 GB, free: 15.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.1358, allocations: 146.1 kB / 0.4991 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.136, allocations: 118.1 kB / 0.4992 GB, free: 15.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1362, allocations: 370.8 kB / 0.4996 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000331/0.1365, allocations: 221.1 kB / 0.4998 GB, free: 15.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.1369, allocations: 394.2 kB / 0.5002 GB, free: 14.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007472/0.1377, allocations: 0.6288 MB / 0.5008 GB, free: 13.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1377, allocations: 7.938 kB / 0.5008 GB, free: 13.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001248/0.139, allocations: 0.8901 MB / 0.5016 GB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.121e-05/0.139, allocations: 49.69 kB / 0.5017 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.139, allocations: 4.438 kB / 0.5017 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003187/0.1394, allocations: 93.66 kB / 0.5018 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.1398, allocations: 103.8 kB / 0.5019 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.1423, allocations: 3.255 MB / 0.5051 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.1427, allocations: 36.05 kB / 0.5051 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.938e-05/0.1428, allocations: 43.97 kB / 0.5051 GB, free: 9.086 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.0003743/0.1432, allocations: 262.6 kB / 0.5054 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.786e-05/0.1432, allocations: 67.23 kB / 0.5055 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.1446, allocations: 0.7042 MB / 0.5061 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.1446, allocations: 4 kB / 0.5061 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1446, allocations: 7.938 kB / 0.5062 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1447, allocations: 3.984 kB / 0.5062 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.147, allocations: 1.54 MB / 0.5077 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.147, allocations: 0 / 0.5077 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/0.1473, allocations: 67.89 kB / 0.5077 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002697/0.1475, allocations: 93.62 kB / 0.5078 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.1476, allocations: 15.98 kB / 0.5078 GB, free: 6.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002357/0.15, allocations: 3.251 MB / 0.511 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.15, allocations: 0 / 0.511 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.1519, allocations: 1.072 MB / 0.5121 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.1521, allocations: 172.3 kB / 0.5122 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.751e-05/0.1522, allocations: 27.98 kB / 0.5122 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.1526, allocations: 39.94 kB / 0.5123 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.06e-05/0.1527, allocations: 44.02 kB / 0.5123 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.1528, allocations: 8 kB / 0.5123 GB, free: 1.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004259/0.1532, allocations: 362.8 kB / 0.5127 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1532, allocations: 0 / 0.5127 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007966/0.154, allocations: 148 kB / 0.5128 GB, free: 0.7344 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.0002346/0.1542, allocations: 139.7 kB / 0.513 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.156, allocations: 0.9023 MB / 0.5138 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.156, allocations: 0 / 0.5138 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009231/0.1569, allocations: 0.4975 MB / 0.5143 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008254/0.1577, allocations: 158.5 kB / 0.5145 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.1604, allocations: 1.477 MB / 0.5159 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006298/0.1611, allocations: 0.976 MB / 0.5169 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003205/0.1614, allocations: 104.9 kB / 0.517 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.1615, allocations: 43.44 kB / 0.517 GB, free: 12.3 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.1615, allocations: 7.875 kB / 0.517 GB, free: 12.3 MB / 414.1 MB Notification: Performance of Templates: time 0.01407/0.1756, allocations: 7.69 MB / 0.5245 GB, free: 4.594 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)