Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002492/0.002492, allocations: 184.9 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.958/1.958, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 83.62 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2691/0.2691, allocations: 37.98 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.202e-05, allocations: 3.984 kB / 416.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.09841, allocations: 56.32 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4664/0.5649, allocations: 102.1 MB / 0.5618 GB, free: 1.598 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003342/0.5653, allocations: 91.94 kB / 0.5619 GB, free: 1.508 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06542/0.6307, allocations: 14.37 MB / 0.5759 GB, free: 3.004 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6308, allocations: 0 / 0.5759 GB, free: 3.004 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.387e-05/0.6308, allocations: 16 kB / 0.5759 GB, free: 2.988 MB / 410.7 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.002509/0.6334, allocations: 0.9563 MB / 0.5768 GB, free: 1.973 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.6334, allocations: 8.031 kB / 0.5768 GB, free: 1.965 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.6337, allocations: 90.92 kB / 0.5769 GB, free: 1.875 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005186/0.6389, allocations: 1.18 MB / 0.5781 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.6392, allocations: 112.7 kB / 0.5782 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/0.6394, allocations: 67.98 kB / 0.5783 GB, free: 472 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002126/0.6415, allocations: 0.8091 MB / 0.579 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/0.6416, allocations: 0 / 0.579 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.6417, allocations: 28 kB / 0.5791 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.6417, allocations: 15.95 kB / 0.5791 GB, free: 15.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.6433, allocations: 0.5594 MB / 0.5796 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006429/0.6498, allocations: 2.754 MB / 0.5823 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.6519, allocations: 0.8074 MB / 0.5831 GB, free: 11.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.6525, allocations: 238.4 kB / 0.5833 GB, free: 11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.84e-05/0.6525, allocations: 16.2 kB / 0.5834 GB, free: 10.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007131/0.6533, allocations: 298.8 kB / 0.5836 GB, free: 10.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 3.557e-06/0.6533, allocations: 0 / 0.5836 GB, free: 10.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.003483/0.6568, allocations: 1.372 MB / 0.585 GB, free: 9.223 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.589e-05/0.6569, allocations: 114.8 kB / 0.5851 GB, free: 9.086 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008575/0.6578, allocations: 460.6 kB / 0.5855 GB, free: 8.625 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.6579, allocations: 37.7 kB / 0.5856 GB, free: 8.582 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003557/0.6582, allocations: 385 kB / 0.5859 GB, free: 8.207 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.6584, allocations: 150.1 kB / 0.5861 GB, free: 8.059 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.6585, allocations: 12 kB / 0.5861 GB, free: 8.047 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.6587, allocations: 334.8 kB / 0.5864 GB, free: 7.711 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005194/0.6592, allocations: 205.2 kB / 0.5866 GB, free: 7.512 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006898/0.6599, allocations: 359 kB / 0.5869 GB, free: 7.098 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006908/0.6606, allocations: 287.2 kB / 0.5872 GB, free: 6.809 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.6606, allocations: 4 kB / 0.5872 GB, free: 6.805 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001825/0.6625, allocations: 0.789 MB / 0.588 GB, free: 5.977 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.547e-05/0.6626, allocations: 49.69 kB / 0.588 GB, free: 5.922 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.6626, allocations: 7.984 kB / 0.588 GB, free: 5.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.6629, allocations: 69.69 kB / 0.5881 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007874/0.6637, allocations: 107.8 kB / 0.5882 GB, free: 5.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003049/0.6668, allocations: 2.849 MB / 0.591 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006897/0.6675, allocations: 32.05 kB / 0.591 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.6677, allocations: 47.97 kB / 0.5911 GB, free: 2.543 MB / 426.7 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,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.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): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.6679, allocations: 152.5 kB / 0.5912 GB, free: 2.387 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.6681, allocations: 59.3 kB / 0.5913 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.6696, allocations: 0.599 MB / 0.5919 GB, free: 1.688 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.6696, allocations: 4 kB / 0.5919 GB, free: 1.684 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6696, allocations: 4 kB / 0.5919 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.6697, allocations: 0 / 0.5919 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.6727, allocations: 1.433 MB / 0.5933 GB, free: 156 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.6727, allocations: 4 kB / 0.5933 GB, free: 152 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005741/0.6733, allocations: 63.89 kB / 0.5933 GB, free: 88 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.6736, allocations: 65.67 kB / 0.5934 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.837e-05/0.6737, allocations: 16.05 kB / 0.5934 GB, free: 0 / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003121/0.6769, allocations: 2.837 MB / 0.5962 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6769, allocations: 0 / 0.5962 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/0.679, allocations: 0.9471 MB / 0.5971 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.6793, allocations: 168.4 kB / 0.5973 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.6795, allocations: 27.98 kB / 0.5973 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007334/0.6803, allocations: 47.95 kB / 0.5973 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.6804, allocations: 31.89 kB / 0.5974 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.435e-05/0.6805, allocations: 23.98 kB / 0.5974 GB, free: 11.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006477/0.6811, allocations: 345.5 kB / 0.5977 GB, free: 11.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6811, allocations: 4 kB / 0.5977 GB, free: 11.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009334/0.6821, allocations: 156 kB / 0.5979 GB, free: 11.08 MB / 442.7 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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002822/0.6824, allocations: 135.9 kB / 0.598 GB, free: 10.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.6842, allocations: 0.8268 MB / 0.5988 GB, free: 10.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.6842, allocations: 1.375 kB / 0.5988 GB, free: 10.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009841/0.6852, allocations: 465.3 kB / 0.5993 GB, free: 9.594 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.6863, allocations: 137.9 kB / 0.5994 GB, free: 9.461 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.6893, allocations: 1.182 MB / 0.6005 GB, free: 8.234 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007997/0.6901, allocations: 0.9882 MB / 0.6015 GB, free: 7.219 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.6904, allocations: 47.42 kB / 0.6016 GB, free: 7.176 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6904, allocations: 0 / 0.6016 GB, free: 7.176 MB / 442.7 MB Notification: Performance of Templates: time 0.02522/0.7156, allocations: 12.91 MB / 0.6142 GB, free: 10.25 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)