Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 110.4 kB / 17.74 MB, free: 5.363 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.001509/0.001509, allocations: 180.5 kB / 18.66 MB, free: 4.445 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.344/1.344, 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.1777/0.1777, allocations: 37.98 MB / 309.9 MB, free: 5.973 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.001347/0.001347, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1085, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.008247/0.1168, allocations: 5.512 MB / 493.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.1197, allocations: 1.399 MB / 494.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005713/0.1203, allocations: 19.88 kB / 494.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006439/0.121, allocations: 135 kB / 494.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.1223, allocations: 378.2 kB / 495.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.1229, allocations: 151.8 kB / 495.4 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.1241, allocations: 0.7864 MB / 496.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003948/0.1245, allocations: 217.7 kB / 496.4 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007727/0.1253, allocations: 350.5 kB / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009279/0.1262, allocations: 402.6 kB / 497.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001516/0.1264, allocations: 40 kB / 497.1 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.1266, allocations: 40 kB / 497.2 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002883/0.1269, allocations: 207.4 kB / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.1273, allocations: 278.5 kB / 497.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007383/0.1281, allocations: 0.576 MB / 498.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1281, allocations: 0 / 498.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1281, allocations: 0 / 498.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.309e-05/0.1281, allocations: 0 / 498.2 MB, free: 13.85 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00191/0.1301, allocations: 0.888 MB / 499.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1301, allocations: 15.89 kB / 499.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.1303, allocations: 56.28 kB / 499.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009387/0.1312, allocations: 0.5141 MB / 499.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.011e-05/0.1313, allocations: 40.92 kB / 499.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.942e-05/0.1314, allocations: 36 kB / 499.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000884/0.1323, allocations: 0.5352 MB / 0.4886 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.1323, allocations: 3.984 kB / 0.4886 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.365e-05/0.1323, allocations: 20 kB / 0.4886 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.401e-05/0.1324, allocations: 20.98 kB / 0.4886 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006582/0.133, allocations: 387.6 kB / 0.489 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.1358, allocations: 1.928 MB / 0.4909 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006174/0.1365, allocations: 337.3 kB / 0.4912 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/0.1368, allocations: 173.7 kB / 0.4914 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1368, allocations: 3.984 kB / 0.4914 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003899/0.1372, allocations: 288.5 kB / 0.4916 GB, free: 8.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 3.657e-06/0.1373, allocations: 0 / 0.4916 GB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.001944/0.1392, allocations: 1.175 MB / 0.4928 GB, free: 7.082 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1393, allocations: 162.2 kB / 0.4929 GB, free: 6.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.1398, allocations: 405.8 kB / 0.4933 GB, free: 6.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.1399, allocations: 33.83 kB / 0.4934 GB, free: 6.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.1401, allocations: 287.6 kB / 0.4936 GB, free: 6.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1402, allocations: 134.2 kB / 0.4938 GB, free: 6.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.1404, allocations: 90.16 kB / 0.4939 GB, free: 5.926 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1406, allocations: 358.8 kB / 0.4942 GB, free: 5.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.1408, allocations: 121.1 kB / 0.4943 GB, free: 5.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/0.1411, allocations: 290.1 kB / 0.4946 GB, free: 5.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005604/0.1417, allocations: 475.6 kB / 0.495 GB, free: 4.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1417, allocations: 0 / 0.495 GB, free: 4.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007656/0.1425, allocations: 0.5345 MB / 0.4956 GB, free: 3.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.1425, allocations: 37.8 kB / 0.4956 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1426, allocations: 4 kB / 0.4956 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.1426, allocations: 8 kB / 0.4956 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/0.143, allocations: 107.8 kB / 0.4957 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.457e-05/0.1431, allocations: 8 kB / 0.4957 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.1433, allocations: 23.98 kB / 0.4957 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.346e-05/0.1434, allocations: 31.98 kB / 0.4958 GB, free: 3.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002816/0.1437, allocations: 251.3 kB / 0.496 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.1438, allocations: 47.38 kB / 0.4961 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000683/0.1445, allocations: 459.2 kB / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1445, allocations: 0 / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.1445, allocations: 7.984 kB / 0.4965 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1445, allocations: 3.984 kB / 0.4965 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.146, allocations: 0.9742 MB / 0.4975 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.146, allocations: 4 kB / 0.4975 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.1463, allocations: 59.89 kB / 0.4975 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.1463, allocations: 4 kB / 0.4975 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/0.1464, allocations: 12 kB / 0.4975 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/0.1464, allocations: 4 kB / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1464, allocations: 0 / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009614/0.1474, allocations: 0.7075 MB / 0.4982 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.1476, allocations: 144.5 kB / 0.4984 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.1476, allocations: 8 kB / 0.4984 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002266/0.1479, allocations: 15.98 kB / 0.4984 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.558e-05/0.1479, allocations: 27.91 kB / 0.4984 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.443e-05/0.148, allocations: 31.95 kB / 0.4985 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003096/0.1483, allocations: 279.1 kB / 0.4987 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1483, allocations: 3.938 kB / 0.4987 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005349/0.1489, allocations: 96 kB / 0.4988 GB, free: 0.5156 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001852/0.1491, allocations: 119.2 kB / 0.4989 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006932/0.1498, allocations: 403.8 kB / 0.4993 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.1498, allocations: 0 / 0.4993 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.1501, allocations: 267.1 kB / 0.4996 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006919/0.1508, allocations: 114 kB / 0.4997 GB, free: 15.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.1528, allocations: 1.033 MB / 0.5007 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.1533, allocations: 0.8781 MB / 0.5015 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.1534, allocations: 43.44 kB / 0.5016 GB, free: 13.58 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1534, allocations: 0 / 0.5016 GB, free: 13.58 MB / 398.1 MB Notification: Performance of Templates: time 0.01135/0.1648, allocations: 5.922 MB / 0.5074 GB, free: 7.645 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)