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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002604/0.002604, allocations: 183.8 kB / 7.803 MB, free: 2.488 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 1.775/1.775, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001297/0.001297, allocations: 96.91 kB / 261.4 MB, free: 13.62 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.2907/0.2907, allocations: 37.97 MB / 347.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.038e-05/1.042e-05, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.09875, allocations: 56.31 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.4791, allocations: 101.4 MB / 0.5538 GB, free: 9.434 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.4795, allocations: 91.94 kB / 0.5539 GB, free: 9.344 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06316/0.5427, allocations: 13.95 MB / 0.5675 GB, free: 11.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.834e-05/0.5428, allocations: 12 kB / 0.5675 GB, free: 11.25 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.002477/0.5453, allocations: 0.9519 MB / 0.5684 GB, free: 10.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.5453, allocations: 8.031 kB / 0.5684 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.5456, allocations: 86.97 kB / 0.5685 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00533/0.551, allocations: 1.192 MB / 0.5697 GB, free: 8.902 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.5512, allocations: 92.7 kB / 0.5698 GB, free: 8.801 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.5514, allocations: 43.91 kB / 0.5698 GB, free: 8.758 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001686/0.5531, allocations: 0.5258 MB / 0.5703 GB, free: 8.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.5549, allocations: 0.7396 MB / 0.571 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.555, allocations: 0 / 0.571 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.629e-05/0.5551, allocations: 0 / 0.571 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.541e-05/0.5551, allocations: 16 kB / 0.5711 GB, free: 7.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006037/0.5611, allocations: 2.631 MB / 0.5736 GB, free: 4.703 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009061/0.5621, allocations: 390.7 kB / 0.574 GB, free: 4.305 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005623/0.5627, allocations: 247 kB / 0.5742 GB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.5627, allocations: 4.328 kB / 0.5742 GB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006559/0.5634, allocations: 286.8 kB / 0.5745 GB, free: 3.754 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 3.326e-06/0.5634, allocations: 0 / 0.5745 GB, free: 3.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.003332/0.5668, allocations: 1.306 MB / 0.5758 GB, free: 2.367 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.022e-05/0.5669, allocations: 118.9 kB / 0.5759 GB, free: 2.227 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000656/0.5675, allocations: 372.9 kB / 0.5763 GB, free: 1.863 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.061e-05/0.5676, allocations: 33.7 kB / 0.5763 GB, free: 1.824 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.5679, allocations: 341.9 kB / 0.5766 GB, free: 1.484 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.5681, allocations: 134.1 kB / 0.5767 GB, free: 1.352 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.5682, allocations: 0 / 0.5767 GB, free: 1.352 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5683, allocations: 339.5 kB / 0.5771 GB, free: 1.012 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.5688, allocations: 201.2 kB / 0.5773 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000674/0.5695, allocations: 369.3 kB / 0.5776 GB, free: 400 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006178/0.5702, allocations: 244.6 kB / 0.5778 GB, free: 156 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5702, allocations: 4 kB / 0.5779 GB, free: 152 kB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001778/0.572, allocations: 0.7089 MB / 0.5785 GB, free: 15.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.572, allocations: 8 kB / 0.5786 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.572, allocations: 4 kB / 0.5786 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.5724, allocations: 69.62 kB / 0.5786 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008442/0.5732, allocations: 111.8 kB / 0.5787 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.5746, allocations: 1.325 MB / 0.58 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.5751, allocations: 28.08 kB / 0.58 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.5752, allocations: 47.91 kB / 0.5801 GB, free: 13.69 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): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 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.0001992/0.5754, allocations: 53.5 kB / 0.5801 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.5756, allocations: 55.34 kB / 0.5802 GB, free: 13.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.5771, allocations: 0.5593 MB / 0.5807 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.5771, allocations: 4 kB / 0.5807 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.649e-06/0.5771, allocations: 4 kB / 0.5808 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.5772, allocations: 3.984 kB / 0.5808 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.5801, allocations: 1.283 MB / 0.582 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.5801, allocations: 0 / 0.582 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006501/0.5808, allocations: 63.81 kB / 0.5821 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003543/0.5812, allocations: 65.66 kB / 0.5821 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.708e-05/0.5813, allocations: 11.98 kB / 0.5821 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.5841, allocations: 2.714 MB / 0.5848 GB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5841, allocations: 0 / 0.5848 GB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002024/0.5862, allocations: 0.92 MB / 0.5857 GB, free: 7.539 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.5866, allocations: 168.4 kB / 0.5859 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.5867, allocations: 23.98 kB / 0.5859 GB, free: 7.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007786/0.5875, allocations: 43.86 kB / 0.5859 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/0.5876, allocations: 23.97 kB / 0.5859 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-05/0.5877, allocations: 19.98 kB / 0.586 GB, free: 7.246 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004926/0.5882, allocations: 275.2 kB / 0.5862 GB, free: 6.977 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009731/0.5892, allocations: 128 kB / 0.5863 GB, free: 6.852 MB / 426.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.0002725/0.5895, allocations: 137.5 kB / 0.5865 GB, free: 6.711 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.5911, allocations: 0.7065 MB / 0.5872 GB, free: 5.969 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.5911, allocations: 4.562 kB / 0.5872 GB, free: 5.965 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009306/0.592, allocations: 431.3 kB / 0.5876 GB, free: 5.523 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.5931, allocations: 107 kB / 0.5877 GB, free: 5.422 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.5966, allocations: 1.151 MB / 0.5888 GB, free: 4.219 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.5976, allocations: 1.034 MB / 0.5898 GB, free: 3.156 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5977, allocations: 0 / 0.5898 GB, free: 3.156 MB / 426.7 MB Notification: Performance of Templates: time 0.02319/0.6209, allocations: 12.56 MB / 0.6021 GB, free: 6.598 MB / 442.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)