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.001016/0.001016, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.158/1.158, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001556/0.001556, allocations: 116.4 kB / 256.9 MB, free: 4.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1569/0.1569, allocations: 38 MB / 340.1 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003715, allocations: 12 kB / 403.8 MB, free: 68.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07936/0.07975, allocations: 53.23 MB / 457 MB, free: 15.55 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2998/0.3796, allocations: 97.04 MB / 0.5411 GB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.3799, allocations: 98 kB / 0.5412 GB, free: 14.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04201/0.4219, allocations: 15.66 MB / 0.5564 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4219, allocations: 4 kB / 0.5564 GB, free: 0.543 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.422, allocations: 12 kB / 0.5565 GB, free: 0.5312 MB / 362.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.002254/0.4243, allocations: 1.115 MB / 0.5575 GB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.4243, allocations: 12.02 kB / 0.5576 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.4245, allocations: 83.16 kB / 0.5576 GB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003136/0.4276, allocations: 1.236 MB / 0.5588 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004044/0.428, allocations: 344.5 kB / 0.5592 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.4282, allocations: 64.38 kB / 0.5592 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.4303, allocations: 1.105 MB / 0.5603 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.4304, allocations: 3.938 kB / 0.5603 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.417e-05/0.4304, allocations: 33.3 kB / 0.5603 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.4305, allocations: 12 kB / 0.5604 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.433, allocations: 1.194 MB / 0.5615 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004841/0.4378, allocations: 3.265 MB / 0.5647 GB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.4399, allocations: 0.8466 MB / 0.5655 GB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.4399, allocations: 8.438 kB / 0.5655 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.4413, allocations: 0.6769 MB / 0.5662 GB, free: 8.094 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.4413, allocations: 0 / 0.5662 GB, free: 8.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.003633/0.4449, allocations: 1.552 MB / 0.5677 GB, free: 6.852 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.086e-05/0.445, allocations: 156 kB / 0.5679 GB, free: 6.672 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003641/0.4454, allocations: 339 kB / 0.5682 GB, free: 6.398 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/0.4455, allocations: 40.94 kB / 0.5682 GB, free: 6.359 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.4457, allocations: 295.9 kB / 0.5685 GB, free: 6.137 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.4458, allocations: 160.7 kB / 0.5687 GB, free: 6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.4459, allocations: 10.69 kB / 0.5687 GB, free: 5.996 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.446, allocations: 357 kB / 0.569 GB, free: 5.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009466/0.4469, allocations: 0.4885 MB / 0.5695 GB, free: 5.297 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.448, allocations: 0.5882 MB / 0.5701 GB, free: 4.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009341/0.4489, allocations: 0.4947 MB / 0.5706 GB, free: 4.426 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4489, allocations: 0 / 0.5706 GB, free: 4.426 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002123/0.451, allocations: 1.158 MB / 0.5717 GB, free: 3.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/0.4511, allocations: 49.12 kB / 0.5717 GB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.4511, allocations: 4 kB / 0.5717 GB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.4511, allocations: 8 kB / 0.5717 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005701/0.4568, allocations: 1.588 MB / 0.5733 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007326/0.4642, allocations: 4.978 MB / 0.5782 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007604/0.465, allocations: 138.9 kB / 0.5783 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.938e-05/0.4651, allocations: 43.86 kB / 0.5783 GB, free: 12.88 MB / 394.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 () * 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): 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.0004024/0.4655, allocations: 248.8 kB / 0.5786 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.4656, allocations: 47.44 kB / 0.5786 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/0.4681, allocations: 1.112 MB / 0.5797 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.4681, allocations: 4 kB / 0.5797 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4681, allocations: 7.953 kB / 0.5797 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4681, allocations: 4 kB / 0.5797 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003713/0.4718, allocations: 2.227 MB / 0.5819 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.4719, allocations: 4 kB / 0.5819 GB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006729/0.4786, allocations: 1.838 MB / 0.5837 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.139e-05/0.4786, allocations: 4 kB / 0.5837 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.824e-05/0.4787, allocations: 10.38 kB / 0.5837 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.4787, allocations: 11.92 kB / 0.5837 GB, free: 8.035 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4788, allocations: 4 kB / 0.5837 GB, free: 8.031 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.4824, allocations: 1.961 MB / 0.5856 GB, free: 6.422 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003411/0.4828, allocations: 204.8 kB / 0.5858 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.747e-05/0.4829, allocations: 27.73 kB / 0.5859 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/0.4836, allocations: 122 kB / 0.586 GB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.4838, allocations: 86.84 kB / 0.5861 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.4838, allocations: 23.92 kB / 0.5861 GB, free: 6.008 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002839/0.4841, allocations: 272.6 kB / 0.5863 GB, free: 5.797 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4841, allocations: 3.938 kB / 0.5863 GB, free: 5.793 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006247/0.4847, allocations: 185.5 kB / 0.5865 GB, free: 5.625 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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]) * Number of clocked states: 0 () * 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.0002187/0.485, allocations: 145.2 kB / 0.5867 GB, free: 5.488 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006426/0.4914, allocations: 2.436 MB / 0.589 GB, free: 3.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4914, allocations: 0 / 0.589 GB, free: 3.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00328/0.4947, allocations: 1.195 MB / 0.5902 GB, free: 2.266 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005937/0.4953, allocations: 118.9 kB / 0.5903 GB, free: 2.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.4987, allocations: 1.87 MB / 0.5921 GB, free: 440 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.4992, allocations: 0.9473 MB / 0.5931 GB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005529/0.4998, allocations: 156.6 kB / 0.5932 GB, free: 15.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.5, allocations: 39.44 kB / 0.5933 GB, free: 15.3 MB / 410.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5, allocations: 0 / 0.5933 GB, free: 15.3 MB / 410.7 MB Notification: Performance of Templates: time 0.01232/0.5123, allocations: 7.862 MB / 0.6009 GB, free: 7.449 MB / 410.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)