Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.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 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.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 108.9 kB / 17.06 MB, free: 6.008 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.001094/0.001094, allocations: 199.9 kB / 18 MB, free: 5.086 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.419/1.419, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.168/0.168, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.001435/0.001435, allocations: 63.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1146, allocations: 55.25 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007659/0.1223, allocations: 6.333 MB / 493.4 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002753/0.1251, allocations: 1.489 MB / 494.9 MB, free: 492 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002969/0.1254, allocations: 27.81 kB / 495 MB, free: 464 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005298/0.1259, allocations: 150.8 kB / 495.1 MB, free: 312 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008851/0.1269, allocations: 433.9 kB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005413/0.1274, allocations: 211.6 kB / 495.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.1286, allocations: 1.117 MB / 496.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004787/0.1291, allocations: 356.6 kB / 497.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005923/0.1297, allocations: 470.2 kB / 497.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000799/0.1305, allocations: 0.5412 MB / 498.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.1306, allocations: 64 kB / 498.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.1308, allocations: 72 kB / 498.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.1311, allocations: 311.3 kB / 498.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004018/0.1315, allocations: 374.2 kB / 499 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008761/0.1324, allocations: 0.8645 MB / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.1324, allocations: 0 / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1324, allocations: 0 / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.1324, allocations: 0 / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002017/0.1344, allocations: 1.031 MB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1345, allocations: 15.89 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.1346, allocations: 76.03 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.1357, allocations: 0.5924 MB / 0.4898 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.1359, allocations: 120.8 kB / 0.4899 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.136, allocations: 52 kB / 0.49 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1373, allocations: 0.785 MB / 0.4908 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1373, allocations: 4 kB / 0.4908 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.547e-05/0.1374, allocations: 20 kB / 0.4908 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001157/0.1375, allocations: 36.97 kB / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.1388, allocations: 0.6947 MB / 0.4915 GB, free: 7.965 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.1428, allocations: 2.696 MB / 0.4941 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.1445, allocations: 0.8705 MB / 0.495 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.1451, allocations: 321.6 kB / 0.4953 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.1451, allocations: 8 kB / 0.4953 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.1452, allocations: 42.5 kB / 0.4953 GB, free: 3.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.835e-06/0.1452, allocations: 0 / 0.4953 GB, free: 3.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.003521/0.1487, allocations: 1.941 MB / 0.4972 GB, free: 1.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.1488, allocations: 93.08 kB / 0.4973 GB, free: 1.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004036/0.1492, allocations: 417.9 kB / 0.4977 GB, free: 1.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.1492, allocations: 33.7 kB / 0.4978 GB, free: 1.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.1494, allocations: 316.2 kB / 0.4981 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.815e-05/0.1495, allocations: 134.1 kB / 0.4982 GB, free: 0.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.1497, allocations: 90.16 kB / 0.4983 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1498, allocations: 362.7 kB / 0.4986 GB, free: 344 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.1503, allocations: 237 kB / 0.4988 GB, free: 104 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/0.1508, allocations: 358.2 kB / 0.4992 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009579/0.1518, allocations: 0.5742 MB / 0.4997 GB, free: 15.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1518, allocations: 4 kB / 0.4997 GB, free: 15.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001265/0.1531, allocations: 0.7919 MB / 0.5005 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.1531, allocations: 8.062 kB / 0.5005 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1531, allocations: 4 kB / 0.5005 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/0.1534, allocations: 77.66 kB / 0.5006 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.1547, allocations: 291.8 kB / 0.5009 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005719/0.1605, allocations: 6.512 MB / 0.5072 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.1609, allocations: 44.06 kB / 0.5073 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.1609, allocations: 19.98 kB / 0.5073 GB, free: 6.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0003355/0.1613, allocations: 233.7 kB / 0.5075 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.289e-05/0.1614, allocations: 43.44 kB / 0.5076 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.1627, allocations: 0.7338 MB / 0.5083 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1627, allocations: 4 kB / 0.5083 GB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1627, allocations: 4 kB / 0.5083 GB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.1627, allocations: 3.984 kB / 0.5083 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.165, allocations: 1.495 MB / 0.5098 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.165, allocations: 4 kB / 0.5098 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.1665, allocations: 299.6 kB / 0.51 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/0.1668, allocations: 85.62 kB / 0.5101 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.1668, allocations: 12 kB / 0.5101 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00213/0.1689, allocations: 3.173 MB / 0.5132 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.169, allocations: 0 / 0.5132 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.1706, allocations: 1.118 MB / 0.5143 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1708, allocations: 120.4 kB / 0.5144 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.435e-05/0.1708, allocations: 16.03 kB / 0.5145 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.1711, allocations: 31.97 kB / 0.5145 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1713, allocations: 47.62 kB / 0.5145 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.344e-05/0.1713, allocations: 12 kB / 0.5145 GB, free: 14.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.1716, allocations: 291.1 kB / 0.5148 GB, free: 14.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1716, allocations: 3.938 kB / 0.5148 GB, free: 14.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000614/0.1722, allocations: 140 kB / 0.515 GB, free: 14.42 MB / 414.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * 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.0001422/0.1724, allocations: 111.2 kB / 0.5151 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002401/0.1748, allocations: 0.9894 MB / 0.516 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.1748, allocations: 4 kB / 0.516 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.1766, allocations: 0.7201 MB / 0.5167 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007621/0.1774, allocations: 146.3 kB / 0.5169 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.1798, allocations: 1.415 MB / 0.5183 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.1803, allocations: 0.9487 MB / 0.5192 GB, free: 9.965 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002795/0.1806, allocations: 100.5 kB / 0.5193 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.1807, allocations: 39.44 kB / 0.5193 GB, free: 9.828 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1807, allocations: 4 kB / 0.5193 GB, free: 9.824 MB / 414.1 MB Notification: Performance of Templates: time 0.01449/0.1952, allocations: 7.913 MB / 0.5271 GB, free: 1.898 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)