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.001183/0.001183, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001161/0.001161, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.401/1.401, allocations: 205.1 MB / 224.5 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.2713/0.2713, allocations: 48.84 MB / 320.7 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.001389/0.001389, allocations: 67.89 kB / 451.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1084, allocations: 59.15 MB / 0.4984 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.004732/0.1131, allocations: 2.179 MB / 0.5005 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.1147, allocations: 0.6281 MB / 0.5011 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.1148, allocations: 4 kB / 0.5011 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.115, allocations: 27.66 kB / 0.5012 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.1154, allocations: 71.41 kB / 0.5012 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.1156, allocations: 51.88 kB / 0.5013 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003915/0.116, allocations: 242.9 kB / 0.5015 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.1162, allocations: 68.34 kB / 0.5016 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.1164, allocations: 95.58 kB / 0.5017 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.1167, allocations: 103.5 kB / 0.5018 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.197e-05/0.1167, allocations: 16 kB / 0.5018 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.1168, allocations: 20 kB / 0.5018 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.1169, allocations: 43.78 kB / 0.5018 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.1171, allocations: 103.4 kB / 0.5019 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.1174, allocations: 207.1 kB / 0.5021 GB, free: 9.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1174, allocations: 0 / 0.5021 GB, free: 9.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1175, allocations: 0 / 0.5021 GB, free: 9.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.1175, allocations: 0 / 0.5021 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.001168/0.1187, allocations: 0.5296 MB / 0.5026 GB, free: 8.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.1187, allocations: 15.88 kB / 0.5027 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1189, allocations: 28.56 kB / 0.5027 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005/0.1194, allocations: 247 kB / 0.5029 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.1194, allocations: 16.31 kB / 0.5029 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.788e-05/0.1195, allocations: 20.28 kB / 0.503 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.1199, allocations: 155.6 kB / 0.5031 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.12, allocations: 4 kB / 0.5031 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.12, allocations: 0 / 0.5031 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.1201, allocations: 7.938 kB / 0.5031 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.1205, allocations: 99.92 kB / 0.5032 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.1217, allocations: 0.5997 MB / 0.5038 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.1221, allocations: 138.5 kB / 0.5039 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.1223, allocations: 69.11 kB / 0.504 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.1223, allocations: 0 / 0.504 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.1224, allocations: 42.5 kB / 0.504 GB, free: 7.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.1224, allocations: 0 / 0.504 GB, free: 7.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001491/0.1239, allocations: 0.5479 MB / 0.5046 GB, free: 6.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1239, allocations: 55.41 kB / 0.5046 GB, free: 6.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.1243, allocations: 229 kB / 0.5048 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1243, allocations: 29.7 kB / 0.5049 GB, free: 6.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.1245, allocations: 140.3 kB / 0.505 GB, free: 6.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.022e-05/0.1245, allocations: 63.09 kB / 0.5051 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.1247, allocations: 45.7 kB / 0.5051 GB, free: 6.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1248, allocations: 330.8 kB / 0.5054 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.125, allocations: 47.97 kB / 0.5055 GB, free: 5.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.1253, allocations: 82.48 kB / 0.5056 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.001719/0.127, allocations: 419.9 kB / 0.506 GB, free: 5.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.127, allocations: 4 kB / 0.506 GB, free: 5.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005471/0.1276, allocations: 197.2 kB / 0.5061 GB, free: 4.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1276, allocations: 7.938 kB / 0.5062 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.1276, allocations: 0 / 0.5062 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.1277, allocations: 4 kB / 0.5062 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.1281, allocations: 55.95 kB / 0.5062 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1281, allocations: 0 / 0.5062 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.1283, allocations: 8 kB / 0.5062 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1283, allocations: 12.03 kB / 0.5062 GB, free: 4.891 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.0001823/0.1285, allocations: 134.4 kB / 0.5064 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.433e-05/0.1286, allocations: 27.59 kB / 0.5064 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.058e-05/0.1287, allocations: 30.17 kB / 0.5064 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1287, allocations: 4 kB / 0.5064 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.1288, allocations: 0 / 0.5064 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1288, allocations: 3.938 kB / 0.5064 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000998/0.1298, allocations: 0.5217 MB / 0.5069 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1298, allocations: 0 / 0.5069 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.1302, allocations: 51.97 kB / 0.507 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.1302, allocations: 0 / 0.507 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1302, allocations: 0 / 0.507 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.1302, allocations: 3.938 kB / 0.507 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1302, allocations: 4 kB / 0.507 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007138/0.1309, allocations: 339.1 kB / 0.5073 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.1311, allocations: 105 kB / 0.5074 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.1311, allocations: 0 / 0.5074 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.1314, allocations: 15.92 kB / 0.5074 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.224e-05/0.1314, allocations: 11.98 kB / 0.5074 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.1315, allocations: 0 / 0.5074 GB, free: 3.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002232/0.1317, allocations: 176.4 kB / 0.5076 GB, free: 3.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1317, allocations: 0 / 0.5076 GB, free: 3.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004513/0.1322, allocations: 40 kB / 0.5076 GB, free: 3.34 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 0.000128/0.1323, allocations: 99.19 kB / 0.5077 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.1328, allocations: 136.2 kB / 0.5079 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1328, allocations: 0 / 0.5079 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.1331, allocations: 71.81 kB / 0.5079 GB, free: 3.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.1336, allocations: 40.48 kB / 0.508 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.1351, allocations: 0.5923 MB / 0.5086 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1356, allocations: 0.7397 MB / 0.5093 GB, free: 1.605 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.275e-05/0.1357, allocations: 19.44 kB / 0.5093 GB, free: 1.586 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1357, allocations: 0 / 0.5093 GB, free: 1.586 MB / 398.1 MB Notification: Performance of Templates: time 0.005322/0.141, allocations: 2.369 MB / 0.5116 GB, free: 15.21 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)