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.001372/0.001373, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001136/0.001136, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.356/1.356, allocations: 205.1 MB / 224.5 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.1761/0.1761, allocations: 37.98 MB / 309.9 MB, free: 5.941 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.001577/0.001577, allocations: 67.91 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08904/0.09063, allocations: 55.24 MB / 487.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007915/0.09858, allocations: 6.504 MB / 494.3 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.1011, allocations: 1.353 MB / 495.6 MB, free: 436 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004932/0.1016, allocations: 27.81 kB / 495.7 MB, free: 408 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004249/0.1021, allocations: 122.9 kB / 495.8 MB, free: 284 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001192/0.1033, allocations: 421.9 kB / 496.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005717/0.1039, allocations: 239.6 kB / 496.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.1053, allocations: 1.122 MB / 497.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005793/0.1059, allocations: 401.8 kB / 497.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008355/0.1068, allocations: 0.4981 MB / 498.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008733/0.1076, allocations: 0.5294 MB / 499 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.1078, allocations: 64 kB / 499 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.108, allocations: 68 kB / 499.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003531/0.1084, allocations: 335.2 kB / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00054/0.1089, allocations: 406.1 kB / 499.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.11, allocations: 0.9071 MB / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.11, allocations: 0 / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.11, allocations: 0 / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.276e-05/0.11, allocations: 4 kB / 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.002365/0.1124, allocations: 1.152 MB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1125, allocations: 15.89 kB / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/0.1127, allocations: 83.98 kB / 0.4902 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1137, allocations: 0.6195 MB / 0.4908 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.1139, allocations: 116.8 kB / 0.4909 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.114, allocations: 64 kB / 0.491 GB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.1155, allocations: 0.8691 MB / 0.4918 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1155, allocations: 0 / 0.4918 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.1156, allocations: 24 kB / 0.4919 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.1157, allocations: 45.28 kB / 0.4919 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.1169, allocations: 0.6178 MB / 0.4925 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.1208, allocations: 2.727 MB / 0.4952 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.1224, allocations: 0.9159 MB / 0.4961 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006938/0.1231, allocations: 306.2 kB / 0.4964 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.1232, allocations: 4.328 kB / 0.4964 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007026/0.1239, allocations: 354.7 kB / 0.4967 GB, free: 3.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.845e-06/0.1239, allocations: 0 / 0.4967 GB, free: 3.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.00415/0.1281, allocations: 1.978 MB / 0.4986 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.1282, allocations: 122.8 kB / 0.4988 GB, free: 0.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000568/0.1287, allocations: 0.5105 MB / 0.4993 GB, free: 280 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.1288, allocations: 33.7 kB / 0.4993 GB, free: 240 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.1291, allocations: 356 kB / 0.4996 GB, free: 15.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.1292, allocations: 142.1 kB / 0.4998 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.1294, allocations: 118.1 kB / 0.4999 GB, free: 15.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1295, allocations: 366.8 kB / 0.5002 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.1299, allocations: 225.1 kB / 0.5004 GB, free: 15.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004289/0.1303, allocations: 398.2 kB / 0.5008 GB, free: 14.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007602/0.1311, allocations: 0.6249 MB / 0.5014 GB, free: 13.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1311, allocations: 4 kB / 0.5014 GB, free: 13.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00124/0.1323, allocations: 0.8863 MB / 0.5023 GB, free: 12.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.892e-05/0.1324, allocations: 49.67 kB / 0.5023 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1324, allocations: 11.94 kB / 0.5024 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.1327, allocations: 90 kB / 0.5024 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.1331, allocations: 103.8 kB / 0.5025 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.1357, allocations: 3.259 MB / 0.5057 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003732/0.1361, allocations: 31.97 kB / 0.5058 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-05/0.1362, allocations: 52.08 kB / 0.5058 GB, free: 9.055 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.000345/0.1366, allocations: 266.6 kB / 0.5061 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.094e-05/0.1366, allocations: 59.25 kB / 0.5061 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.1381, allocations: 0.7081 MB / 0.5068 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1381, allocations: 8 kB / 0.5068 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1381, allocations: 7.984 kB / 0.5068 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1381, allocations: 0 / 0.5068 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.1406, allocations: 1.536 MB / 0.5083 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1406, allocations: 0 / 0.5083 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/0.1409, allocations: 59.91 kB / 0.5084 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002802/0.1412, allocations: 101.7 kB / 0.5085 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.1413, allocations: 15.98 kB / 0.5085 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00245/0.1437, allocations: 3.251 MB / 0.5117 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1437, allocations: 4.031 kB / 0.5117 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.1458, allocations: 1.068 MB / 0.5127 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.146, allocations: 172.3 kB / 0.5129 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.1462, allocations: 31.98 kB / 0.5129 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.1466, allocations: 39.95 kB / 0.5129 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.076e-05/0.1467, allocations: 40.02 kB / 0.513 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.1467, allocations: 15.98 kB / 0.513 GB, free: 1.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004074/0.1471, allocations: 358.8 kB / 0.5133 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1471, allocations: 0 / 0.5133 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006858/0.1478, allocations: 152 kB / 0.5135 GB, free: 0.6992 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.0001676/0.148, allocations: 131.8 kB / 0.5136 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.1495, allocations: 0.9023 MB / 0.5145 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1495, allocations: 384 / 0.5145 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008694/0.1504, allocations: 0.4969 MB / 0.515 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.1512, allocations: 150.7 kB / 0.5151 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.1539, 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.0006226/0.1545, 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.0001329/0.1547, allocations: 47.36 kB / 0.5176 GB, free: 12.33 MB / 414.1 MB Notification: Performance of SimCode: time 5e-07/0.1547, allocations: 4 kB / 0.5176 GB, free: 12.32 MB / 414.1 MB Notification: Performance of Templates: time 0.2/0.3547, allocations: 13.58 MB / 0.5309 GB, free: 50.64 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)