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.001156/0.001156, allocations: 103 kB / 16.51 MB, free: 6.645 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.001192/0.001192, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.422/1.422, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1883/0.1883, allocations: 38.03 MB / 329.3 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 66.86 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1384, allocations: 58.06 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.009471/0.148, allocations: 7.082 MB / 463.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.1519, allocations: 1.667 MB / 464.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.153, allocations: 39.75 kB / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005714/0.1536, allocations: 119.2 kB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.1549, allocations: 394.3 kB / 465.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005398/0.1554, allocations: 167.8 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.1574, allocations: 1.617 MB / 467.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004362/0.1579, allocations: 287 kB / 467.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.1589, allocations: 402.3 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001388/0.1603, allocations: 0.5452 MB / 468.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002061/0.1606, allocations: 40 kB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.1608, allocations: 43.94 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004615/0.1613, allocations: 291.2 kB / 468.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006739/0.162, allocations: 330.4 kB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009275/0.1629, allocations: 0.8176 MB / 469.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.163, allocations: 7.938 kB / 470 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.163, allocations: 4 kB / 470 MB, free: 10.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.484e-05/0.163, allocations: 0 / 470 MB, free: 10.67 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.002403/0.1654, allocations: 0.992 MB / 470.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.1655, allocations: 8.031 kB / 471 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.1656, allocations: 72.09 kB / 471 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.1667, allocations: 0.5495 MB / 471.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.1669, allocations: 120.8 kB / 471.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-05/0.167, allocations: 56 kB / 471.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.1684, allocations: 0.7733 MB / 472.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.1685, allocations: 0 / 472.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.1685, allocations: 24 kB / 472.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.1687, allocations: 36.97 kB / 472.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.1703, allocations: 0.7181 MB / 473.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004313/0.1746, allocations: 2.612 MB / 475.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.1765, allocations: 0.8038 MB / 476.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007329/0.1773, allocations: 407.3 kB / 477.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.1773, allocations: 8.438 kB / 477.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.1774, allocations: 42.94 kB / 477.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.454e-06/0.1774, allocations: 0 / 477.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.005106/0.1825, allocations: 2.143 MB / 479.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1826, allocations: 81.55 kB / 479.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/0.1831, allocations: 398 kB / 479.8 MB, free: 432 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.1832, allocations: 29.7 kB / 479.8 MB, free: 396 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.1834, allocations: 288.5 kB / 480.1 MB, free: 100 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.1836, allocations: 181.5 kB / 480.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.1838, allocations: 102.2 kB / 480.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1839, allocations: 358.8 kB / 480.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005636/0.1845, allocations: 272.9 kB / 481 MB, free: 15.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006032/0.1851, allocations: 385.1 kB / 481.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.1863, allocations: 0.6537 MB / 482 MB, free: 14.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1863, allocations: 4 kB / 482 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001573/0.1879, allocations: 0.872 MB / 482.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.188, allocations: 14.02 kB / 482.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.188, allocations: 0 / 482.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003016/0.1883, allocations: 73.67 kB / 483 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.1899, allocations: 315.6 kB / 483.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005824/0.1957, allocations: 6.033 MB / 489.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.1963, allocations: 44.11 kB / 489.4 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.1963, allocations: 20 kB / 489.4 MB, free: 6.141 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.0004123/0.1967, allocations: 242.5 kB / 489.6 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.1969, allocations: 47.44 kB / 489.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.1985, allocations: 0.8319 MB / 490.5 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1985, allocations: 8 kB / 490.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1985, allocations: 0 / 490.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1985, allocations: 3.984 kB / 490.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.2013, allocations: 1.669 MB / 492.2 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.2014, allocations: 0 / 492.2 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.203, allocations: 327.7 kB / 492.5 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002766/0.2033, allocations: 93.48 kB / 492.6 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.785e-05/0.2034, allocations: 15.98 kB / 492.6 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00214/0.2055, allocations: 2.884 MB / 495.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2055, allocations: 4.062 kB / 495.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0022/0.2077, allocations: 1.32 MB / 496.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.2079, allocations: 120.5 kB / 496.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.349e-05/0.208, allocations: 12.03 kB / 496.9 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/0.2084, allocations: 39.95 kB / 497 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.2085, allocations: 51.81 kB / 497 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.2085, allocations: 16 kB / 497 MB, free: 13.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.2089, allocations: 279.1 kB / 497.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2089, allocations: 0 / 497.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007185/0.2096, allocations: 148 kB / 497.5 MB, free: 13.56 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.0001763/0.2098, allocations: 111.2 kB / 497.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002853/0.2126, allocations: 1.085 MB / 498.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2127, allocations: 0 / 498.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.2147, allocations: 0.802 MB / 499.5 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008534/0.2156, allocations: 129 kB / 499.6 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.2192, allocations: 1.823 MB / 0.4897 GB, free: 9.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005952/0.2199, allocations: 0.9486 MB / 0.4906 GB, free: 8.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004458/0.2203, allocations: 128.7 kB / 0.4907 GB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.2205, allocations: 39.44 kB / 0.4907 GB, free: 8.375 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2205, allocations: 0 / 0.4907 GB, free: 8.375 MB / 382.1 MB Notification: Performance of Templates: time 0.01605/0.2365, allocations: 7.419 MB / 0.498 GB, free: 1.023 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)