Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001616/0.00162, allocations: 188.1 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.996/1.996, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001169/0.001168, allocations: 94.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2693/0.2693, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004657/0.0004659, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1162, allocations: 56.33 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.0106/0.1269, allocations: 6.275 MB / 485.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004725/0.1316, allocations: 1.751 MB / 487.1 MB, free: 9.969 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007969/0.1325, allocations: 43.69 kB / 487.1 MB, free: 9.926 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006778/0.1332, allocations: 147.1 kB / 487.2 MB, free: 9.781 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001661/0.1349, allocations: 366.9 kB / 487.6 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009862/0.1359, allocations: 207.6 kB / 487.8 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.1372, allocations: 0.5653 MB / 488.4 MB, free: 8.652 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005766/0.1378, allocations: 251.6 kB / 488.6 MB, free: 8.406 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008784/0.1387, allocations: 338.8 kB / 489 MB, free: 8.074 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008592/0.1396, allocations: 358.9 kB / 489.3 MB, free: 7.723 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.1397, allocations: 32 kB / 489.3 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.1399, allocations: 35.94 kB / 489.4 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003992/0.1403, allocations: 255.3 kB / 489.6 MB, free: 7.406 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.1406, allocations: 149.4 kB / 489.8 MB, free: 7.254 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1418, allocations: 0.6624 MB / 490.4 MB, free: 6.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1418, allocations: 0 / 490.4 MB, free: 6.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1419, allocations: 3.938 kB / 490.4 MB, free: 6.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.057e-05/0.1419, allocations: 0 / 490.4 MB, free: 6.586 MB / 330.7 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.003026/0.1449, allocations: 0.9294 MB / 491.4 MB, free: 5.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.145, allocations: 11.97 kB / 491.4 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002535/0.1453, allocations: 75.11 kB / 491.4 MB, free: 5.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.1469, allocations: 0.5369 MB / 492 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002701/0.1472, allocations: 120.7 kB / 492.1 MB, free: 4.809 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.1474, allocations: 59.91 kB / 492.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.1498, allocations: 0.7889 MB / 492.9 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.1498, allocations: 0 / 492.9 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-05/0.1499, allocations: 24 kB / 493 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002086/0.1501, allocations: 40.92 kB / 493 MB, free: 3.863 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002568/0.1527, allocations: 0.7181 MB / 493.7 MB, free: 3.145 MB / 330.7 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.007289/0.1601, allocations: 2.759 MB / 496.5 MB, free: 288 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003424/0.1635, allocations: 0.9247 MB / 497.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.647e-05/0.1636, allocations: 8.688 kB / 497.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.1637, allocations: 34.5 kB / 497.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 5.27e-06/0.1637, allocations: 8 kB / 497.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.006818/0.1705, allocations: 2.015 MB / 499.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/0.1706, allocations: 85.14 kB / 499.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007319/0.1714, allocations: 425.8 kB / 500 MB, free: 12.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.409e-05/0.1715, allocations: 29.7 kB / 0.4883 GB, free: 12.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/0.1718, allocations: 354.7 kB / 0.4886 GB, free: 12.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.172, allocations: 138 kB / 0.4888 GB, free: 12.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.172, allocations: 8 kB / 0.4888 GB, free: 12.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1722, allocations: 326.8 kB / 0.4891 GB, free: 11.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009319/0.1732, allocations: 253 kB / 0.4893 GB, free: 11.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.1742, allocations: 374 kB / 0.4897 GB, free: 11.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009827/0.1752, allocations: 271.7 kB / 0.4899 GB, free: 10.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1752, allocations: 4 kB / 0.4899 GB, free: 10.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002549/0.1778, allocations: 0.7922 MB / 0.4907 GB, free: 9.973 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.1779, allocations: 8 kB / 0.4907 GB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1779, allocations: 3.938 kB / 0.4907 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.1783, allocations: 81.88 kB / 0.4908 GB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003027/0.1814, allocations: 379.5 kB / 0.4912 GB, free: 9.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009987/0.1914, allocations: 6.214 MB / 0.4972 GB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007406/0.1922, allocations: 52.2 kB / 0.4973 GB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.825e-05/0.1923, allocations: 19.94 kB / 0.4973 GB, free: 2.688 MB / 346.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000495/0.1928, allocations: 229.7 kB / 0.4975 GB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.1929, allocations: 55.38 kB / 0.4976 GB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.1954, allocations: 0.7611 MB / 0.4983 GB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.1955, allocations: 4 kB / 0.4983 GB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1955, allocations: 3.938 kB / 0.4983 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.1955, allocations: 3.984 kB / 0.4983 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004489/0.2, allocations: 1.541 MB / 0.4998 GB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.2, allocations: 3.953 kB / 0.4998 GB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003434/0.2035, allocations: 407.6 kB / 0.5002 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004969/0.204, allocations: 85.58 kB / 0.5003 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.111e-05/0.2041, allocations: 19.98 kB / 0.5003 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/0.2075, allocations: 2.892 MB / 0.5031 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.2076, allocations: 4.031 kB / 0.5031 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.2111, allocations: 1.205 MB / 0.5043 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.2114, allocations: 124.5 kB / 0.5044 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.2115, allocations: 12.03 kB / 0.5045 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005942/0.2121, allocations: 39.97 kB / 0.5045 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.2123, allocations: 40.03 kB / 0.5045 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.531e-05/0.2124, allocations: 8 kB / 0.5045 GB, free: 10.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005266/0.2129, allocations: 291.1 kB / 0.5048 GB, free: 10.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2129, allocations: 0 / 0.5048 GB, free: 10.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009654/0.2139, allocations: 140 kB / 0.505 GB, free: 10.36 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002154/0.2142, allocations: 119.1 kB / 0.5051 GB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004986/0.2191, allocations: 1.102 MB / 0.5061 GB, free: 9.109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.2192, allocations: 4 kB / 0.5061 GB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/0.223, allocations: 0.8133 MB / 0.5069 GB, free: 8.266 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2241, allocations: 133.8 kB / 0.5071 GB, free: 8.133 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.2283, allocations: 1.778 MB / 0.5088 GB, free: 6.312 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007846/0.2291, allocations: 0.9562 MB / 0.5097 GB, free: 5.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.2294, allocations: 39.44 kB / 0.5098 GB, free: 5.293 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/0.2294, allocations: 4 kB / 0.5098 GB, free: 5.289 MB / 362.7 MB Notification: Performance of Templates: time 0.3327/0.5622, allocations: 16.08 MB / 0.5255 GB, free: 48.29 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)