Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.ElectricalComponents.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 111.6 kB / 17.06 MB, free: 5.824 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.001623/0.001623, allocations: 192 kB / 18 MB, free: 4.977 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.36/1.36, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2645/0.2645, allocations: 48.86 MB / 320.1 MB, free: 11.02 MB / 270.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.001373/0.001373, allocations: 63.91 kB / 450.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09526, allocations: 59.16 MB / 0.4977 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.00308/0.09837, allocations: 2.179 MB / 0.4999 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009596/0.09935, allocations: 0.6281 MB / 0.5005 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.406e-05/0.09946, allocations: 0 / 0.5005 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.0996, allocations: 31.66 kB / 0.5005 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.09983, allocations: 79.39 kB / 0.5006 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00015/0.09998, allocations: 51.88 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.1003, allocations: 242.9 kB / 0.5009 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1004, allocations: 52.38 kB / 0.5009 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.1006, allocations: 103.6 kB / 0.501 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.1007, allocations: 99.48 kB / 0.5011 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.1008, allocations: 20 kB / 0.5011 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.7e-05/0.1008, allocations: 16 kB / 0.5011 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.048e-05/0.1009, allocations: 47.77 kB / 0.5012 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.865e-05/0.101, allocations: 107.4 kB / 0.5013 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.1012, allocations: 199.2 kB / 0.5015 GB, free: 9.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1012, allocations: 3.938 kB / 0.5015 GB, free: 9.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1012, allocations: 0 / 0.5015 GB, free: 9.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1013, allocations: 0 / 0.5015 GB, free: 9.41 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007853/0.102, allocations: 0.5296 MB / 0.502 GB, free: 8.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.1021, allocations: 15.89 kB / 0.502 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.056e-05/0.1022, allocations: 28.56 kB / 0.502 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.1025, allocations: 247 kB / 0.5023 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.1025, allocations: 16.36 kB / 0.5023 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.1025, allocations: 24.22 kB / 0.5023 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.1028, allocations: 155.6 kB / 0.5025 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1029, allocations: 0 / 0.5025 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.1029, allocations: 4 kB / 0.5025 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.1029, allocations: 7.938 kB / 0.5025 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002439/0.1031, allocations: 99.92 kB / 0.5026 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007903/0.1039, allocations: 0.6075 MB / 0.5032 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.1042, allocations: 122.5 kB / 0.5033 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.1043, allocations: 69.11 kB / 0.5033 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.1044, allocations: 8 kB / 0.5033 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1044, allocations: 38.5 kB / 0.5034 GB, free: 7.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.1044, allocations: 0 / 0.5034 GB, free: 7.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001016/0.1054, allocations: 0.5557 MB / 0.5039 GB, free: 6.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.1055, allocations: 55.41 kB / 0.504 GB, free: 6.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.1057, allocations: 221 kB / 0.5042 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.1057, allocations: 29.7 kB / 0.5042 GB, free: 6.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.005e-05/0.1058, allocations: 144.3 kB / 0.5044 GB, free: 6.195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.1059, allocations: 63.09 kB / 0.5044 GB, free: 6.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.1059, allocations: 33.72 kB / 0.5044 GB, free: 6.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.106, allocations: 334.8 kB / 0.5048 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.1062, allocations: 47.97 kB / 0.5048 GB, free: 5.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.1063, allocations: 86.48 kB / 0.5049 GB, free: 5.617 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.1074, allocations: 415.9 kB / 0.5053 GB, free: 5.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1075, allocations: 0 / 0.5053 GB, free: 5.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003394/0.1078, allocations: 197.2 kB / 0.5055 GB, free: 4.984 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.1078, allocations: 7.938 kB / 0.5055 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1078, allocations: 4 kB / 0.5055 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1079, allocations: 3.938 kB / 0.5055 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.1081, allocations: 55.97 kB / 0.5056 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1081, allocations: 7.984 kB / 0.5056 GB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.1083, allocations: 15.98 kB / 0.5056 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1083, allocations: 8.031 kB / 0.5056 GB, free: 4.883 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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.0001094/0.1084, allocations: 134.5 kB / 0.5057 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.495e-05/0.1085, allocations: 27.66 kB / 0.5057 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.746e-05/0.1086, allocations: 26.17 kB / 0.5058 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1086, allocations: 4 kB / 0.5058 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1086, allocations: 0 / 0.5058 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1086, allocations: 3.938 kB / 0.5058 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.1093, allocations: 0.5217 MB / 0.5063 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1093, allocations: 0 / 0.5063 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.1096, allocations: 47.97 kB / 0.5063 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1096, allocations: 0 / 0.5063 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1096, allocations: 8 kB / 0.5063 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1096, allocations: 0 / 0.5063 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1096, allocations: 3.938 kB / 0.5063 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004985/0.1101, allocations: 339 kB / 0.5067 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.555e-05/0.1102, allocations: 100.9 kB / 0.5068 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.1103, allocations: 8 kB / 0.5068 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.1104, allocations: 7.938 kB / 0.5068 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.1105, allocations: 11.98 kB / 0.5068 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.1105, allocations: 4 kB / 0.5068 GB, free: 3.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.1107, allocations: 168.4 kB / 0.5069 GB, free: 3.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1107, allocations: 4 kB / 0.5069 GB, free: 3.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.1109, allocations: 44 kB / 0.507 GB, free: 3.336 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 9.814e-05/0.1111, allocations: 95.19 kB / 0.5071 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003275/0.1114, allocations: 136.2 kB / 0.5072 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1114, allocations: 0 / 0.5072 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.1115, allocations: 75.81 kB / 0.5073 GB, free: 3.027 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.1119, allocations: 44.41 kB / 0.5073 GB, free: 2.984 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.1129, allocations: 0.5581 MB / 0.5079 GB, free: 2.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.1132, allocations: 0.7475 MB / 0.5086 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.127e-05/0.1133, allocations: 17.53 kB / 0.5086 GB, free: 1.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.1134, allocations: 19.44 kB / 0.5086 GB, free: 1.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1134, allocations: 0 / 0.5086 GB, free: 1.59 MB / 398.1 MB Notification: Performance of Templates: time 0.004571/0.118, allocations: 2.007 MB / 0.5106 GB, free: 15.59 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)