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 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.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.001745/0.001745, allocations: 111.4 kB / 17.29 MB, free: 6.059 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.001968/0.001968, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.175/2.175, allocations: 222.9 MB / 241.9 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4004/0.4004, allocations: 38.02 MB / 330.1 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002598/0.002598, allocations: 67.02 kB / 398.9 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2081, allocations: 58.05 MB / 457 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01696/0.2252, allocations: 7.946 MB / 464.9 MB, free: 388 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006248/0.2315, allocations: 1.753 MB / 466.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.2331, allocations: 55.62 kB / 466.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008212/0.234, allocations: 103.2 kB / 466.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002311/0.2364, allocations: 386.3 kB / 467.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.2376, allocations: 207.7 kB / 467.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002607/0.2402, allocations: 1.122 MB / 468.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001327/0.2416, allocations: 405.8 kB / 468.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001984/0.2436, allocations: 0.4941 MB / 469.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001896/0.2456, allocations: 0.5567 MB / 470 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003799/0.246, allocations: 64 kB / 470.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005064/0.2465, allocations: 64 kB / 470.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007832/0.2473, allocations: 335.2 kB / 470.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.2486, allocations: 410.1 kB / 470.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.2502, allocations: 0.7133 MB / 471.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.2502, allocations: 3.984 kB / 471.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.2502, allocations: 4 kB / 471.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.216e-05/0.2503, allocations: 0 / 471.6 MB, free: 9.727 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.004655/0.2549, allocations: 1.148 MB / 472.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.041e-05/0.255, allocations: 11.89 kB / 472.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004397/0.2555, allocations: 87.91 kB / 472.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.2575, allocations: 0.5689 MB / 473.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002287/0.2577, allocations: 120.8 kB / 473.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002748/0.258, allocations: 64 kB / 473.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007268/0.2653, allocations: 0.8691 MB / 474.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/0.2654, allocations: 4 kB / 474.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001662/0.2656, allocations: 31.98 kB / 474.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002294/0.2658, allocations: 37.28 kB / 474.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00223/0.2681, allocations: 0.6178 MB / 475.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006882/0.275, allocations: 2.758 MB / 477.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00703/0.2821, allocations: 0.9026 MB / 478.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.2834, allocations: 321 kB / 479.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.29e-05/0.2835, allocations: 8.312 kB / 479.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.2848, allocations: 346.6 kB / 479.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 7.454e-06/0.2849, allocations: 0 / 479.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.007254/0.2921, allocations: 1.967 MB / 481.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.2923, allocations: 118.7 kB / 481.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.2934, allocations: 0.5143 MB / 482 MB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.224e-05/0.2935, allocations: 41.7 kB / 482.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004857/0.294, allocations: 355.8 kB / 482.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.2943, allocations: 142 kB / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/0.2946, allocations: 118.1 kB / 482.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.2949, allocations: 374.8 kB / 483.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006036/0.2955, allocations: 225.1 kB / 483.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004803/0.3003, allocations: 394.2 kB / 483.7 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.3018, allocations: 0.6249 MB / 484.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.3019, allocations: 0 / 484.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002322/0.3042, allocations: 0.8938 MB / 485.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.3044, allocations: 50.19 kB / 485.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.3044, allocations: 8 kB / 485.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005169/0.3049, allocations: 89.66 kB / 485.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006553/0.3056, allocations: 103.8 kB / 485.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004432/0.3101, allocations: 3.259 MB / 488.7 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009062/0.311, allocations: 39.88 kB / 488.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/0.3112, allocations: 43.91 kB / 488.8 MB, free: 7.488 MB / 366.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.0008838/0.3121, allocations: 273.7 kB / 489 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.3124, allocations: 55.34 kB / 489.1 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.3149, allocations: 0.7003 MB / 489.8 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/0.3149, allocations: 11.98 kB / 489.8 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3149, allocations: 0 / 489.8 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3149, allocations: 4 kB / 489.8 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004338/0.3193, allocations: 1.535 MB / 491.3 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.3193, allocations: 0 / 491.3 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004908/0.3198, allocations: 63.97 kB / 491.4 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004732/0.3246, allocations: 101.5 kB / 491.5 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.3248, allocations: 19.98 kB / 491.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00454/0.3293, allocations: 3.255 MB / 494.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3294, allocations: 0 / 494.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00349/0.3329, allocations: 1.063 MB / 495.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005143/0.3334, allocations: 172.4 kB / 496 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002714/0.3337, allocations: 27.98 kB / 496 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008441/0.3346, allocations: 39.95 kB / 496.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.3348, allocations: 39.83 kB / 496.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.408e-05/0.3349, allocations: 19.98 kB / 496.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009139/0.3358, allocations: 354.8 kB / 496.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.3358, allocations: 0 / 496.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001335/0.3372, allocations: 152 kB / 496.6 MB, free: 15.14 MB / 382.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.0002924/0.3375, allocations: 123.2 kB / 496.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.3404, allocations: 0.9719 MB / 497.7 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3404, allocations: 0 / 497.7 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.3418, allocations: 0.4902 MB / 498.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.3434, allocations: 152.1 kB / 498.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004906/0.3483, allocations: 1.822 MB / 0.4885 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.3494, allocations: 0.972 MB / 0.4894 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.3497, allocations: 47.44 kB / 0.4894 GB, free: 10.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.455e-06/0.3498, allocations: 3.938 kB / 0.4895 GB, free: 10.43 MB / 382.1 MB Notification: Performance of Templates: time 0.03096/0.3807, allocations: 13.44 MB / 0.5026 GB, free: 13.01 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (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)