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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001544/0.001544, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.001458/0.001458, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2012/0.2012, allocations: 37.99 MB / 309.8 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 59.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2194, allocations: 55.26 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005731/0.2251, allocations: 5.964 MB / 438 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.2272, allocations: 1.598 MB / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.2274, allocations: 23.81 kB / 439.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000402/0.2278, allocations: 142.9 kB / 439.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005672/0.2284, allocations: 362.1 kB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004046/0.2288, allocations: 315.5 kB / 440.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008193/0.2296, allocations: 1.34 MB / 441.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.23, allocations: 372.5 kB / 442.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004383/0.2304, allocations: 0.5217 MB / 442.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005653/0.231, allocations: 0.5569 MB / 443.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.497e-05/0.2311, allocations: 91.98 kB / 443.3 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.2312, allocations: 92 kB / 443.4 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002442/0.2315, allocations: 339.2 kB / 443.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002808/0.2318, allocations: 410.3 kB / 444.1 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000625/0.2324, allocations: 1.056 MB / 445.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2324, allocations: 0 / 445.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2324, allocations: 3.984 kB / 445.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.2324, allocations: 0 / 445.2 MB, free: 6.301 MB / 318.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.002111/0.2346, allocations: 1.207 MB / 446.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2346, allocations: 11.89 kB / 446.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.2347, allocations: 76.19 kB / 446.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.2358, allocations: 0.6588 MB / 447.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/0.2362, allocations: 339.4 kB / 447.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-05/0.2363, allocations: 67.88 kB / 447.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.2379, allocations: 1.039 MB / 448.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.238, allocations: 7.922 kB / 448.6 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.525e-05/0.238, allocations: 24 kB / 448.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2381, allocations: 12 kB / 448.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.2401, allocations: 1.089 MB / 449.7 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.2445, allocations: 3.193 MB / 452.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.2463, allocations: 0.7489 MB / 453.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.2475, allocations: 0.526 MB / 454.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.074e-05/0.2476, allocations: 8.375 kB / 454.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.2489, allocations: 0.6226 MB / 454.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.2489, allocations: 0 / 454.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.003482/0.2524, allocations: 1.374 MB / 456.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.363e-05/0.2525, allocations: 144.5 kB / 456.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.2529, allocations: 393.8 kB / 456.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.514e-05/0.253, allocations: 37.7 kB / 456.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.2532, allocations: 292.3 kB / 457 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.2534, allocations: 165.7 kB / 457.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.2536, allocations: 118.1 kB / 457.3 MB, free: 9.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2537, allocations: 358.8 kB / 457.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009292/0.2547, allocations: 456.9 kB / 458.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009656/0.2557, allocations: 0.56 MB / 458.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.2574, allocations: 0.8896 MB / 459.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2574, allocations: 0 / 459.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002094/0.2595, allocations: 1.085 MB / 460.6 MB, free: 6.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.755e-05/0.2596, allocations: 57.62 kB / 460.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.2596, allocations: 11.97 kB / 460.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.2596, allocations: 4 kB / 460.7 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004901/0.2645, allocations: 1.108 MB / 461.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00698/0.2715, allocations: 4.697 MB / 466.5 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007343/0.2723, allocations: 107.5 kB / 466.6 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.2725, allocations: 35.97 kB / 466.6 MB, free: 40 kB / 334.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.0005259/0.273, allocations: 263.3 kB / 466.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.2731, allocations: 51.38 kB / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002397/0.2755, allocations: 0.981 MB / 467.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.2756, allocations: 11.98 kB / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2756, allocations: 0 / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.2756, allocations: 4 kB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003928/0.2795, allocations: 2.122 MB / 470.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.2795, allocations: 0 / 470.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005937/0.2855, allocations: 1.284 MB / 471.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.384e-05/0.2855, allocations: 8 kB / 471.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.2857, allocations: 15.98 kB / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/0.2857, allocations: 4 kB / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/0.2857, allocations: 7.938 kB / 471.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00377/0.2895, allocations: 1.705 MB / 473.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004181/0.2899, allocations: 200.3 kB / 473.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.2901, allocations: 32 kB / 473.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.2907, allocations: 87.88 kB / 473.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.2909, allocations: 99.72 kB / 473.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/0.291, allocations: 19.98 kB / 473.5 MB, free: 9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003287/0.2913, allocations: 267.2 kB / 473.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2914, allocations: 0 / 473.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006547/0.292, allocations: 183.6 kB / 474 MB, free: 8.559 MB / 350.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.0001832/0.2922, allocations: 127.1 kB / 474.1 MB, free: 8.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006797/0.299, allocations: 2.082 MB / 476.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.299, allocations: 0 / 476.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003204/0.3022, allocations: 0.964 MB / 477.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000836/0.3031, allocations: 136.9 kB / 477.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/0.3066, allocations: 1.581 MB / 478.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005569/0.3072, allocations: 0.929 MB / 479.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004861/0.3077, allocations: 160.6 kB / 479.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.3079, allocations: 47.44 kB / 480 MB, free: 2.445 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3079, allocations: 0 / 480 MB, free: 2.445 MB / 350.1 MB Notification: Performance of Templates: time 0.0154/0.3233, allocations: 8.659 MB / 488.6 MB, free: 9.809 MB / 366.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)