Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 106.6 kB / 16.92 MB, free: 5.77 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.001255/0.001255, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1815/0.1815, allocations: 38.04 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.00138, allocations: 64.17 kB / 398.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1196, allocations: 58.05 MB / 456.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.009171/0.1288, allocations: 6.25 MB / 463.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.1318, allocations: 1.426 MB / 464.5 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006104/0.1325, allocations: 19.88 kB / 464.5 MB, free: 352 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006403/0.1331, allocations: 146.9 kB / 464.7 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.1344, allocations: 414.1 kB / 465.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.135, allocations: 195.5 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.1365, allocations: 1.083 MB / 466.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005394/0.137, allocations: 360.6 kB / 466.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000906/0.1379, allocations: 458.3 kB / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.1391, allocations: 0.5256 MB / 467.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.1393, allocations: 64 kB / 467.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.1396, allocations: 68 kB / 467.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003784/0.14, allocations: 299.3 kB / 468.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006206/0.1406, allocations: 370.4 kB / 468.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009969/0.1416, allocations: 0.8371 MB / 469.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1416, allocations: 0 / 469.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1416, allocations: 0 / 469.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.102e-05/0.1417, allocations: 0 / 469.3 MB, free: 11.56 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002317/0.144, allocations: 0.9997 MB / 470.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.144, allocations: 15.89 kB / 470.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.1442, allocations: 80.09 kB / 470.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.1452, allocations: 0.5419 MB / 470.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.1454, allocations: 116.8 kB / 471.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.291e-05/0.1455, allocations: 59.94 kB / 471.1 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.1468, allocations: 0.7733 MB / 471.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.1469, allocations: 0 / 471.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.908e-05/0.1469, allocations: 23.98 kB / 471.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.1471, allocations: 40.97 kB / 472 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.1485, allocations: 0.7142 MB / 472.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.1524, allocations: 2.612 MB / 475.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.1541, allocations: 0.801 MB / 476.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006764/0.1548, allocations: 402.3 kB / 476.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.1548, allocations: 8.438 kB / 476.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.1549, allocations: 46.94 kB / 476.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.1549, allocations: 0 / 476.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.004583/0.1595, allocations: 2.135 MB / 478.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.1596, allocations: 85.48 kB / 478.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005094/0.1601, allocations: 402 kB / 479.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.1602, allocations: 33.7 kB / 479.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.1604, allocations: 288.5 kB / 479.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.1605, allocations: 177.4 kB / 479.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.1607, allocations: 98.25 kB / 479.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1609, allocations: 358.8 kB / 480.1 MB, free: 344 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005792/0.1615, allocations: 272.9 kB / 480.3 MB, free: 72 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006121/0.1621, allocations: 377.1 kB / 480.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.1633, allocations: 0.6577 MB / 481.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1633, allocations: 0 / 481.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00161/0.1649, allocations: 0.8758 MB / 482.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.165, allocations: 4 kB / 482.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.165, allocations: 7.938 kB / 482.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002807/0.1653, allocations: 77.83 kB / 482.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.1668, allocations: 307.5 kB / 482.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007372/0.1742, allocations: 6.536 MB / 489.2 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005795/0.1748, allocations: 44.11 kB / 489.2 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.1749, allocations: 16 kB / 489.2 MB, free: 6.512 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005174/0.1754, allocations: 250.7 kB / 489.5 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.1756, allocations: 43.44 kB / 489.5 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.1774, allocations: 0.8319 MB / 490.3 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1774, allocations: 4 kB / 490.3 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.1774, allocations: 4 kB / 490.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.1774, allocations: 7.984 kB / 490.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/0.1807, allocations: 1.665 MB / 492 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.1807, allocations: 4 kB / 492 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/0.1824, allocations: 323.8 kB / 492.3 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002772/0.1827, allocations: 97.47 kB / 492.4 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.618e-05/0.1828, allocations: 23.98 kB / 492.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002849/0.1856, allocations: 3.161 MB / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1857, allocations: 0 / 495.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.1884, allocations: 1.312 MB / 496.9 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.1886, allocations: 124.5 kB / 497.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.906e-05/0.1887, allocations: 23.97 kB / 497.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004609/0.1892, allocations: 31.95 kB / 497.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.1894, allocations: 51.88 kB / 497.2 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.1894, allocations: 12 kB / 497.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005102/0.1899, allocations: 279.1 kB / 497.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.1899, allocations: 4 kB / 497.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001033/0.191, allocations: 148 kB / 497.6 MB, free: 13.63 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002258/0.1912, allocations: 115.1 kB / 497.7 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003216/0.1944, allocations: 1.182 MB / 498.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.1945, allocations: 0 / 498.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.1966, allocations: 0.8019 MB / 499.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009036/0.1975, allocations: 140.3 kB / 499.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.2012, allocations: 1.604 MB / 0.4897 GB, free: 9.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007023/0.2019, allocations: 0.9447 MB / 0.4906 GB, free: 8.715 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004513/0.2024, allocations: 128.7 kB / 0.4907 GB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.2025, allocations: 39.44 kB / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2026, allocations: 0 / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of Templates: time 0.01551/0.2181, allocations: 7.8 MB / 0.4984 GB, free: 0.8203 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)