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.001091/0.001092, allocations: 93.67 kB / 16.31 MB, free: 6.008 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.001296/0.001296, allocations: 185.4 kB / 17.21 MB, free: 5.902 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.386/1.386, allocations: 205.4 MB / 223.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2944/0.2944, allocations: 38.06 MB / 309.7 MB, free: 8.996 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.0005077/0.0005078, allocations: 16 kB / 376.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09761, allocations: 56.33 MB / 432.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005906/0.1036, allocations: 5.811 MB / 438.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.1063, allocations: 1.649 MB / 440.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006197/0.107, allocations: 39.69 kB / 440.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005179/0.1075, allocations: 131 kB / 440.5 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.1088, allocations: 402 kB / 440.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.1093, allocations: 191.7 kB / 441.1 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.1104, allocations: 0.919 MB / 442 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.1107, allocations: 159.1 kB / 442.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005903/0.1113, allocations: 302.6 kB / 442.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007293/0.1121, allocations: 386.7 kB / 442.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.549e-05/0.1122, allocations: 20 kB / 442.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.1123, allocations: 24 kB / 442.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1125, allocations: 179.5 kB / 443 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1127, allocations: 125.4 kB / 443.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.1131, allocations: 422.9 kB / 443.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1131, allocations: 3.938 kB / 443.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1132, allocations: 0 / 443.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.1132, allocations: 0 / 443.6 MB, free: 12.04 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.001295/0.1145, allocations: 0.8023 MB / 444.4 MB, free: 11.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1145, allocations: 8.031 kB / 444.4 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.1147, allocations: 63.23 kB / 444.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007778/0.1155, allocations: 469.6 kB / 444.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.1155, allocations: 29 kB / 444.9 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.337e-05/0.1156, allocations: 47.98 kB / 445 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008334/0.1164, allocations: 0.5273 MB / 445.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.1165, allocations: 0 / 445.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.1165, allocations: 19.95 kB / 445.5 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.511e-05/0.1165, allocations: 20.98 kB / 445.5 MB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.1172, allocations: 395.6 kB / 445.9 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.1195, allocations: 1.936 MB / 447.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005417/0.12, allocations: 333.3 kB / 448.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.1203, allocations: 177.7 kB / 448.4 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.1204, allocations: 8 kB / 448.4 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.1208, allocations: 284.4 kB / 448.6 MB, free: 6.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.515e-06/0.1208, allocations: 0 / 448.6 MB, free: 6.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.00172/0.1225, allocations: 1.171 MB / 449.8 MB, free: 5.418 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.812e-05/0.1226, allocations: 170.3 kB / 450 MB, free: 5.215 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.123, allocations: 393.9 kB / 450.4 MB, free: 4.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.123, allocations: 33.64 kB / 450.4 MB, free: 4.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.1232, allocations: 291.6 kB / 450.7 MB, free: 4.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.862e-05/0.1233, allocations: 118.3 kB / 450.8 MB, free: 4.375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.051e-05/0.1233, allocations: 15.94 kB / 450.8 MB, free: 4.359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1235, allocations: 354.8 kB / 451.2 MB, free: 4.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.1237, allocations: 121 kB / 451.3 MB, free: 3.887 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002894/0.124, allocations: 294.1 kB / 451.6 MB, free: 3.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.1242, allocations: 181.6 kB / 451.7 MB, free: 3.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1242, allocations: 0 / 451.7 MB, free: 3.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007142/0.125, allocations: 0.5145 MB / 452.3 MB, free: 2.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.125, allocations: 38.33 kB / 452.3 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.125, allocations: 8 kB / 452.3 MB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.1251, allocations: 8 kB / 452.3 MB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003956/0.1255, allocations: 111.8 kB / 452.4 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.1255, allocations: 8 kB / 452.4 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.1257, allocations: 23.98 kB / 452.5 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/0.1258, allocations: 31.98 kB / 452.5 MB, free: 2.586 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,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002451/0.126, allocations: 255.2 kB / 452.7 MB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.154e-05/0.1261, allocations: 43.44 kB / 452.8 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006251/0.1267, allocations: 459.4 kB / 453.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1268, allocations: 7.938 kB / 453.2 MB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1268, allocations: 4.062 kB / 453.2 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1268, allocations: 7.969 kB / 453.2 MB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.128, allocations: 0.9651 MB / 454.2 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.128, allocations: 0 / 454.2 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002935/0.1283, allocations: 67.94 kB / 454.3 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.1283, allocations: 4 kB / 454.3 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.1283, allocations: 11.98 kB / 454.3 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.1283, allocations: 4 kB / 454.3 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1283, allocations: 0 / 454.3 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1814/0.3098, allocations: 0.7003 MB / 455 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.3101, allocations: 144.8 kB / 455.1 MB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.3102, allocations: 10 kB / 455.1 MB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.3105, allocations: 15.89 kB / 455.2 MB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.2e-05/0.3106, allocations: 32.52 kB / 455.2 MB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/0.3106, allocations: 28.59 kB / 455.2 MB, free: 51.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003385/0.311, allocations: 270 kB / 455.5 MB, free: 51.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.311, allocations: 0.9062 kB / 455.5 MB, free: 51.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005577/0.3116, allocations: 100.7 kB / 455.6 MB, free: 51.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001383/0.3117, allocations: 113 kB / 455.7 MB, free: 51.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006459/0.3124, allocations: 404.8 kB / 456.1 MB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3124, allocations: 0 / 456.1 MB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.3127, allocations: 263.3 kB / 456.3 MB, free: 51.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.3133, allocations: 103.8 kB / 456.5 MB, free: 51.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.3148, allocations: 1.174 MB / 457.6 MB, free: 50.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.3151, allocations: 0.8843 MB / 458.5 MB, free: 49.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002925/0.3154, allocations: 92.06 kB / 458.6 MB, free: 49.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.232e-05/0.3155, allocations: 35.03 kB / 458.6 MB, free: 49.98 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3155, allocations: 0 / 458.6 MB, free: 49.98 MB / 382.1 MB Notification: Performance of Templates: time 0.007263/0.3228, allocations: 3.784 MB / 462.4 MB, free: 49.73 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: