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.001124/0.001124, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.001146/0.001147, allocations: 200.1 kB / 18 MB, free: 5.168 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.3/1.3, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2659/0.2659, 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.001315/0.001315, allocations: 75.88 kB / 450.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.09563, allocations: 59.15 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003921/0.09958, allocations: 3.138 MB / 0.5008 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.1009, allocations: 0.8304 MB / 0.5016 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1011, allocations: 4 kB / 0.5016 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.1013, allocations: 63.31 kB / 0.5017 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.1017, allocations: 150.7 kB / 0.5018 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.1019, allocations: 119.8 kB / 0.5019 GB, free: 8.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.1024, allocations: 0.514 MB / 0.5024 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.1027, allocations: 153.4 kB / 0.5026 GB, free: 8.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.1029, allocations: 203.1 kB / 0.5028 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.1032, allocations: 226.8 kB / 0.503 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.544e-05/0.1033, allocations: 36 kB / 0.503 GB, free: 7.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.982e-05/0.1034, allocations: 40 kB / 0.5031 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-05/0.1035, allocations: 87.62 kB / 0.5031 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.1037, allocations: 242.6 kB / 0.5034 GB, free: 7.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.1041, allocations: 433.9 kB / 0.5038 GB, free: 7.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1042, allocations: 4 kB / 0.5038 GB, free: 7.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1042, allocations: 0 / 0.5038 GB, free: 7.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.964e-06/0.1042, allocations: 3.938 kB / 0.5038 GB, free: 7.008 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.001284/0.1055, allocations: 0.8058 MB / 0.5046 GB, free: 6.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.1055, allocations: 11.89 kB / 0.5046 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.1056, allocations: 56.61 kB / 0.5047 GB, free: 6.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.1061, allocations: 378.3 kB / 0.505 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.1062, allocations: 32.97 kB / 0.505 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.017e-05/0.1062, allocations: 36.33 kB / 0.5051 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.1068, allocations: 318.2 kB / 0.5054 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.1068, allocations: 7.984 kB / 0.5054 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.1068, allocations: 8 kB / 0.5054 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.1068, allocations: 12 kB / 0.5054 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.1072, allocations: 210.5 kB / 0.5056 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.109, allocations: 1.176 MB / 0.5068 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.1094, allocations: 256.3 kB / 0.507 GB, free: 3.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002168/0.1097, allocations: 129.4 kB / 0.5071 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1097, allocations: 8.281 kB / 0.5071 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.1097, allocations: 34.84 kB / 0.5072 GB, free: 3.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/0.1098, allocations: 4 kB / 0.5072 GB, free: 3.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002039/0.1118, allocations: 1.077 MB / 0.5082 GB, free: 2.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.1118, allocations: 55.41 kB / 0.5083 GB, free: 2.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/0.1122, allocations: 377.7 kB / 0.5086 GB, free: 1.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.1123, allocations: 37.7 kB / 0.5087 GB, free: 1.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.1124, allocations: 225.2 kB / 0.5089 GB, free: 1.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.188e-05/0.1125, allocations: 134.9 kB / 0.509 GB, free: 1.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1126, allocations: 70.12 kB / 0.5091 GB, free: 1.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1128, allocations: 354.7 kB / 0.5094 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.113, allocations: 92.77 kB / 0.5095 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.1132, allocations: 152.6 kB / 0.5097 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004031/0.1136, allocations: 252 kB / 0.5099 GB, free: 420 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1136, allocations: 0 / 0.5099 GB, free: 420 kB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005262/0.1141, allocations: 353.1 kB / 0.5102 GB, free: 60 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1142, allocations: 7.906 kB / 0.5102 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.1142, allocations: 4 kB / 0.5102 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1142, allocations: 4 kB / 0.5102 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007273/0.1149, allocations: 147.8 kB / 0.5104 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.116, allocations: 1.441 MB / 0.5118 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.1162, allocations: 8 kB / 0.5118 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.1163, allocations: 12 kB / 0.5118 GB, free: 14.3 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.0001572/0.1164, allocations: 161.6 kB / 0.512 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.985e-05/0.1165, allocations: 51.59 kB / 0.512 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005297/0.1171, allocations: 314 kB / 0.5123 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1171, allocations: 8.062 kB / 0.5123 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.1171, allocations: 0 / 0.5123 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.1171, allocations: 7.984 kB / 0.5123 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.1182, allocations: 0.7796 MB / 0.5131 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.1182, allocations: 0 / 0.5131 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.1186, allocations: 83.89 kB / 0.5132 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1186, allocations: 4 kB / 0.5132 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.1186, allocations: 4 kB / 0.5132 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1186, allocations: 4 kB / 0.5132 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1187, allocations: 4 kB / 0.5132 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007001/0.1194, allocations: 0.5168 MB / 0.5137 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.1195, allocations: 144.8 kB / 0.5138 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.1196, allocations: 4 kB / 0.5138 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.1198, allocations: 15.95 kB / 0.5138 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.1199, allocations: 23.97 kB / 0.5139 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.1199, allocations: 8 kB / 0.5139 GB, free: 12.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.1202, allocations: 271.2 kB / 0.5141 GB, free: 11.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1202, allocations: 0 / 0.5141 GB, free: 11.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003503/0.1205, allocations: 84 kB / 0.5142 GB, free: 11.72 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.0001001/0.1206, allocations: 115.2 kB / 0.5143 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00064/0.1213, allocations: 292.3 kB / 0.5146 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1213, allocations: 8 kB / 0.5146 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.1215, allocations: 127.8 kB / 0.5147 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.122, allocations: 81.56 kB / 0.5148 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.1239, allocations: 1.124 MB / 0.5159 GB, free: 9.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.1242, allocations: 0.8274 MB / 0.5167 GB, free: 9.094 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001623/0.1244, allocations: 51.23 kB / 0.5168 GB, free: 9.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.1245, allocations: 31.44 kB / 0.5168 GB, free: 9.016 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1245, allocations: 0 / 0.5168 GB, free: 9.016 MB / 414.1 MB Notification: Performance of Templates: time 0.008459/0.133, allocations: 4.337 MB / 0.521 GB, free: 4.676 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)