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.001373/0.001373, allocations: 108.3 kB / 17.74 MB, free: 5.191 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.001261/0.001261, allocations: 192.4 kB / 18.67 MB, free: 4.266 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.372/1.372, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1803/0.1803, allocations: 37.97 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.001371/0.001371, allocations: 63.89 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09314/0.09452, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006662/0.1012, allocations: 5.519 MB / 493.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.1035, allocations: 1.395 MB / 494.7 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.1038, allocations: 23.88 kB / 494.7 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00044/0.1042, allocations: 139 kB / 494.9 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007472/0.105, allocations: 370.1 kB / 495.2 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.1053, allocations: 159.7 kB / 495.4 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007841/0.1061, allocations: 0.7788 MB / 496.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.1064, allocations: 217.7 kB / 496.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004339/0.1069, allocations: 342.4 kB / 496.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005945/0.1075, allocations: 398.6 kB / 497.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.67e-05/0.1076, allocations: 40 kB / 497.1 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.173e-05/0.1077, allocations: 40 kB / 497.2 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.1079, allocations: 211.4 kB / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002717/0.1082, allocations: 282.5 kB / 497.7 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000538/0.1087, allocations: 0.5721 MB / 498.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1087, allocations: 0 / 498.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1087, allocations: 0 / 498.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1087, allocations: 4 kB / 498.2 MB, free: 13.84 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.001462/0.1102, allocations: 0.888 MB / 499.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1103, allocations: 11.89 kB / 499.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.1104, allocations: 56.28 kB / 499.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000791/0.1112, allocations: 0.5141 MB / 499.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/0.1112, allocations: 36.92 kB / 499.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.731e-05/0.1113, allocations: 40 kB / 499.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007824/0.1121, allocations: 0.5312 MB / 0.4886 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.1121, allocations: 7.938 kB / 0.4886 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.1122, allocations: 16 kB / 0.4886 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.1122, allocations: 20.98 kB / 0.4886 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006044/0.1128, allocations: 391.6 kB / 0.489 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.1151, allocations: 1.924 MB / 0.4909 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005394/0.1156, allocations: 333.3 kB / 0.4912 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.1159, allocations: 177.6 kB / 0.4914 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.116, allocations: 7.984 kB / 0.4914 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/0.1163, allocations: 284.6 kB / 0.4916 GB, free: 8.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.725e-06/0.1164, allocations: 0 / 0.4916 GB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.001851/0.1182, allocations: 1.175 MB / 0.4928 GB, free: 7.082 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/0.1183, allocations: 166.2 kB / 0.4929 GB, free: 6.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.1187, allocations: 401.9 kB / 0.4933 GB, free: 6.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.518e-05/0.1187, allocations: 33.7 kB / 0.4934 GB, free: 6.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.1189, allocations: 291.6 kB / 0.4936 GB, free: 6.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.724e-05/0.119, allocations: 126.2 kB / 0.4938 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.1191, allocations: 98.09 kB / 0.4939 GB, free: 5.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1193, allocations: 358.8 kB / 0.4942 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.1195, allocations: 117.1 kB / 0.4943 GB, free: 5.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.1198, allocations: 290.1 kB / 0.4946 GB, free: 5.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005037/0.1203, allocations: 479.6 kB / 0.495 GB, free: 4.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1203, allocations: 4 kB / 0.495 GB, free: 4.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006821/0.121, allocations: 0.5228 MB / 0.4956 GB, free: 3.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.121, allocations: 37.83 kB / 0.4956 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.121, allocations: 4 kB / 0.4956 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.1211, allocations: 8 kB / 0.4956 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.1215, allocations: 111.9 kB / 0.4957 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.1215, allocations: 15.92 kB / 0.4957 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.1217, allocations: 19.98 kB / 0.4957 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/0.1218, allocations: 31.98 kB / 0.4958 GB, free: 3.766 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.0002435/0.122, allocations: 251.3 kB / 0.496 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.679e-05/0.1221, allocations: 51.38 kB / 0.4961 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006459/0.1228, allocations: 451.2 kB / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1228, allocations: 4 kB / 0.4965 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1228, allocations: 0 / 0.4965 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.1228, allocations: 3.984 kB / 0.4965 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.124, allocations: 0.9781 MB / 0.4975 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1241, allocations: 4 kB / 0.4975 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.1243, allocations: 67.89 kB / 0.4975 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1244, allocations: 0 / 0.4975 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.1244, allocations: 12 kB / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1244, allocations: 0 / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1244, allocations: 0 / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008555/0.1253, allocations: 0.7154 MB / 0.4982 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.1254, allocations: 140.5 kB / 0.4984 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.405e-05/0.1255, allocations: 8 kB / 0.4984 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.1257, allocations: 15.98 kB / 0.4984 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/0.1258, allocations: 31.89 kB / 0.4984 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.524e-05/0.1258, allocations: 36.03 kB / 0.4985 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002744/0.1261, allocations: 271.1 kB / 0.4987 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1261, allocations: 0 / 0.4987 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004288/0.1266, allocations: 100 kB / 0.4988 GB, free: 0.5117 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.0001164/0.1267, allocations: 111.2 kB / 0.4989 GB, free: 404 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005644/0.1272, allocations: 415.8 kB / 0.4993 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1273, allocations: 0 / 0.4993 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002747/0.1275, allocations: 263.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.0005691/0.1281, allocations: 110 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.001467/0.1296, allocations: 1.025 MB / 0.5007 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.13, allocations: 0.8859 MB / 0.5015 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.687e-05/0.1301, allocations: 35.44 kB / 0.5016 GB, free: 13.59 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1301, allocations: 0 / 0.5016 GB, free: 13.59 MB / 398.1 MB Notification: Performance of Templates: time 0.007749/0.1379, allocations: 5.875 MB / 0.5073 GB, free: 7.699 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)