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.001261/0.001261, allocations: 114.8 kB / 17.74 MB, free: 5.344 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.001193/0.001193, allocations: 188.5 kB / 18.67 MB, free: 4.422 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.462/1.462, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1887/0.1887, allocations: 37.98 MB / 309.9 MB, free: 5.953 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.001579/0.001579, allocations: 64.38 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1098, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.008223/0.118, allocations: 6.337 MB / 494.1 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002877/0.1209, allocations: 1.485 MB / 495.6 MB, free: 488 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005361/0.1215, allocations: 19.88 kB / 495.6 MB, free: 468 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006758/0.1222, allocations: 154.8 kB / 495.8 MB, free: 312 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00124/0.1235, allocations: 425.9 kB / 496.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006232/0.1241, allocations: 211.7 kB / 496.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001465/0.1256, allocations: 1.121 MB / 497.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005133/0.1261, allocations: 360.6 kB / 497.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009047/0.1271, allocations: 482.1 kB / 498.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001083/0.1282, allocations: 0.5411 MB / 498.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.1284, allocations: 64 kB / 499 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002527/0.1286, allocations: 64 kB / 499 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003523/0.129, allocations: 311.3 kB / 499.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005428/0.1295, allocations: 378.3 kB / 499.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009543/0.1305, allocations: 0.8761 MB / 0.4888 GB, free: 11.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1305, allocations: 0 / 0.4888 GB, free: 11.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1305, allocations: 0 / 0.4888 GB, free: 11.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.84e-05/0.1306, allocations: 0 / 0.4888 GB, free: 11.51 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.002699/0.1333, allocations: 1.023 MB / 0.4898 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.1333, allocations: 15.89 kB / 0.4898 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.1335, allocations: 76.03 kB / 0.4899 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.1347, allocations: 0.5925 MB / 0.4905 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.1349, allocations: 124.8 kB / 0.4906 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.1351, allocations: 52 kB / 0.4907 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.1366, allocations: 0.7811 MB / 0.4914 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1366, allocations: 3.938 kB / 0.4914 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.277e-05/0.1367, allocations: 24 kB / 0.4915 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.1368, allocations: 32.97 kB / 0.4915 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.1382, allocations: 0.6986 MB / 0.4922 GB, free: 7.949 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.004343/0.1426, allocations: 2.692 MB / 0.4948 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.1444, allocations: 0.8743 MB / 0.4957 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005763/0.145, allocations: 325.6 kB / 0.496 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.145, allocations: 7.984 kB / 0.496 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.1451, allocations: 38.56 kB / 0.496 GB, free: 3.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.415e-06/0.1451, allocations: 4 kB / 0.496 GB, free: 3.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.004168/0.1493, allocations: 1.933 MB / 0.4979 GB, free: 1.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.1493, allocations: 89.05 kB / 0.498 GB, free: 1.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/0.1499, allocations: 417.9 kB / 0.4984 GB, free: 1.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.1499, allocations: 37.7 kB / 0.4984 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.1501, allocations: 316.2 kB / 0.4987 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.1502, allocations: 134.1 kB / 0.4988 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.1504, allocations: 90.16 kB / 0.4989 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1506, allocations: 362.7 kB / 0.4993 GB, free: 332 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.151, allocations: 237 kB / 0.4995 GB, free: 92 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005707/0.1516, allocations: 350.3 kB / 0.4998 GB, free: 15.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.1526, allocations: 0.5742 MB / 0.5004 GB, free: 15.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1526, allocations: 0 / 0.5004 GB, free: 15.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00149/0.1541, allocations: 0.7921 MB / 0.5012 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.1542, allocations: 16.06 kB / 0.5012 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.1542, allocations: 7.938 kB / 0.5012 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002853/0.1545, allocations: 77.66 kB / 0.5013 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.156, allocations: 291.5 kB / 0.5015 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006047/0.162, allocations: 6.509 MB / 0.5079 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/0.1625, allocations: 39.91 kB / 0.5079 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-05/0.1626, allocations: 19.98 kB / 0.508 GB, free: 6.746 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.0003674/0.163, allocations: 237.7 kB / 0.5082 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.1631, allocations: 47.44 kB / 0.5082 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.1645, allocations: 0.7338 MB / 0.5089 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1646, allocations: 4 kB / 0.509 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1646, allocations: 4 kB / 0.509 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1646, allocations: 0 / 0.509 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.1671, allocations: 1.499 MB / 0.5104 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.1671, allocations: 0 / 0.5104 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.1688, allocations: 299.6 kB / 0.5107 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/0.1691, allocations: 89.62 kB / 0.5108 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.1691, allocations: 15.94 kB / 0.5108 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/0.1715, allocations: 3.161 MB / 0.5139 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1715, allocations: 4.031 kB / 0.5139 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.1733, allocations: 1.122 MB / 0.515 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.1735, allocations: 120.4 kB / 0.5151 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.1736, allocations: 12.03 kB / 0.5151 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.174, allocations: 31.97 kB / 0.5151 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.1741, allocations: 47.62 kB / 0.5152 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.947e-05/0.1741, allocations: 12 kB / 0.5152 GB, free: 14.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003472/0.1745, allocations: 295.1 kB / 0.5155 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1745, allocations: 3.938 kB / 0.5155 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006665/0.1752, allocations: 136 kB / 0.5156 GB, free: 14.41 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.0001822/0.1754, allocations: 111.2 kB / 0.5157 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.178, allocations: 0.9933 MB / 0.5167 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.178, allocations: 0 / 0.5167 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.1799, allocations: 0.7123 MB / 0.5174 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008873/0.1808, allocations: 142.3 kB / 0.5175 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.1834, allocations: 1.471 MB / 0.519 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005574/0.184, allocations: 0.9448 MB / 0.5199 GB, free: 9.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.1841, allocations: 43.42 kB / 0.5199 GB, free: 9.867 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1842, allocations: 4 kB / 0.5199 GB, free: 9.863 MB / 414.1 MB Notification: Performance of Templates: time 0.2512/0.4353, allocations: 16.88 MB / 0.5364 GB, free: 50.68 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)