Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001621/0.001621, allocations: 187.7 kB / 7.801 MB, free: 2.277 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.815/1.815, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.00169/0.00169, allocations: 97.02 kB / 261.4 MB, free: 13.61 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.2664/0.2664, allocations: 37.98 MB / 347.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.132e-05/1.15e-05, allocations: 4 kB / 409.3 MB, free: 47.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 56.32 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3548/0.4584, allocations: 101.3 MB / 0.5537 GB, free: 9.551 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/0.4588, allocations: 91.95 kB / 0.5538 GB, free: 9.461 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07304/0.5319, allocations: 15.36 MB / 0.5688 GB, free: 9.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.817e-05/0.532, allocations: 12 kB / 0.5688 GB, free: 9.918 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003988/0.536, allocations: 1.069 MB / 0.5698 GB, free: 8.789 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.5361, allocations: 8.031 kB / 0.5698 GB, free: 8.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005015/0.5366, allocations: 87.16 kB / 0.5699 GB, free: 8.695 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006306/0.5429, allocations: 1.234 MB / 0.5711 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008184/0.5437, allocations: 330.9 kB / 0.5714 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/0.5441, allocations: 40 kB / 0.5715 GB, free: 7.008 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002765/0.5468, allocations: 0.8225 MB / 0.5723 GB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002353/0.5492, allocations: 0.8388 MB / 0.5731 GB, free: 5.305 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.5493, allocations: 0 / 0.5731 GB, free: 5.305 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.5494, allocations: 4 kB / 0.5731 GB, free: 5.301 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.5495, allocations: 15.91 kB / 0.5731 GB, free: 5.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009599/0.5591, allocations: 3.21 MB / 0.5762 GB, free: 1.984 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.5609, allocations: 0.5374 MB / 0.5768 GB, free: 1.434 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.562, allocations: 394.8 kB / 0.5771 GB, free: 1.043 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.496e-05/0.5621, allocations: 8.438 kB / 0.5772 GB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.5634, allocations: 477 kB / 0.5776 GB, free: 0.543 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.727e-06/0.5634, allocations: 0 / 0.5776 GB, free: 0.543 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002031/0.5654, allocations: 0.6324 MB / 0.5782 GB, free: 15.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.5656, allocations: 144.6 kB / 0.5784 GB, free: 15.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005461/0.5661, allocations: 286.6 kB / 0.5786 GB, free: 15.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.5663, allocations: 33.69 kB / 0.5787 GB, free: 15.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.5666, allocations: 298.6 kB / 0.579 GB, free: 15.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.5668, allocations: 157.8 kB / 0.5791 GB, free: 14.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.494e-05/0.5669, allocations: 0 / 0.5791 GB, free: 14.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.5671, allocations: 334.8 kB / 0.5794 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009503/0.568, allocations: 329.2 kB / 0.5797 GB, free: 14.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.5691, allocations: 444.8 kB / 0.5802 GB, free: 13.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008388/0.5699, allocations: 309.2 kB / 0.5805 GB, free: 13.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.57, allocations: 0 / 0.5805 GB, free: 13.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002218/0.5722, allocations: 0.7616 MB / 0.5812 GB, free: 12.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.5723, allocations: 4 kB / 0.5812 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.5723, allocations: 4 kB / 0.5812 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/0.5723, allocations: 7.938 kB / 0.5812 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0145/0.5868, allocations: 1.776 MB / 0.583 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.5981, allocations: 4.101 MB / 0.587 GB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.5995, allocations: 127.5 kB / 0.5871 GB, free: 6.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.5997, allocations: 43.91 kB / 0.5871 GB, free: 6.477 MB / 426.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.0002558/0.6, allocations: 43.39 kB / 0.5872 GB, free: 6.426 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.6002, allocations: 51.38 kB / 0.5872 GB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/0.6022, allocations: 0.6716 MB / 0.5879 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.6023, allocations: 8 kB / 0.5879 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6023, allocations: 0 / 0.5879 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.6023, allocations: 11.89 kB / 0.5879 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.6067, allocations: 1.75 MB / 0.5896 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.6068, allocations: 0 / 0.5896 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01754/0.6243, allocations: 2.057 MB / 0.5916 GB, free: 1.793 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.715e-05/0.6244, allocations: 4 kB / 0.5916 GB, free: 1.789 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001685/0.6246, allocations: 11.98 kB / 0.5916 GB, free: 1.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.888e-06/0.6246, allocations: 8 kB / 0.5916 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6246, allocations: 0 / 0.5916 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003292/0.6279, allocations: 1.344 MB / 0.5929 GB, free: 356 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005433/0.6285, allocations: 204.3 kB / 0.5931 GB, free: 132 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/0.6288, allocations: 27.98 kB / 0.5932 GB, free: 104 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.6303, allocations: 124 kB / 0.5933 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003361/0.6307, allocations: 75.72 kB / 0.5934 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.948e-05/0.6308, allocations: 19.98 kB / 0.5934 GB, free: 15.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003769/0.6312, allocations: 216.6 kB / 0.5936 GB, free: 15.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009992/0.6322, allocations: 167.5 kB / 0.5937 GB, free: 15.51 MB / 442.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.0003471/0.6326, allocations: 151.1 kB / 0.5939 GB, free: 15.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0209/0.6535, allocations: 3.137 MB / 0.5969 GB, free: 12.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.6535, allocations: 0 / 0.5969 GB, free: 12.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006466/0.66, allocations: 1.035 MB / 0.598 GB, free: 11.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.6612, allocations: 89.2 kB / 0.598 GB, free: 11.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006067/0.6673, allocations: 1.353 MB / 0.5994 GB, free: 9.676 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.6685, allocations: 0.9832 MB / 0.6003 GB, free: 8.664 MB / 442.7 MB Notification: Performance of SimCode: time 3.286e-06/0.6685, allocations: 0 / 0.6003 GB, free: 8.664 MB / 442.7 MB Notification: Performance of Templates: time 0.02413/0.6926, allocations: 10.65 MB / 0.6107 GB, free: 14 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)