Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 109.8 kB / 17.06 MB, free: 6.02 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.001062/0.001062, allocations: 191 kB / 18 MB, free: 5.105 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.26/1.26, 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.2668/0.2668, 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.001397/0.001397, allocations: 72.45 kB / 450.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09451, allocations: 59.15 MB / 0.4977 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003982/0.09852, allocations: 3.134 MB / 0.5008 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.1, allocations: 0.8382 MB / 0.5016 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.1003, allocations: 8 kB / 0.5016 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1005, allocations: 63.25 kB / 0.5017 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004286/0.101, allocations: 154.8 kB / 0.5018 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.1013, allocations: 115.8 kB / 0.5019 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005688/0.1019, allocations: 0.5257 MB / 0.5024 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.1021, allocations: 141.4 kB / 0.5026 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.1024, allocations: 211.1 kB / 0.5028 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.1027, allocations: 226.8 kB / 0.503 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.173e-05/0.1028, allocations: 36 kB / 0.503 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.02e-05/0.1029, allocations: 48 kB / 0.5031 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.084e-05/0.103, allocations: 91.61 kB / 0.5032 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001879/0.1032, allocations: 234.6 kB / 0.5034 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.1036, allocations: 438.2 kB / 0.5038 GB, free: 7.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1036, allocations: 0 / 0.5038 GB, free: 7.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1036, allocations: 0 / 0.5038 GB, free: 7.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.1036, allocations: 0 / 0.5038 GB, free: 7.016 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001301/0.1049, allocations: 0.7788 MB / 0.5046 GB, free: 6.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.105, allocations: 15.88 kB / 0.5046 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.1051, allocations: 64.28 kB / 0.5046 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.1056, allocations: 370 kB / 0.505 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.1056, allocations: 28.97 kB / 0.505 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.06e-05/0.1057, allocations: 36.38 kB / 0.5051 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.1062, allocations: 318.2 kB / 0.5054 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.1062, allocations: 4 kB / 0.5054 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.1063, allocations: 15.98 kB / 0.5054 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1063, allocations: 8 kB / 0.5054 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003964/0.1067, allocations: 218.4 kB / 0.5056 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1084, allocations: 1.164 MB / 0.5067 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.1089, allocations: 260.5 kB / 0.507 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.1091, allocations: 129.4 kB / 0.5071 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.1091, allocations: 288 / 0.5071 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.1091, allocations: 42.83 kB / 0.5071 GB, free: 3.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.272e-06/0.1092, allocations: 0 / 0.5071 GB, free: 3.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002016/0.1112, allocations: 1.076 MB / 0.5082 GB, free: 2.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.1112, allocations: 59.41 kB / 0.5083 GB, free: 2.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.1116, allocations: 381.5 kB / 0.5086 GB, free: 1.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1117, allocations: 33.7 kB / 0.5087 GB, free: 1.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.1118, allocations: 224.5 kB / 0.5089 GB, free: 1.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.751e-05/0.1119, allocations: 118.2 kB / 0.509 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.709e-05/0.112, allocations: 78.03 kB / 0.5091 GB, free: 1.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1121, allocations: 350.7 kB / 0.5094 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.1123, allocations: 96.83 kB / 0.5095 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.1125, allocations: 148.6 kB / 0.5096 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003819/0.1129, allocations: 256 kB / 0.5099 GB, free: 464 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1129, allocations: 0 / 0.5099 GB, free: 464 kB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005144/0.1134, allocations: 341 kB / 0.5102 GB, free: 116 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1135, allocations: 7.906 kB / 0.5102 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1135, allocations: 4 kB / 0.5102 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1135, allocations: 0 / 0.5102 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/0.1142, allocations: 152 kB / 0.5103 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.1153, allocations: 1.441 MB / 0.5118 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.1155, allocations: 12.03 kB / 0.5118 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.1155, allocations: 19.94 kB / 0.5118 GB, free: 14.34 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001445/0.1157, allocations: 149.8 kB / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.296e-05/0.1158, allocations: 47.41 kB / 0.512 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004974/0.1163, allocations: 318.1 kB / 0.5123 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.1163, allocations: 7.984 kB / 0.5123 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.1163, allocations: 0 / 0.5123 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1163, allocations: 3.984 kB / 0.5123 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.1173, allocations: 0.7952 MB / 0.5131 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1173, allocations: 0 / 0.5131 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.1178, allocations: 83.89 kB / 0.5131 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1178, allocations: 0 / 0.5131 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.1178, allocations: 12 kB / 0.5132 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1178, allocations: 0 / 0.5132 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1178, allocations: 0 / 0.5132 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006654/0.1185, allocations: 0.5126 MB / 0.5137 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.1186, allocations: 136.5 kB / 0.5138 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.111e-05/0.1187, allocations: 15.98 kB / 0.5138 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.1189, allocations: 16 kB / 0.5138 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.119, allocations: 19.97 kB / 0.5138 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.119, allocations: 8 kB / 0.5138 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002553/0.1193, allocations: 263.2 kB / 0.5141 GB, free: 11.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1193, allocations: 0 / 0.5141 GB, free: 11.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003474/0.1196, allocations: 88 kB / 0.5142 GB, free: 11.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.0001037/0.1197, allocations: 107.2 kB / 0.5143 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006341/0.1204, allocations: 292.1 kB / 0.5146 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1204, allocations: 0 / 0.5146 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.1206, allocations: 131.8 kB / 0.5147 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.1211, allocations: 85.64 kB / 0.5148 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.1229, allocations: 1.11 MB / 0.5159 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.1233, allocations: 0.8274 MB / 0.5167 GB, free: 9.172 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.1234, allocations: 47.25 kB / 0.5167 GB, free: 9.129 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.1236, allocations: 39.42 kB / 0.5167 GB, free: 9.09 MB / 414.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1236, allocations: 0 / 0.5167 GB, free: 9.09 MB / 414.1 MB Notification: Performance of Templates: time 0.008115/0.1317, allocations: 4.337 MB / 0.521 GB, free: 4.75 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)