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.001897/0.001897, allocations: 179.8 kB / 17.4 MB, free: 4.387 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.554/1.554, allocations: 194.5 MB / 212.6 MB, free: 2.934 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.001617/0.001617, allocations: 121.6 kB / 257.9 MB, free: 4.277 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1755/0.1755, allocations: 38.01 MB / 341.1 MB, free: 1.188 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003902, allocations: 12 kB / 405 MB, free: 68.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.09681, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3461/0.4429, allocations: 97.08 MB / 0.5423 GB, free: 13.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.4433, allocations: 100.1 kB / 0.5424 GB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04459/0.4879, allocations: 15.64 MB / 0.5577 GB, free: 244 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4879, allocations: 0 / 0.5577 GB, free: 244 kB / 362.7 MB Notification: Performance of Transformations before backend: time 5.89e-05/0.488, allocations: 12 kB / 0.5577 GB, free: 232 kB / 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.003426/0.4914, allocations: 1.113 MB / 0.5588 GB, free: 15.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.4915, allocations: 8.031 kB / 0.5588 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004824/0.492, allocations: 84.09 kB / 0.5589 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.4947, allocations: 0.9154 MB / 0.5598 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005035/0.4953, allocations: 344.3 kB / 0.5601 GB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.4955, allocations: 58.75 kB / 0.5602 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.498, allocations: 1.117 MB / 0.5612 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.4981, allocations: 3.984 kB / 0.5612 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.4982, allocations: 25.69 kB / 0.5613 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.4982, allocations: 12 kB / 0.5613 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002842/0.501, allocations: 1.193 MB / 0.5624 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005824/0.5069, allocations: 3.254 MB / 0.5656 GB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002135/0.509, allocations: 0.8359 MB / 0.5664 GB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.5104, allocations: 0.5957 MB / 0.567 GB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.5105, allocations: 4.438 kB / 0.567 GB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001471/0.512, allocations: 0.6761 MB / 0.5677 GB, free: 7.625 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.566e-06/0.512, allocations: 0 / 0.5677 GB, free: 7.625 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.004078/0.5161, allocations: 1.554 MB / 0.5692 GB, free: 6.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.5162, allocations: 140.5 kB / 0.5693 GB, free: 6.215 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005932/0.5168, allocations: 392.4 kB / 0.5697 GB, free: 5.898 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.266e-05/0.5169, allocations: 39.39 kB / 0.5698 GB, free: 5.863 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002912/0.5172, allocations: 294.6 kB / 0.57 GB, free: 5.637 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.5174, allocations: 165.1 kB / 0.5702 GB, free: 5.496 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.5175, allocations: 14.75 kB / 0.5702 GB, free: 5.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.5176, allocations: 357.5 kB / 0.5705 GB, free: 5.152 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.5187, allocations: 0.491 MB / 0.571 GB, free: 4.789 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.5198, allocations: 0.6042 MB / 0.5716 GB, free: 4.289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.522, allocations: 0.9942 MB / 0.5726 GB, free: 3.473 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.5221, allocations: 0 / 0.5726 GB, free: 3.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002699/0.5248, allocations: 1.177 MB / 0.5737 GB, free: 2.551 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.993e-05/0.5249, allocations: 49.5 kB / 0.5738 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.5249, allocations: 0 / 0.5738 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.272e-05/0.5249, allocations: 11.94 kB / 0.5738 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005724/0.5307, allocations: 1.592 MB / 0.5753 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007644/0.5383, allocations: 4.837 MB / 0.5801 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008868/0.5393, allocations: 136.9 kB / 0.5802 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.5395, allocations: 41.3 kB / 0.5802 GB, free: 12.03 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.0005757/0.5401, allocations: 247 kB / 0.5805 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.5402, allocations: 51.44 kB / 0.5805 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/0.5431, allocations: 1.11 MB / 0.5816 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.5431, allocations: 8 kB / 0.5816 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.5431, allocations: 0 / 0.5816 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.5432, allocations: 7.984 kB / 0.5816 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.5476, allocations: 2.277 MB / 0.5838 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.5476, allocations: 0 / 0.5838 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006865/0.5545, allocations: 1.837 MB / 0.5856 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.707e-05/0.5545, allocations: 7.938 kB / 0.5857 GB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.5547, allocations: 18.67 kB / 0.5857 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.5547, allocations: 4 kB / 0.5857 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5547, allocations: 4 kB / 0.5857 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004264/0.559, allocations: 1.88 MB / 0.5875 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004286/0.5594, allocations: 206 kB / 0.5877 GB, free: 5.422 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.5596, allocations: 31.92 kB / 0.5877 GB, free: 5.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008052/0.5604, allocations: 118.2 kB / 0.5879 GB, free: 5.297 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000242/0.5607, allocations: 98.41 kB / 0.5879 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.5607, allocations: 18.61 kB / 0.588 GB, free: 5.191 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003773/0.5611, allocations: 268.5 kB / 0.5882 GB, free: 4.984 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5611, allocations: 0 / 0.5882 GB, free: 4.984 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000854/0.562, allocations: 182.2 kB / 0.5884 GB, free: 4.82 MB / 394.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]) * 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.0003076/0.5623, allocations: 153.1 kB / 0.5885 GB, free: 4.676 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007713/0.57, allocations: 2.636 MB / 0.5911 GB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.5701, allocations: 0 / 0.5911 GB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003725/0.5738, allocations: 1.201 MB / 0.5923 GB, free: 1.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.5749, allocations: 131 kB / 0.5924 GB, free: 1.152 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004316/0.5793, allocations: 1.881 MB / 0.5942 GB, free: 15.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000683/0.58, allocations: 0.9253 MB / 0.5952 GB, free: 14.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007193/0.5807, allocations: 156.6 kB / 0.5953 GB, free: 14.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.5809, allocations: 46.73 kB / 0.5953 GB, free: 14.27 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/0.581, allocations: 0 / 0.5953 GB, free: 14.27 MB / 410.7 MB Notification: Performance of Templates: time 0.01644/0.5974, allocations: 7.988 MB / 0.6031 GB, free: 6.293 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)