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.001441/0.001441, allocations: 109.3 kB / 17.06 MB, free: 5.992 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: 200 kB / 18.01 MB, free: 5.066 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.291/1.291, 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.2606/0.2606, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.001393/0.001393, allocations: 71.88 kB / 450.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.1011, allocations: 59.15 MB / 0.4977 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003353/0.1045, allocations: 2.654 MB / 0.5003 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.1055, allocations: 0.7448 MB / 0.501 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1057, allocations: 4 kB / 0.501 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1058, allocations: 51.39 kB / 0.5011 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.1061, allocations: 123 kB / 0.5012 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001725/0.1063, allocations: 83.83 kB / 0.5013 GB, free: 9.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003472/0.1066, allocations: 390.2 kB / 0.5017 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1068, allocations: 93.55 kB / 0.5018 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.107, allocations: 155.4 kB / 0.5019 GB, free: 8.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.1072, allocations: 167.1 kB / 0.5021 GB, free: 8.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.208e-05/0.1072, allocations: 24 kB / 0.5021 GB, free: 8.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.199e-05/0.1073, allocations: 28 kB / 0.5021 GB, free: 8.746 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.685e-05/0.1074, allocations: 67.7 kB / 0.5022 GB, free: 8.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.1075, allocations: 175 kB / 0.5023 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003024/0.1078, allocations: 314.5 kB / 0.5026 GB, free: 8.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1078, allocations: 4 kB / 0.5026 GB, free: 8.195 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1078, allocations: 3.938 kB / 0.5027 GB, free: 8.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1078, allocations: 4 kB / 0.5027 GB, free: 8.188 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.000913/0.1088, allocations: 0.6696 MB / 0.5033 GB, free: 7.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.1088, allocations: 15.89 kB / 0.5033 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1089, allocations: 44.7 kB / 0.5034 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.1093, allocations: 320.2 kB / 0.5037 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1093, allocations: 20.81 kB / 0.5037 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.1093, allocations: 36.31 kB / 0.5037 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003936/0.1097, allocations: 243 kB / 0.504 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1098, allocations: 3.984 kB / 0.504 GB, free: 6.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.1098, allocations: 8 kB / 0.504 GB, free: 6.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1098, allocations: 4 kB / 0.504 GB, free: 6.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003583/0.1102, allocations: 177.6 kB / 0.5041 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1112, allocations: 0.8635 MB / 0.505 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.1115, allocations: 179.5 kB / 0.5052 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.1117, allocations: 112.8 kB / 0.5053 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.1117, allocations: 7.938 kB / 0.5053 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.1118, allocations: 34.55 kB / 0.5053 GB, free: 5.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.332e-06/0.1118, allocations: 0 / 0.5053 GB, free: 5.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001284/0.1131, allocations: 0.7441 MB / 0.506 GB, free: 4.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.1131, allocations: 59.34 kB / 0.5061 GB, free: 4.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.1134, allocations: 300.5 kB / 0.5064 GB, free: 4.117 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.1134, allocations: 29.7 kB / 0.5064 GB, free: 4.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1135, allocations: 180.8 kB / 0.5066 GB, free: 3.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.416e-05/0.1136, allocations: 107.1 kB / 0.5067 GB, free: 3.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.37e-05/0.1137, allocations: 53.7 kB / 0.5067 GB, free: 3.738 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1138, allocations: 346.8 kB / 0.5071 GB, free: 3.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.114, allocations: 71.95 kB / 0.5071 GB, free: 3.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.1142, allocations: 106.8 kB / 0.5072 GB, free: 3.207 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.1145, allocations: 200.1 kB / 0.5074 GB, free: 3.004 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1145, allocations: 0 / 0.5074 GB, free: 3.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000591/0.1151, allocations: 315.2 kB / 0.5077 GB, free: 2.688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.1152, allocations: 11.91 kB / 0.5077 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1152, allocations: 3.984 kB / 0.5077 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/0.1154, allocations: 56.77 kB / 0.5078 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.1158, allocations: 75.94 kB / 0.5079 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/0.118, allocations: 3.04 MB / 0.5108 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.1182, allocations: 12.03 kB / 0.5108 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.1182, allocations: 15.92 kB / 0.5109 GB, free: 15.19 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.000129/0.1183, allocations: 141.8 kB / 0.511 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.1184, allocations: 27.81 kB / 0.511 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004463/0.1189, allocations: 261.3 kB / 0.5113 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1189, allocations: 4 kB / 0.5113 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.1189, allocations: 0 / 0.5113 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1189, allocations: 3.984 kB / 0.5113 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008597/0.1198, allocations: 0.6665 MB / 0.5119 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1198, allocations: 0 / 0.5119 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.1201, allocations: 67.97 kB / 0.512 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1201, allocations: 3.938 kB / 0.512 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.1201, allocations: 11.88 kB / 0.512 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1201, allocations: 0 / 0.512 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1201, allocations: 0 / 0.512 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.1208, allocations: 456.7 kB / 0.5124 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.1209, allocations: 121 kB / 0.5126 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.1209, allocations: 7.938 kB / 0.5126 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.1211, allocations: 19.92 kB / 0.5126 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.1212, allocations: 15.97 kB / 0.5126 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.1212, allocations: 8 kB / 0.5126 GB, free: 13.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001952/0.1214, allocations: 211.1 kB / 0.5128 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1214, allocations: 0 / 0.5128 GB, free: 13.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003168/0.1217, allocations: 76 kB / 0.5129 GB, free: 13.01 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 8.559e-05/0.1218, allocations: 103.2 kB / 0.513 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007685/0.1226, allocations: 370.5 kB / 0.5133 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1226, allocations: 0 / 0.5133 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.1228, allocations: 107.8 kB / 0.5134 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.1232, allocations: 57.19 kB / 0.5135 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.1246, allocations: 0.9144 MB / 0.5144 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.1249, allocations: 0.7915 MB / 0.5152 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.1251, allocations: 38.95 kB / 0.5152 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.383e-05/0.1251, allocations: 23.44 kB / 0.5152 GB, free: 10.53 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1251, allocations: 0 / 0.5152 GB, free: 10.53 MB / 414.1 MB Notification: Performance of Templates: time 0.006858/0.132, allocations: 3.513 MB / 0.5186 GB, free: 7.012 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)