Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical5,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 114.4 kB / 17.07 MB, free: 5.965 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.001244/0.001244, allocations: 200 kB / 18 MB, free: 5.051 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.367/1.367, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2607/0.2607, allocations: 48.84 MB / 320.1 MB, free: 11 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.001425/0.001425, allocations: 72.44 kB / 450.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09562, allocations: 59.15 MB / 0.4977 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003419/0.09908, allocations: 2.646 MB / 0.5003 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.1002, allocations: 0.7487 MB / 0.501 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.1003, allocations: 4 kB / 0.5011 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.1005, allocations: 51.45 kB / 0.5011 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.1008, allocations: 123 kB / 0.5012 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.101, allocations: 87.83 kB / 0.5013 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.1013, allocations: 398.2 kB / 0.5017 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.1015, allocations: 85.56 kB / 0.5018 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.1017, allocations: 159.3 kB / 0.5019 GB, free: 8.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1019, allocations: 159.1 kB / 0.5021 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.1019, allocations: 28 kB / 0.5021 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.637e-05/0.102, allocations: 32 kB / 0.5021 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.115e-05/0.1021, allocations: 67.69 kB / 0.5022 GB, free: 8.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.1022, allocations: 175 kB / 0.5024 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003072/0.1025, allocations: 318.7 kB / 0.5027 GB, free: 8.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1025, allocations: 4 kB / 0.5027 GB, free: 8.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1025, allocations: 0 / 0.5027 GB, free: 8.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1026, allocations: 0 / 0.5027 GB, free: 8.172 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009729/0.1035, allocations: 0.662 MB / 0.5033 GB, free: 7.461 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.1036, allocations: 15.88 kB / 0.5033 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1037, allocations: 40.47 kB / 0.5034 GB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.1041, allocations: 327.9 kB / 0.5037 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.1041, allocations: 16.81 kB / 0.5037 GB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.1041, allocations: 28.36 kB / 0.5037 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.1046, allocations: 243 kB / 0.5039 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1046, allocations: 0 / 0.5039 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.1046, allocations: 12 kB / 0.504 GB, free: 6.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1046, allocations: 4 kB / 0.504 GB, free: 6.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003695/0.105, allocations: 177.6 kB / 0.5041 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.1061, allocations: 0.8633 MB / 0.505 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.1064, allocations: 187.4 kB / 0.5052 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.1066, allocations: 108.8 kB / 0.5053 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.1066, allocations: 4 kB / 0.5053 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.1067, allocations: 38.56 kB / 0.5053 GB, free: 5.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.252e-06/0.1067, allocations: 0 / 0.5053 GB, free: 5.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0014/0.1081, allocations: 0.7318 MB / 0.506 GB, free: 4.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.1081, allocations: 55.41 kB / 0.5061 GB, free: 4.438 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003481/0.1085, allocations: 308.5 kB / 0.5064 GB, free: 4.121 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.1085, allocations: 29.7 kB / 0.5064 GB, free: 4.086 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.1086, allocations: 184.5 kB / 0.5066 GB, free: 3.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.1087, allocations: 94.64 kB / 0.5067 GB, free: 3.809 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.1088, allocations: 57.61 kB / 0.5067 GB, free: 3.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.109, allocations: 342.8 kB / 0.507 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1092, allocations: 79.95 kB / 0.5071 GB, free: 3.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.1093, allocations: 102.8 kB / 0.5072 GB, free: 3.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.1097, allocations: 196.1 kB / 0.5074 GB, free: 3.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.1097, allocations: 4 kB / 0.5074 GB, free: 3.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006109/0.1103, allocations: 314.9 kB / 0.5077 GB, free: 2.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.1104, allocations: 7.906 kB / 0.5077 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.1104, allocations: 0 / 0.5077 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003436/0.1107, allocations: 60.88 kB / 0.5078 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003595/0.1111, allocations: 75.89 kB / 0.5078 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.1136, allocations: 3.028 MB / 0.5108 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.1138, allocations: 16.02 kB / 0.5108 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.1139, allocations: 15.94 kB / 0.5108 GB, free: 15.21 MB / 414.1 MB 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.114, allocations: 141.8 kB / 0.511 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.927e-05/0.1141, allocations: 35.53 kB / 0.511 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004813/0.1146, allocations: 261.3 kB / 0.5112 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.1146, allocations: 0 / 0.5112 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.1146, allocations: 8 kB / 0.5113 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1146, allocations: 0 / 0.5113 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009706/0.1156, allocations: 0.6588 MB / 0.5119 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1156, allocations: 7.938 kB / 0.5119 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003175/0.1159, allocations: 63.97 kB / 0.512 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1159, allocations: 0 / 0.512 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.116, allocations: 15.92 kB / 0.512 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.116, allocations: 7.938 kB / 0.512 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.116, allocations: 0 / 0.512 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006781/0.1167, allocations: 444.5 kB / 0.5124 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.1168, allocations: 116.8 kB / 0.5125 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.1168, allocations: 11.94 kB / 0.5125 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.117, allocations: 19.92 kB / 0.5126 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.1171, allocations: 15.97 kB / 0.5126 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1171, allocations: 12 kB / 0.5126 GB, free: 13.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.1173, allocations: 215.1 kB / 0.5128 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1173, allocations: 0 / 0.5128 GB, free: 13.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000324/0.1177, allocations: 72 kB / 0.5129 GB, free: 13.02 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.737e-05/0.1178, allocations: 99.19 kB / 0.513 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000829/0.1186, allocations: 362.5 kB / 0.5133 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1186, allocations: 0 / 0.5133 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.1188, allocations: 112 kB / 0.5134 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.1193, allocations: 61.17 kB / 0.5135 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.1208, allocations: 0.9075 MB / 0.5143 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1211, allocations: 0.7915 MB / 0.5151 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.1212, allocations: 38.95 kB / 0.5152 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.1213, allocations: 23.44 kB / 0.5152 GB, free: 10.56 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1213, allocations: 0 / 0.5152 GB, free: 10.56 MB / 414.1 MB Notification: Performance of Templates: time 0.006843/0.1281, allocations: 3.509 MB / 0.5186 GB, free: 7.043 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)