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.001402/0.001403, allocations: 112 kB / 17.06 MB, free: 5.82 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.001611/0.001611, allocations: 195.9 kB / 18 MB, free: 4.965 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.286/1.286, 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.2571/0.2571, allocations: 48.84 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.001421/0.001421, allocations: 67.91 kB / 450.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09594, 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.003108/0.09907, allocations: 2.179 MB / 0.4999 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1002, allocations: 0.6203 MB / 0.5005 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.1003, allocations: 3.938 kB / 0.5005 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1004, allocations: 27.72 kB / 0.5005 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002349/0.1007, allocations: 79.34 kB / 0.5006 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001694/0.1009, allocations: 55.92 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.1012, allocations: 242.9 kB / 0.5009 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.1013, allocations: 56.34 kB / 0.5009 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.1015, allocations: 95.58 kB / 0.501 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.1017, allocations: 111.4 kB / 0.5011 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.158e-05/0.1017, allocations: 16 kB / 0.5011 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.1e-05/0.1018, allocations: 16 kB / 0.5011 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.589e-05/0.1019, allocations: 39.83 kB / 0.5012 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.102, allocations: 107.3 kB / 0.5013 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.1023, allocations: 203 kB / 0.5015 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1023, allocations: 0 / 0.5015 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1023, allocations: 0 / 0.5015 GB, free: 9.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1023, allocations: 0 / 0.5015 GB, free: 9.418 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.0008438/0.1031, allocations: 0.5411 MB / 0.502 GB, free: 8.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1032, allocations: 11.89 kB / 0.502 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.1033, allocations: 24.8 kB / 0.502 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.1036, allocations: 259 kB / 0.5023 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.1036, allocations: 16.31 kB / 0.5023 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.1037, allocations: 16.38 kB / 0.5023 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.104, allocations: 151.6 kB / 0.5025 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.104, allocations: 3.953 kB / 0.5025 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.104, allocations: 11.94 kB / 0.5025 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1041, allocations: 0 / 0.5025 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002458/0.1043, allocations: 103.9 kB / 0.5026 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008223/0.1051, allocations: 0.6076 MB / 0.5032 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.1054, allocations: 126.5 kB / 0.5033 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.1056, allocations: 72.83 kB / 0.5034 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.1056, allocations: 0 / 0.5034 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.1056, allocations: 38.56 kB / 0.5034 GB, free: 7.273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 9.92e-07/0.1056, allocations: 0 / 0.5034 GB, free: 7.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001055/0.1067, allocations: 0.5526 MB / 0.5039 GB, free: 6.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.1067, allocations: 59.34 kB / 0.504 GB, free: 6.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.107, allocations: 229 kB / 0.5042 GB, free: 6.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.107, allocations: 29.7 kB / 0.5042 GB, free: 6.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/0.1071, allocations: 140.5 kB / 0.5044 GB, free: 6.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/0.1071, allocations: 59.44 kB / 0.5044 GB, free: 6.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.349e-05/0.1072, allocations: 41.7 kB / 0.5045 GB, free: 6.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1073, allocations: 330.8 kB / 0.5048 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.1075, allocations: 55.97 kB / 0.5048 GB, free: 5.695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1076, allocations: 70.55 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.001131/0.1088, allocations: 431.8 kB / 0.5053 GB, free: 5.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1088, allocations: 8 kB / 0.5053 GB, free: 5.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003508/0.1091, allocations: 189.3 kB / 0.5055 GB, free: 4.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1092, allocations: 7.984 kB / 0.5055 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1092, allocations: 0 / 0.5055 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1092, allocations: 4 kB / 0.5055 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.1094, allocations: 59.91 kB / 0.5056 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1095, allocations: 0 / 0.5056 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.1096, allocations: 20.02 kB / 0.5056 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.1096, allocations: 8 kB / 0.5056 GB, free: 4.871 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.0001048/0.1097, allocations: 130.4 kB / 0.5057 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/0.1098, allocations: 23.8 kB / 0.5057 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.688e-05/0.1098, allocations: 30.17 kB / 0.5058 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1099, allocations: 0 / 0.5058 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1099, allocations: 3.938 kB / 0.5058 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1099, allocations: 0 / 0.5058 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007005/0.1106, allocations: 0.5256 MB / 0.5063 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1106, allocations: 0 / 0.5063 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.1109, allocations: 51.91 kB / 0.5063 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1109, allocations: 0 / 0.5063 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.1109, allocations: 4 kB / 0.5063 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1109, allocations: 4 kB / 0.5063 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1109, allocations: 0 / 0.5063 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004963/0.1114, allocations: 343.2 kB / 0.5067 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.056e-05/0.1115, allocations: 105 kB / 0.5068 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.1115, allocations: 4 kB / 0.5068 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1117, allocations: 7.984 kB / 0.5068 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.925e-05/0.1118, allocations: 15.98 kB / 0.5068 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.1118, allocations: 7.938 kB / 0.5068 GB, free: 3.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001513/0.1119, allocations: 172.4 kB / 0.507 GB, free: 3.359 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1119, allocations: 0 / 0.507 GB, free: 3.359 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.1122, allocations: 44 kB / 0.507 GB, free: 3.316 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 8.228e-05/0.1123, allocations: 91.25 kB / 0.5071 GB, free: 3.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003296/0.1126, allocations: 132.3 kB / 0.5072 GB, free: 3.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1126, allocations: 0 / 0.5072 GB, free: 3.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.1128, allocations: 75.88 kB / 0.5073 GB, free: 3.016 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.1132, allocations: 36.41 kB / 0.5073 GB, free: 2.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009694/0.1141, allocations: 0.5651 MB / 0.5079 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.1145, allocations: 0.7475 MB / 0.5086 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.363e-05/0.1146, allocations: 17.55 kB / 0.5086 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.819e-05/0.1146, allocations: 19.44 kB / 0.5086 GB, free: 1.578 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1146, allocations: 3.938 kB / 0.5087 GB, free: 1.574 MB / 398.1 MB Notification: Performance of Templates: time 0.004812/0.1195, allocations: 2.019 MB / 0.5106 GB, free: 15.56 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)