Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001619/0.001619, allocations: 189 kB / 8.135 MB, free: 2.164 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.216/1.216, allocations: 194.2 MB / 202.8 MB, free: 8.766 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.001709/0.001709, allocations: 120.7 kB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1689/0.1689, allocations: 37.9 MB / 330.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.921e-06, allocations: 0 / 389.8 MB, free: 78.14 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07567/0.07569, allocations: 53.23 MB / 443 MB, free: 25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2549/0.3306, allocations: 96.35 MB / 0.5267 GB, free: 8.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.3309, allocations: 91.67 kB / 0.5268 GB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03703/0.368, allocations: 13.92 MB / 0.5404 GB, free: 15.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.424e-05/0.3681, allocations: 23.88 kB / 0.5404 GB, free: 15.3 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001877/0.3699, allocations: 0.9566 MB / 0.5414 GB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.37, allocations: 8.031 kB / 0.5414 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002563/0.3702, allocations: 86.97 kB / 0.5415 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003264/0.3735, allocations: 1.198 MB / 0.5426 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.3736, allocations: 92.64 kB / 0.5427 GB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.3738, allocations: 40 kB / 0.5428 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009021/0.3747, allocations: 0.5199 MB / 0.5433 GB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.3758, allocations: 0.7404 MB / 0.544 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3758, allocations: 8 kB / 0.544 GB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.3759, allocations: 3.984 kB / 0.544 GB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.3759, allocations: 16 kB / 0.544 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003548/0.3795, allocations: 2.615 MB / 0.5466 GB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/0.38, allocations: 384.9 kB / 0.5469 GB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.3803, allocations: 255.4 kB / 0.5472 GB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.3803, allocations: 8.328 kB / 0.5472 GB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000369/0.3807, allocations: 293.7 kB / 0.5475 GB, free: 9.121 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.595e-06/0.3807, allocations: 0 / 0.5475 GB, free: 9.121 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001997/0.3827, allocations: 1.306 MB / 0.5487 GB, free: 7.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3828, allocations: 122.5 kB / 0.5489 GB, free: 7.781 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/0.3832, allocations: 370.5 kB / 0.5492 GB, free: 7.492 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.3833, allocations: 33.69 kB / 0.5492 GB, free: 7.453 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.3835, allocations: 304 kB / 0.5495 GB, free: 7.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.3836, allocations: 134.7 kB / 0.5497 GB, free: 7.066 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.3836, allocations: 4 kB / 0.5497 GB, free: 7.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3838, allocations: 360.7 kB / 0.55 GB, free: 6.723 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002852/0.3841, allocations: 202.4 kB / 0.5502 GB, free: 6.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.3844, allocations: 360.9 kB / 0.5506 GB, free: 6.254 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.3848, allocations: 249.3 kB / 0.5508 GB, free: 6.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3848, allocations: 4 kB / 0.5508 GB, free: 6.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001001/0.3858, allocations: 0.741 MB / 0.5515 GB, free: 5.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3859, allocations: 4 kB / 0.5515 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3859, allocations: 4 kB / 0.5515 GB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002155/0.3861, allocations: 68.31 kB / 0.5516 GB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004306/0.3865, allocations: 111.1 kB / 0.5517 GB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/0.3885, allocations: 2.714 MB / 0.5543 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003807/0.3889, allocations: 19.97 kB / 0.5544 GB, free: 2.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.568e-05/0.389, allocations: 47.67 kB / 0.5544 GB, free: 2.371 MB / 362.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.0001502/0.3892, allocations: 140.5 kB / 0.5545 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3893, allocations: 51.34 kB / 0.5546 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000797/0.3901, allocations: 0.5498 MB / 0.5551 GB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.3901, allocations: 8 kB / 0.5551 GB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3901, allocations: 3.906 kB / 0.5551 GB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3901, allocations: 4 kB / 0.5551 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.3917, allocations: 1.28 MB / 0.5564 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3917, allocations: 0 / 0.5564 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.3921, allocations: 71.02 kB / 0.5565 GB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.3923, allocations: 64.23 kB / 0.5565 GB, free: 496 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.3923, allocations: 7.984 kB / 0.5565 GB, free: 488 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001828/0.3941, allocations: 2.702 MB / 0.5592 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3942, allocations: 4.031 kB / 0.5592 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001044/0.3952, allocations: 0.9237 MB / 0.5601 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.3954, allocations: 167 kB / 0.5602 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.3956, allocations: 23.17 kB / 0.5603 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/0.396, allocations: 43.95 kB / 0.5603 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.3961, allocations: 23.72 kB / 0.5603 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.3961, allocations: 19.73 kB / 0.5603 GB, free: 12.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000266/0.3964, allocations: 273.8 kB / 0.5606 GB, free: 12.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006518/0.397, allocations: 136 kB / 0.5607 GB, free: 12.25 MB / 378.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.0001818/0.3972, allocations: 138.2 kB / 0.5609 GB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000944/0.3982, allocations: 0.7355 MB / 0.5616 GB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3982, allocations: 0 / 0.5616 GB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005564/0.3988, allocations: 435.7 kB / 0.562 GB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.3994, allocations: 112.8 kB / 0.5621 GB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.4014, allocations: 1.092 MB / 0.5632 GB, free: 10 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007914/0.4022, allocations: 1.025 MB / 0.5642 GB, free: 8.98 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.4022, allocations: 4 kB / 0.5642 GB, free: 8.977 MB / 378.7 MB Notification: Performance of Templates: time 0.01227/0.4145, allocations: 6.267 MB / 0.5703 GB, free: 2.75 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)