Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000821/0.0008212, allocations: 90.33 kB / 16.65 MB, free: 6.598 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.0009105/0.0009106, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.544/1.544, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1818/0.1818, allocations: 38.04 MB / 310.1 MB, free: 5.922 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.0005213/0.0005215, allocations: 20 kB / 377.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2672, allocations: 56.33 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006809/0.2741, allocations: 7.489 MB / 441 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003566/0.2777, allocations: 1.805 MB / 442.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.2791, allocations: 55.62 kB / 442.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004765/0.2796, allocations: 91.31 kB / 442.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001283/0.2809, allocations: 394.3 kB / 443.3 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006561/0.2816, allocations: 211.7 kB / 443.5 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001517/0.2831, allocations: 1.636 MB / 445.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.2836, allocations: 332.2 kB / 445.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007798/0.2844, allocations: 398.1 kB / 445.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009096/0.2854, allocations: 0.5139 MB / 446.4 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.2855, allocations: 32 kB / 446.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.2857, allocations: 32 kB / 446.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003128/0.2861, allocations: 287.2 kB / 446.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004744/0.2866, allocations: 387.7 kB / 447.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006922/0.2873, allocations: 0.8602 MB / 448 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2873, allocations: 0 / 448 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2873, allocations: 0 / 448 MB, free: 4.156 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.2873, allocations: 0 / 448 MB, free: 4.156 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001728/0.289, allocations: 1.008 MB / 449 MB, free: 3.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.2891, allocations: 12.03 kB / 449 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.2893, allocations: 84 kB / 449.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007039/0.29, allocations: 0.5766 MB / 449.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.423e-05/0.2901, allocations: 112.8 kB / 449.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.2902, allocations: 64 kB / 449.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.2914, allocations: 0.877 MB / 450.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.2915, allocations: 4 kB / 450.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.275e-05/0.2915, allocations: 23.98 kB / 450.7 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.2916, allocations: 45.22 kB / 450.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009805/0.2926, allocations: 0.6335 MB / 451.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00349/0.2961, allocations: 2.778 MB / 454.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.298, allocations: 0.9276 MB / 455.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007072/0.2987, allocations: 334.2 kB / 455.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2988, allocations: 4.328 kB / 455.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007245/0.2995, allocations: 362.8 kB / 455.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 4.568e-06/0.2995, allocations: 0 / 455.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.004314/0.3039, allocations: 2.033 MB / 457.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.393e-05/0.304, allocations: 118.8 kB / 457.9 MB, free: 9.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005729/0.3045, allocations: 0.5066 MB / 458.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.3046, allocations: 41.69 kB / 458.5 MB, free: 9.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.3049, allocations: 359.8 kB / 458.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.305, allocations: 138.1 kB / 459 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.603e-05/0.3051, allocations: 65.62 kB / 459 MB, free: 8.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3052, allocations: 366.8 kB / 459.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/0.3056, allocations: 229 kB / 459.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006064/0.3062, allocations: 394.2 kB / 460 MB, free: 7.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008347/0.307, allocations: 0.621 MB / 460.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.307, allocations: 4 kB / 460.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001325/0.3084, allocations: 0.8942 MB / 461.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.719e-05/0.3085, allocations: 53.62 kB / 461.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.3085, allocations: 4 kB / 461.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003904/0.3089, allocations: 93.59 kB / 461.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/0.3093, allocations: 103.8 kB / 461.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/0.312, allocations: 2.989 MB / 464.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.3123, allocations: 31.98 kB / 464.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.146e-05/0.3124, allocations: 39.97 kB / 464.8 MB, free: 2.262 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003777/0.3127, allocations: 273.5 kB / 465.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/0.3128, allocations: 67.3 kB / 465.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.3143, allocations: 0.7354 MB / 465.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3144, allocations: 4 kB / 465.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.3144, allocations: 0 / 465.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3144, allocations: 7.984 kB / 465.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.3168, allocations: 1.551 MB / 467.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.3168, allocations: 4 kB / 467.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.3171, allocations: 75.89 kB / 467.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.3174, allocations: 89.62 kB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.201e-05/0.3174, allocations: 19.98 kB / 467.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002296/0.3197, allocations: 2.977 MB / 470.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3197, allocations: 0 / 470.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.3218, allocations: 1.102 MB / 471.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.322, allocations: 172.4 kB / 471.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-05/0.3221, allocations: 31.98 kB / 471.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.3225, allocations: 47.94 kB / 472 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.449e-05/0.3226, allocations: 27.91 kB / 472 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.3226, allocations: 19.98 kB / 472 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003818/0.323, allocations: 362.8 kB / 472.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.323, allocations: 0 / 472.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006495/0.3237, allocations: 148 kB / 472.5 MB, free: 10.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001724/0.3238, allocations: 124.3 kB / 472.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.3253, allocations: 0.9249 MB / 473.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3253, allocations: 0 / 473.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009065/0.3263, allocations: 0.5022 MB / 474.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008548/0.3271, allocations: 150.1 kB / 474.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.3297, allocations: 1.861 MB / 476.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.3303, allocations: 0.9721 MB / 477.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002989/0.3306, allocations: 104.9 kB / 477.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.3307, allocations: 47.44 kB / 477.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3307, allocations: 0 / 477.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of Templates: time 0.01217/0.3429, allocations: 7.025 MB / 484.2 MB, free: 14.28 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: