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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001987/0.001987, allocations: 111.6 kB / 17.29 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002482/0.002482, allocations: 193.3 kB / 18.21 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.396/2.396, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3905/0.3905, allocations: 38.03 MB / 330.1 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002622/0.002622, allocations: 66.53 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1883, allocations: 58.06 MB / 457 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.01597/0.2043, allocations: 7.019 MB / 464 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006716/0.2111, allocations: 1.858 MB / 465.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.2126, allocations: 43.75 kB / 465.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009936/0.2137, allocations: 127.2 kB / 466 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.2158, allocations: 326.5 kB / 466.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.2171, allocations: 283.7 kB / 466.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002767/0.2199, allocations: 1.344 MB / 468 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009069/0.2209, allocations: 360.6 kB / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001694/0.2226, allocations: 0.5295 MB / 468.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.2243, allocations: 0.5764 MB / 469.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004339/0.2248, allocations: 95.94 kB / 469.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005112/0.2253, allocations: 92 kB / 469.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008902/0.2262, allocations: 347.2 kB / 470 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009506/0.2272, allocations: 418.3 kB / 470.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.2286, allocations: 0.8225 MB / 471.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2286, allocations: 0 / 471.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.2287, allocations: 0 / 471.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.2287, allocations: 4 kB / 471.2 MB, free: 10.15 MB / 350.1 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.00441/0.2331, allocations: 1.203 MB / 472.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.976e-05/0.2332, allocations: 11.89 kB / 472.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.2336, allocations: 84.09 kB / 472.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.236, allocations: 0.6315 MB / 473.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008129/0.2368, allocations: 339.3 kB / 473.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002342/0.2371, allocations: 63.94 kB / 473.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004109/0.2412, allocations: 1.039 MB / 474.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.2413, allocations: 4 kB / 474.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/0.2414, allocations: 20 kB / 474.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.2415, allocations: 16 kB / 474.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005031/0.2465, allocations: 1.089 MB / 475.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009497/0.2561, allocations: 3.209 MB / 478.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0036/0.2597, allocations: 0.7497 MB / 479.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002547/0.2623, allocations: 0.5284 MB / 480.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.2625, allocations: 16.42 kB / 480.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002617/0.2651, allocations: 0.6148 MB / 480.8 MB, free: 212 kB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 5.61e-06/0.2652, allocations: 0 / 480.8 MB, free: 212 kB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00707/0.2722, allocations: 1.371 MB / 482.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/0.2725, allocations: 140.5 kB / 482.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000925/0.2734, allocations: 389.9 kB / 482.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.2736, allocations: 37.7 kB / 482.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004943/0.2741, allocations: 292.3 kB / 483 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/0.2745, allocations: 169.7 kB / 483.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004081/0.2749, allocations: 118.1 kB / 483.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000245/0.2752, allocations: 362.8 kB / 483.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.277, allocations: 456.8 kB / 484.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.2789, allocations: 0.5484 MB / 484.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003405/0.2823, allocations: 0.8896 MB / 485.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.2823, allocations: 0 / 485.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004383/0.2867, allocations: 1.086 MB / 486.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.2869, allocations: 53.62 kB / 486.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.2869, allocations: 4 kB / 486.7 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.979e-05/0.287, allocations: 8.219 kB / 486.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009478/0.2965, allocations: 1.108 MB / 487.8 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.3101, allocations: 4.701 MB / 492.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.3117, allocations: 111.4 kB / 492.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003083/0.312, allocations: 35.97 kB / 492.6 MB, free: 3.91 MB / 366.1 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 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001032/0.3131, allocations: 255.3 kB / 492.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.3134, allocations: 55.36 kB / 492.9 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004731/0.3182, allocations: 0.981 MB / 493.9 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.3182, allocations: 12 kB / 493.9 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.3183, allocations: 3.938 kB / 493.9 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.378e-05/0.3183, allocations: 7.984 kB / 493.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007659/0.326, allocations: 2.135 MB / 496.1 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/0.326, allocations: 4 kB / 496.1 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01146/0.3375, allocations: 1.284 MB / 497.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.419e-05/0.3376, allocations: 4 kB / 497.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002245/0.3378, allocations: 11.98 kB / 497.4 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.44e-05/0.3379, allocations: 4 kB / 497.4 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.481e-05/0.3379, allocations: 15.92 kB / 497.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007347/0.3453, allocations: 1.691 MB / 499.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006648/0.346, allocations: 204.5 kB / 499.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003543/0.3464, allocations: 31.98 kB / 499.3 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.3477, allocations: 87.88 kB / 499.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003951/0.3481, allocations: 99.72 kB / 499.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.561e-05/0.3482, allocations: 16 kB / 499.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006497/0.3489, allocations: 271.1 kB / 499.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.3489, allocations: 0 / 499.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001266/0.3502, allocations: 183.5 kB / 500 MB, free: 12.42 MB / 382.1 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]) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003617/0.3506, allocations: 130.3 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01376/0.3644, allocations: 2.168 MB / 0.4905 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.869e-05/0.3645, allocations: 0 / 0.4905 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006178/0.3707, allocations: 0.9368 MB / 0.4914 GB, free: 9.172 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.3725, allocations: 130.5 kB / 0.4915 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007635/0.3802, allocations: 1.884 MB / 0.4934 GB, free: 7.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.3815, allocations: 0.9251 MB / 0.4943 GB, free: 6.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006949/0.3822, allocations: 51.44 kB / 0.4943 GB, free: 6.113 MB / 382.1 MB Notification: Performance of SimCode: time 1.884e-06/0.3823, allocations: 0 / 0.4943 GB, free: 6.113 MB / 382.1 MB Notification: Performance of Templates: time 0.3679/0.7502, allocations: 11.39 MB / 0.5054 GB, free: 57.01 MB / 382.1 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)