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") [: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.001662/0.001662, allocations: 190.2 kB / 8.138 MB, free: 2.211 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.302/1.302, allocations: 194.2 MB / 202.8 MB, free: 8.68 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.001781/0.001781, allocations: 121.8 kB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.212/0.212, allocations: 37.92 MB / 330.5 MB, free: 6.922 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.324e-06/7.664e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08232, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2846/0.367, allocations: 96.25 MB / 0.5266 GB, free: 8.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.3672, allocations: 91.19 kB / 0.5267 GB, free: 8.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04324/0.4105, allocations: 15.33 MB / 0.5417 GB, free: 14.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.433e-05/0.4106, allocations: 13.84 kB / 0.5417 GB, free: 14.13 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003037/0.4137, allocations: 1.065 MB / 0.5427 GB, free: 13.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.4137, allocations: 8.031 kB / 0.5428 GB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004275/0.4142, allocations: 87.16 kB / 0.5428 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004068/0.4182, allocations: 1.24 MB / 0.544 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005129/0.4188, allocations: 327.6 kB / 0.5444 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002081/0.419, allocations: 39.98 kB / 0.5444 GB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001574/0.4206, allocations: 0.8227 MB / 0.5452 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.422, allocations: 0.8489 MB / 0.546 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.422, allocations: 0 / 0.546 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-05/0.4221, allocations: 7.984 kB / 0.546 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.4222, allocations: 15.98 kB / 0.5461 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.4275, allocations: 3.184 MB / 0.5492 GB, free: 7.684 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008839/0.4284, allocations: 0.5357 MB / 0.5497 GB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005853/0.429, allocations: 394.8 kB / 0.5501 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.008e-05/0.4291, allocations: 12.38 kB / 0.5501 GB, free: 7.035 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006402/0.4297, allocations: 476.4 kB / 0.5505 GB, free: 6.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.995e-06/0.4297, allocations: 0 / 0.5505 GB, free: 6.676 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001098/0.4308, allocations: 0.6214 MB / 0.5511 GB, free: 6.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.869e-05/0.4309, allocations: 140.5 kB / 0.5513 GB, free: 6.062 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.4313, allocations: 292.2 kB / 0.5515 GB, free: 5.832 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.4314, allocations: 29.7 kB / 0.5516 GB, free: 5.797 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.4315, allocations: 255 kB / 0.5518 GB, free: 5.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.4317, allocations: 162.2 kB / 0.552 GB, free: 5.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.4318, allocations: 0 / 0.552 GB, free: 5.426 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4319, allocations: 359.4 kB / 0.5523 GB, free: 5.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.4324, allocations: 330.2 kB / 0.5526 GB, free: 4.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005072/0.4329, allocations: 442.6 kB / 0.5531 GB, free: 4.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.4333, allocations: 303.1 kB / 0.5533 GB, free: 4.352 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.4334, allocations: 0 / 0.5533 GB, free: 4.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00117/0.4345, allocations: 0.7754 MB / 0.5541 GB, free: 3.785 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.4346, allocations: 8.375 kB / 0.5541 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.4346, allocations: 4 kB / 0.5541 GB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.4346, allocations: 8 kB / 0.5541 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00664/0.4412, allocations: 1.775 MB / 0.5559 GB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/0.4472, allocations: 4.103 MB / 0.5599 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008951/0.4481, allocations: 135.5 kB / 0.56 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/0.4483, allocations: 35.22 kB / 0.56 GB, free: 13.8 MB / 378.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 () * 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.0002337/0.4485, allocations: 129.7 kB / 0.5601 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.4487, allocations: 47.44 kB / 0.5602 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.4499, allocations: 0.6744 MB / 0.5609 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.4499, allocations: 7.984 kB / 0.5609 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4499, allocations: 4 kB / 0.5609 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.4499, allocations: 7.984 kB / 0.5609 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002625/0.4525, allocations: 1.774 MB / 0.5626 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4526, allocations: 0 / 0.5626 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008082/0.4606, allocations: 2.061 MB / 0.5646 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/0.4607, allocations: 4 kB / 0.5646 GB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.4609, allocations: 11.8 kB / 0.5646 GB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.4609, allocations: 4 kB / 0.5646 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.4609, allocations: 7.938 kB / 0.5646 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002054/0.463, allocations: 1.348 MB / 0.566 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.4634, allocations: 203.5 kB / 0.5662 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.4636, allocations: 24.67 kB / 0.5662 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008555/0.4645, allocations: 119.9 kB / 0.5663 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.4647, allocations: 78.34 kB / 0.5664 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.569e-05/0.4647, allocations: 15.44 kB / 0.5664 GB, free: 8.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002823/0.465, allocations: 221.8 kB / 0.5666 GB, free: 7.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008452/0.4659, allocations: 167.6 kB / 0.5668 GB, free: 7.828 MB / 378.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]) * 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.0002803/0.4662, allocations: 141.8 kB / 0.5669 GB, free: 7.684 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00959/0.4758, allocations: 3.127 MB / 0.5699 GB, free: 4.805 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.852e-06/0.4758, allocations: 0 / 0.5699 GB, free: 4.805 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003434/0.4793, allocations: 1.076 MB / 0.571 GB, free: 3.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008746/0.4802, allocations: 90.8 kB / 0.5711 GB, free: 3.805 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.4839, allocations: 1.291 MB / 0.5723 GB, free: 2.641 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000841/0.4848, allocations: 0.9837 MB / 0.5733 GB, free: 1.656 MB / 378.7 MB Notification: Performance of SimCode: time 2.374e-06/0.4848, allocations: 0 / 0.5733 GB, free: 1.656 MB / 378.7 MB Notification: Performance of Templates: time 0.01534/0.5001, allocations: 8.42 MB / 0.5815 GB, free: 9.27 MB / 394.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)