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.001033/0.001033, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.0009615/0.0009615, allocations: 199 kB / 18 MB, free: 5.066 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.221/1.221, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1673/0.1673, allocations: 37.99 MB / 309.2 MB, free: 5.941 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.001297/0.001297, allocations: 75.88 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.0894, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006008/0.09545, allocations: 5.519 MB / 492.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.09737, allocations: 1.395 MB / 494 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.09758, allocations: 23.88 kB / 494.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003991/0.09799, allocations: 135 kB / 494.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007075/0.09872, allocations: 382.1 kB / 494.6 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.09901, allocations: 147.8 kB / 494.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006781/0.0997, allocations: 0.7864 MB / 495.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.09999, allocations: 217.7 kB / 495.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003839/0.1004, allocations: 350.5 kB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004988/0.1009, allocations: 398.6 kB / 496.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.528e-05/0.101, allocations: 40 kB / 496.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.143e-05/0.1011, allocations: 40 kB / 496.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.1013, allocations: 211.4 kB / 496.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.1015, allocations: 274.5 kB / 497 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005106/0.102, allocations: 0.5799 MB / 497.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.102, allocations: 0 / 497.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.102, allocations: 0 / 497.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.102, allocations: 0 / 497.6 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.001298/0.1034, allocations: 0.8918 MB / 498.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1034, allocations: 11.89 kB / 498.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.464e-05/0.1035, allocations: 60.28 kB / 498.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000735/0.1042, allocations: 0.5141 MB / 499 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.1043, allocations: 36.92 kB / 499.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.1043, allocations: 40 kB / 499.1 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007465/0.1051, allocations: 0.5352 MB / 499.6 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1051, allocations: 0 / 499.6 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.358e-05/0.1052, allocations: 19.98 kB / 499.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.255e-05/0.1052, allocations: 17 kB / 499.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005602/0.1058, allocations: 395.6 kB / 0.4884 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.1078, allocations: 1.92 MB / 0.4902 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005047/0.1083, allocations: 325.4 kB / 0.4905 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.1086, allocations: 181.7 kB / 0.4907 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.1087, allocations: 4 kB / 0.4907 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.109, allocations: 288.5 kB / 0.491 GB, free: 8.336 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.553e-06/0.109, allocations: 0 / 0.491 GB, free: 8.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.001593/0.1106, allocations: 1.175 MB / 0.4921 GB, free: 7.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.293e-05/0.1107, allocations: 166.2 kB / 0.4923 GB, free: 6.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003519/0.111, allocations: 397.8 kB / 0.4927 GB, free: 6.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.1111, allocations: 41.81 kB / 0.4927 GB, free: 6.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.1113, allocations: 291.6 kB / 0.493 GB, free: 6.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.142e-05/0.1114, allocations: 122.3 kB / 0.4931 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1115, allocations: 94.09 kB / 0.4932 GB, free: 5.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1116, allocations: 358.8 kB / 0.4935 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1118, allocations: 121 kB / 0.4937 GB, free: 5.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.1121, allocations: 286.1 kB / 0.4939 GB, free: 5.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004844/0.1126, allocations: 491.6 kB / 0.4944 GB, free: 4.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1126, allocations: 0 / 0.4944 GB, free: 4.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006527/0.1132, allocations: 0.5189 MB / 0.4949 GB, free: 4.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.1133, allocations: 37.8 kB / 0.4949 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1133, allocations: 11.98 kB / 0.495 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.1133, allocations: 8 kB / 0.495 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/0.1137, allocations: 103.8 kB / 0.4951 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.1137, allocations: 11.98 kB / 0.4951 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.1139, allocations: 20 kB / 0.4951 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.114, allocations: 31.97 kB / 0.4951 GB, free: 3.777 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.0002128/0.1142, allocations: 251.3 kB / 0.4954 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.1143, allocations: 55.36 kB / 0.4954 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006204/0.1149, allocations: 455.2 kB / 0.4958 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1149, allocations: 4 kB / 0.4959 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.1149, allocations: 0 / 0.4959 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-06/0.1149, allocations: 0 / 0.4959 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.1161, allocations: 0.9859 MB / 0.4968 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1161, allocations: 0 / 0.4968 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.1164, allocations: 59.91 kB / 0.4969 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.1164, allocations: 4 kB / 0.4969 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.1164, allocations: 15.98 kB / 0.4969 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.1164, allocations: 0 / 0.4969 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.1164, allocations: 7.938 kB / 0.4969 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008079/0.1173, allocations: 0.6998 MB / 0.4976 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.1174, allocations: 140.5 kB / 0.4977 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.099e-05/0.1175, allocations: 16 kB / 0.4977 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.1177, allocations: 15.98 kB / 0.4977 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.1177, allocations: 23.91 kB / 0.4978 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/0.1178, allocations: 31.97 kB / 0.4978 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.118, allocations: 271.1 kB / 0.4981 GB, free: 0.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.118, allocations: 0 / 0.4981 GB, free: 0.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003906/0.1184, allocations: 107.9 kB / 0.4982 GB, free: 0.5195 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.0001172/0.1186, allocations: 115.2 kB / 0.4983 GB, free: 408 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005309/0.1191, allocations: 407.9 kB / 0.4987 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1191, allocations: 0 / 0.4987 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.1194, allocations: 267.1 kB / 0.4989 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.0005675/0.12, allocations: 110 kB / 0.499 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.1214, allocations: 0.9805 MB / 0.5 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.1218, allocations: 0.8859 MB / 0.5008 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002225/0.122, allocations: 88.31 kB / 0.5009 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.1221, allocations: 35.44 kB / 0.501 GB, free: 13.56 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1221, allocations: 0 / 0.501 GB, free: 13.56 MB / 398.1 MB Notification: Performance of Templates: time 0.008013/0.1301, allocations: 4.433 MB / 0.5053 GB, free: 9.117 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)