Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002177/0.002177, allocations: 181.6 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.567/1.567, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001729/0.001728, allocations: 124.6 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1573/0.1573, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.187e-05, allocations: 7.984 kB / 397.5 MB, free: 1.031 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2712, allocations: 53.22 MB / 450.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.6353, allocations: 96.94 MB / 0.5349 GB, free: 88.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.6356, allocations: 90.61 kB / 0.535 GB, free: 88.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05093/0.6866, allocations: 15.67 MB / 0.5503 GB, free: 78.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.6866, allocations: 0 / 0.5503 GB, free: 78.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.881e-05/0.6867, allocations: 12 kB / 0.5503 GB, free: 78.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002585/0.6893, allocations: 1.049 MB / 0.5513 GB, free: 77.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.6893, allocations: 12.03 kB / 0.5513 GB, free: 77.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.6896, allocations: 79.25 kB / 0.5514 GB, free: 77.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004027/0.6936, allocations: 1.218 MB / 0.5526 GB, free: 76.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005308/0.6942, allocations: 347.5 kB / 0.5529 GB, free: 75.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.6944, allocations: 56 kB / 0.553 GB, free: 75.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.6962, allocations: 0.8966 MB / 0.5538 GB, free: 74.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.6962, allocations: 4 kB / 0.5538 GB, free: 74.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.6963, allocations: 27.98 kB / 0.5539 GB, free: 74.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.6964, allocations: 23.94 kB / 0.5539 GB, free: 74.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.6982, allocations: 0.8277 MB / 0.5547 GB, free: 73.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005259/0.7034, allocations: 3.265 MB / 0.5579 GB, free: 70.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.7047, allocations: 0.5468 MB / 0.5584 GB, free: 70.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007986/0.7055, allocations: 398.9 kB / 0.5588 GB, free: 69.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.531e-05/0.7056, allocations: 8.438 kB / 0.5588 GB, free: 69.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008721/0.7065, allocations: 489.8 kB / 0.5593 GB, free: 69.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.356e-06/0.7065, allocations: 0 / 0.5593 GB, free: 69.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.001551/0.7081, allocations: 0.6675 MB / 0.5599 GB, free: 68.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.7081, allocations: 144.5 kB / 0.5601 GB, free: 68.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004166/0.7086, allocations: 331.1 kB / 0.5604 GB, free: 67.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.556e-05/0.7087, allocations: 41.7 kB / 0.5604 GB, free: 67.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.7089, allocations: 300.3 kB / 0.5607 GB, free: 67.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.709, allocations: 153.8 kB / 0.5609 GB, free: 67.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.543e-05/0.7091, allocations: 15.94 kB / 0.5609 GB, free: 67.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.7092, allocations: 362.9 kB / 0.5612 GB, free: 67.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007487/0.71, allocations: 337.2 kB / 0.5615 GB, free: 66.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007974/0.7108, allocations: 434.5 kB / 0.5619 GB, free: 66.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007282/0.7115, allocations: 352.8 kB / 0.5623 GB, free: 65.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.7116, allocations: 4 kB / 0.5623 GB, free: 65.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00186/0.7134, allocations: 0.8434 MB / 0.5631 GB, free: 65.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.7135, allocations: 45.69 kB / 0.5632 GB, free: 65.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.7135, allocations: 4.375 kB / 0.5632 GB, free: 65.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.7136, allocations: 12 kB / 0.5632 GB, free: 65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009101/0.7227, allocations: 1.588 MB / 0.5647 GB, free: 63.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/0.729, allocations: 4.087 MB / 0.5687 GB, free: 59.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009898/0.73, allocations: 135.4 kB / 0.5688 GB, free: 58.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.7301, allocations: 35.97 kB / 0.5689 GB, free: 58.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete 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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002293/0.7304, allocations: 162.3 kB / 0.569 GB, free: 58.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.7305, allocations: 47.44 kB / 0.5691 GB, free: 58.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/0.7321, allocations: 0.7 MB / 0.5698 GB, free: 57.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.7321, allocations: 7.953 kB / 0.5698 GB, free: 57.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.7321, allocations: 7.938 kB / 0.5698 GB, free: 57.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.7322, allocations: 7.922 kB / 0.5698 GB, free: 57.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.7353, allocations: 1.877 MB / 0.5716 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.7353, allocations: 0 / 0.5716 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01089/0.7462, allocations: 1.842 MB / 0.5734 GB, free: 54.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.798e-05/0.7463, allocations: 4 kB / 0.5734 GB, free: 54.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.7464, allocations: 11.98 kB / 0.5734 GB, free: 54.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.654e-06/0.7464, allocations: 4 kB / 0.5734 GB, free: 54.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.7464, allocations: 4 kB / 0.5734 GB, free: 54.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.7489, allocations: 1.367 MB / 0.5748 GB, free: 52.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004453/0.7493, allocations: 204.4 kB / 0.575 GB, free: 52.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.7495, allocations: 27.98 kB / 0.575 GB, free: 52.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009804/0.7505, allocations: 119.9 kB / 0.5751 GB, free: 52.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/0.7508, allocations: 103.7 kB / 0.5752 GB, free: 52.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.768e-05/0.7509, allocations: 12 kB / 0.5752 GB, free: 52.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003731/0.7512, allocations: 261.2 kB / 0.5755 GB, free: 51.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7512, allocations: 4 kB / 0.5755 GB, free: 51.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009574/0.7522, allocations: 187.5 kB / 0.5757 GB, free: 51.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002629/0.7525, allocations: 139.2 kB / 0.5758 GB, free: 51.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008386/0.7609, allocations: 2.075 MB / 0.5778 GB, free: 49.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.7609, allocations: 0 / 0.5778 GB, free: 49.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00434/0.7653, allocations: 0.9992 MB / 0.5788 GB, free: 48.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.7664, allocations: 126.3 kB / 0.5789 GB, free: 48.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.7706, allocations: 1.299 MB / 0.5802 GB, free: 47.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004572/0.7711, allocations: 0.9411 MB / 0.5811 GB, free: 46.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009151/0.772, allocations: 156.6 kB / 0.5812 GB, free: 45.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002721/0.7723, allocations: 39.44 kB / 0.5813 GB, free: 45.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7723, allocations: 0 / 0.5813 GB, free: 45.9 MB / 378.7 MB Notification: Performance of Templates: time 0.01434/0.7866, allocations: 7.932 MB / 0.589 GB, free: 37.98 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)