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: 107.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.001567/0.001567, 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.29/1.29, 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.2646/0.2646, allocations: 48.85 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.001554/0.001554, allocations: 63.91 kB / 450.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1067, 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.00352/0.1102, allocations: 2.172 MB / 0.4998 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1114, allocations: 0.6397 MB / 0.5005 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1116, allocations: 0 / 0.5005 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.1118, allocations: 27.67 kB / 0.5005 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.112, allocations: 75.39 kB / 0.5006 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.1122, allocations: 55.86 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.1125, allocations: 239 kB / 0.5009 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.1126, allocations: 60.36 kB / 0.5009 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.1128, allocations: 103.5 kB / 0.501 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.113, allocations: 99.48 kB / 0.5011 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.113, allocations: 20 kB / 0.5011 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.131e-05/0.1131, allocations: 20 kB / 0.5011 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.413e-05/0.1131, allocations: 39.83 kB / 0.5012 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.1132, allocations: 107.3 kB / 0.5013 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002399/0.1135, allocations: 203.2 kB / 0.5015 GB, free: 9.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1135, allocations: 4 kB / 0.5015 GB, free: 9.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1135, allocations: 0 / 0.5015 GB, free: 9.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1135, 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.0008611/0.1144, allocations: 0.5218 MB / 0.502 GB, free: 8.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1144, allocations: 15.89 kB / 0.502 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.1145, allocations: 28.56 kB / 0.502 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.1149, allocations: 254.9 kB / 0.5023 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1149, allocations: 12.31 kB / 0.5023 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.1149, allocations: 24.27 kB / 0.5023 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.1152, allocations: 155.6 kB / 0.5025 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1153, allocations: 0 / 0.5025 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.1153, allocations: 7.984 kB / 0.5025 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1153, allocations: 4 kB / 0.5025 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.1156, allocations: 99.88 kB / 0.5026 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008362/0.1164, allocations: 0.6036 MB / 0.5032 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.1167, allocations: 122.6 kB / 0.5033 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.1168, allocations: 65.11 kB / 0.5033 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.1168, allocations: 8 kB / 0.5033 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1169, allocations: 42.44 kB / 0.5034 GB, free: 7.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.1169, allocations: 0 / 0.5034 GB, free: 7.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001059/0.1179, allocations: 0.5596 MB / 0.5039 GB, free: 6.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.118, allocations: 55.41 kB / 0.504 GB, free: 6.605 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.1182, allocations: 221 kB / 0.5042 GB, free: 6.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.1183, allocations: 37.69 kB / 0.5042 GB, free: 6.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/0.1183, allocations: 136.3 kB / 0.5044 GB, free: 6.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.344e-05/0.1184, allocations: 63.09 kB / 0.5044 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.842e-05/0.1185, allocations: 33.72 kB / 0.5045 GB, free: 6.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1186, allocations: 334.8 kB / 0.5048 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.1187, allocations: 47.97 kB / 0.5048 GB, free: 5.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.1189, allocations: 82.53 kB / 0.5049 GB, free: 5.625 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.001178/0.1201, allocations: 419.8 kB / 0.5053 GB, free: 5.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1201, allocations: 0 / 0.5053 GB, free: 5.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003684/0.1204, allocations: 201.2 kB / 0.5055 GB, free: 4.984 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.1205, allocations: 8 kB / 0.5055 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1205, allocations: 0 / 0.5055 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1205, allocations: 0 / 0.5055 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.1208, allocations: 63.91 kB / 0.5056 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.1208, allocations: 0 / 0.5056 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.121, allocations: 11.98 kB / 0.5056 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.121, allocations: 16.02 kB / 0.5056 GB, free: 4.887 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.0001485/0.1212, allocations: 138.4 kB / 0.5057 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.712e-05/0.1212, allocations: 23.66 kB / 0.5057 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.114e-05/0.1213, allocations: 26.17 kB / 0.5058 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1213, allocations: 4 kB / 0.5058 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1213, allocations: 0 / 0.5058 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1213, allocations: 0 / 0.5058 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007464/0.1221, allocations: 0.5294 MB / 0.5063 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1221, allocations: 0 / 0.5063 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.1223, allocations: 43.97 kB / 0.5063 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1224, allocations: 4 kB / 0.5063 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.1224, allocations: 4 kB / 0.5063 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1224, allocations: 0 / 0.5063 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1224, allocations: 0 / 0.5063 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004927/0.1229, allocations: 343 kB / 0.5067 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-05/0.123, allocations: 104.9 kB / 0.5068 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.123, allocations: 4 kB / 0.5068 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.1232, allocations: 7.938 kB / 0.5068 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.1232, allocations: 11.98 kB / 0.5068 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.1233, allocations: 4 kB / 0.5068 GB, free: 3.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.1234, allocations: 168.4 kB / 0.5069 GB, free: 3.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1234, allocations: 4 kB / 0.5069 GB, free: 3.383 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.1237, allocations: 40 kB / 0.507 GB, free: 3.344 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.914e-05/0.1238, allocations: 99.19 kB / 0.5071 GB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.1241, allocations: 144.2 kB / 0.5072 GB, free: 3.098 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1241, allocations: 0 / 0.5072 GB, free: 3.098 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1243, allocations: 71.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.0003621/0.1246, allocations: 36.48 kB / 0.5073 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009589/0.1256, allocations: 0.562 MB / 0.5079 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.1259, allocations: 0.7436 MB / 0.5086 GB, free: 1.637 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.778e-05/0.126, allocations: 17.53 kB / 0.5086 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.573e-05/0.1261, allocations: 19.44 kB / 0.5086 GB, free: 1.598 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1261, allocations: 3.938 kB / 0.5086 GB, free: 1.594 MB / 398.1 MB Notification: Performance of Templates: time 0.005091/0.1312, allocations: 2.011 MB / 0.5106 GB, free: 15.58 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)