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.0007444/0.0007444, allocations: 91.28 kB / 16.65 MB, free: 6.266 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.0008967/0.0008968, allocations: 180.4 kB / 17.56 MB, free: 5.879 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.475/1.475, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1688/0.1688, allocations: 38.05 MB / 310.1 MB, free: 6.004 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.0005175/0.0005174, allocations: 12 kB / 377.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2971, allocations: 56.33 MB / 433.5 MB, free: 18.71 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005654/0.3028, allocations: 6.578 MB / 440.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.3055, allocations: 1.906 MB / 442 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003936/0.3059, allocations: 43.69 kB / 442 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004224/0.3063, allocations: 115.2 kB / 442.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006163/0.307, allocations: 334.5 kB / 442.5 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.3075, allocations: 283.6 kB / 442.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.3086, allocations: 1.66 MB / 444.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003451/0.3089, allocations: 306.9 kB / 444.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004434/0.3094, allocations: 438.1 kB / 445.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005784/0.31, allocations: 0.5218 MB / 445.6 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.531e-05/0.31, allocations: 36 kB / 445.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.712e-05/0.3102, allocations: 40 kB / 445.7 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.3104, allocations: 287.3 kB / 446 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002822/0.3107, allocations: 383.9 kB / 446.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005913/0.3113, allocations: 0.9851 MB / 447.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3113, allocations: 0 / 447.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3113, allocations: 0 / 447.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.3114, allocations: 0 / 447.4 MB, free: 4.781 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.002126/0.3135, allocations: 1.075 MB / 448.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.3135, allocations: 15.98 kB / 448.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.3137, allocations: 84.08 kB / 448.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009677/0.3147, allocations: 0.6277 MB / 449.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003443/0.315, allocations: 351.4 kB / 449.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.3152, allocations: 63.94 kB / 449.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.317, allocations: 1.101 MB / 450.7 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3171, allocations: 3.938 kB / 450.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.3172, allocations: 27.98 kB / 450.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3172, allocations: 12 kB / 450.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.3195, allocations: 1.202 MB / 451.9 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004741/0.3243, allocations: 3.275 MB / 455.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002198/0.3265, allocations: 0.8348 MB / 456 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.3279, allocations: 0.5968 MB / 456.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.328, allocations: 4.438 kB / 456.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001539/0.3295, allocations: 0.685 MB / 457.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.3296, allocations: 4 kB / 457.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004243/0.3338, allocations: 1.553 MB / 458.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.3339, allocations: 148.5 kB / 459 MB, free: 8.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004536/0.3344, allocations: 393.8 kB / 459.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.778e-05/0.3345, allocations: 37.7 kB / 459.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.3347, allocations: 292.3 kB / 459.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.3349, allocations: 161.7 kB / 459.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.335, allocations: 57.69 kB / 459.9 MB, free: 7.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3351, allocations: 362.8 kB / 460.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.3362, allocations: 0.493 MB / 460.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.3374, allocations: 0.6108 MB / 461.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.3395, allocations: 0.9872 MB / 462.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3395, allocations: 4 kB / 462.4 MB, free: 5.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002661/0.3422, allocations: 1.183 MB / 463.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.491e-05/0.3423, allocations: 53.62 kB / 463.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3423, allocations: 4 kB / 463.6 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/0.3423, allocations: 7.984 kB / 463.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00636/0.3487, allocations: 1.588 MB / 465.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008227/0.3569, allocations: 4.832 MB / 470 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.358, allocations: 135.4 kB / 470.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-05/0.3581, allocations: 43.92 kB / 470.2 MB, free: 13.13 MB / 350.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.0005733/0.3587, allocations: 255.3 kB / 470.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.262e-05/0.3588, allocations: 47.44 kB / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.3616, allocations: 1.106 MB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.3616, allocations: 7.984 kB / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3616, allocations: 4 kB / 471.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3616, allocations: 7.875 kB / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004216/0.3658, allocations: 2.25 MB / 473.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3659, allocations: 0 / 473.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007631/0.3735, allocations: 1.846 MB / 475.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.708e-05/0.3736, allocations: 4 kB / 475.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.3737, allocations: 19.98 kB / 475.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3737, allocations: 0 / 475.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3737, allocations: 4 kB / 475.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004414/0.3781, allocations: 1.887 MB / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.3785, allocations: 204.3 kB / 477.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.3786, allocations: 24 kB / 477.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007348/0.3794, allocations: 131.8 kB / 478 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.3796, allocations: 87.84 kB / 478.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.84e-05/0.3796, allocations: 19.98 kB / 478.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000306/0.38, allocations: 271.1 kB / 478.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.38, allocations: 0 / 478.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006703/0.3806, allocations: 179.5 kB / 478.5 MB, free: 4.645 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.0001952/0.3808, allocations: 135 kB / 478.7 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.008236/0.3891, allocations: 2.641 MB / 481.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.3891, allocations: 4 kB / 481.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003938/0.3931, allocations: 1.195 MB / 482.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.3942, allocations: 141.1 kB / 482.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003855/0.398, allocations: 1.913 MB / 484.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/0.3985, allocations: 0.9293 MB / 485.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005532/0.3991, allocations: 164.6 kB / 485.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.3993, allocations: 43.42 kB / 485.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3993, allocations: 0 / 485.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of Templates: time 0.01353/0.4128, allocations: 8 MB / 493.7 MB, free: 5.406 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: