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.002239/0.002239, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 82.64 kB / 261.8 MB, free: 1.684 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.2613/0.2613, allocations: 37.99 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.176e-05/2.174e-05, allocations: 0 / 409.9 MB, free: 35.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 56.32 MB / 466.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4815/0.5928, allocations: 101.5 MB / 0.5543 GB, free: 9.062 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5931, allocations: 91.17 kB / 0.5544 GB, free: 9.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05754/0.6507, allocations: 14.24 MB / 0.5683 GB, free: 13.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6507, allocations: 4.656 kB / 0.5683 GB, free: 13.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.242e-05/0.6508, allocations: 20 kB / 0.5683 GB, free: 13.86 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002456/0.6533, allocations: 0.9564 MB / 0.5693 GB, free: 12.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.6533, allocations: 8.031 kB / 0.5693 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002862/0.6536, allocations: 94.91 kB / 0.5694 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004928/0.6586, allocations: 1.17 MB / 0.5705 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.6588, allocations: 92.08 kB / 0.5706 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/0.659, allocations: 43.94 kB / 0.5706 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001429/0.6604, allocations: 0.4989 MB / 0.5711 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.6621, allocations: 0.7314 MB / 0.5718 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.6622, allocations: 4 kB / 0.5719 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.6623, allocations: 7.953 kB / 0.5719 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.6623, allocations: 16 kB / 0.5719 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005685/0.668, allocations: 2.623 MB / 0.5744 GB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.6699, allocations: 0.7983 MB / 0.5752 GB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006552/0.6705, allocations: 250.9 kB / 0.5755 GB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.6706, allocations: 8.328 kB / 0.5755 GB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006331/0.6712, allocations: 286.2 kB / 0.5757 GB, free: 7.254 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.066e-06/0.6713, allocations: 0 / 0.5757 GB, free: 7.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.00291/0.6742, allocations: 1.186 MB / 0.5769 GB, free: 6.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.6743, allocations: 118.3 kB / 0.577 GB, free: 6.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006245/0.675, allocations: 368.9 kB / 0.5774 GB, free: 5.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.668e-05/0.6751, allocations: 33.02 kB / 0.5774 GB, free: 5.715 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.6754, allocations: 402.3 kB / 0.5778 GB, free: 5.387 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.6756, allocations: 138 kB / 0.5779 GB, free: 5.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.6757, allocations: 0 / 0.5779 GB, free: 5.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.6758, allocations: 337.9 kB / 0.5782 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004427/0.6763, allocations: 183.9 kB / 0.5784 GB, free: 4.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005645/0.6769, allocations: 351.7 kB / 0.5787 GB, free: 4.488 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005242/0.6774, allocations: 222.2 kB / 0.579 GB, free: 4.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.6774, allocations: 8 kB / 0.579 GB, free: 4.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001485/0.6789, allocations: 0.5886 MB / 0.5795 GB, free: 3.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/0.679, allocations: 49.56 kB / 0.5796 GB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.6791, allocations: 11.97 kB / 0.5796 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00027/0.6793, allocations: 48.66 kB / 0.5796 GB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008062/0.6802, allocations: 118.7 kB / 0.5798 GB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.6819, allocations: 1.414 MB / 0.5811 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006883/0.6826, allocations: 23.97 kB / 0.5812 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.6827, allocations: 39.98 kB / 0.5812 GB, free: 2.137 MB / 378.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 (68): * Single equations (assignments): 66 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002307/0.683, allocations: 132.2 kB / 0.5813 GB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6831, allocations: 55.3 kB / 0.5814 GB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.6843, allocations: 463.1 kB / 0.5818 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.6843, allocations: 4 kB / 0.5818 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6844, allocations: 0 / 0.5818 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.6844, allocations: 11.98 kB / 0.5818 GB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.6871, allocations: 1.214 MB / 0.583 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.6871, allocations: 4.062 kB / 0.583 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005989/0.6877, allocations: 67.89 kB / 0.5831 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002363/0.688, allocations: 51.72 kB / 0.5831 GB, free: 452 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.6881, allocations: 19.86 kB / 0.5832 GB, free: 432 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001564/0.6896, allocations: 1.41 MB / 0.5845 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.6897, allocations: 0 / 0.5845 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.6913, allocations: 0.7944 MB / 0.5853 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/0.6917, allocations: 163.1 kB / 0.5855 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.6918, allocations: 25.05 kB / 0.5855 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006874/0.6925, allocations: 43.94 kB / 0.5855 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.6927, allocations: 22.28 kB / 0.5855 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.522e-05/0.6927, allocations: 23.69 kB / 0.5856 GB, free: 14.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004419/0.6932, allocations: 278.5 kB / 0.5858 GB, free: 13.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6932, allocations: 0 / 0.5858 GB, free: 13.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008494/0.6941, allocations: 136 kB / 0.586 GB, free: 13.7 MB / 394.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 (44): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002851/0.6944, allocations: 133.2 kB / 0.5861 GB, free: 13.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.6958, allocations: 0.6627 MB / 0.5867 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6959, allocations: 0 / 0.5867 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.6966, allocations: 326.5 kB / 0.5871 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009868/0.6976, allocations: 93.64 kB / 0.5871 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.7005, allocations: 1.147 MB / 0.5883 GB, free: 11.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008348/0.7014, allocations: 0.9916 MB / 0.5892 GB, free: 10.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002652/0.7017, allocations: 39.44 kB / 0.5893 GB, free: 10.61 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7017, allocations: 3.938 kB / 0.5893 GB, free: 10.61 MB / 394.7 MB Notification: Performance of Templates: time 0.02366/0.7254, allocations: 10.06 MB / 0.5991 GB, free: 0.6562 MB / 394.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)