Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001557/0.001557, allocations: 200 kB / 18.01 MB, free: 5.055 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.292/1.292, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2598/0.2598, allocations: 48.83 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: 76.45 kB / 450.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09191, allocations: 59.15 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003891/0.09584, allocations: 2.966 MB / 0.5006 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.09733, allocations: 0.8073 MB / 0.5014 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.0976, allocations: 7.938 kB / 0.5014 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.09782, allocations: 55.38 kB / 0.5015 GB, free: 9.398 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.09824, allocations: 146.8 kB / 0.5016 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.09852, allocations: 115.8 kB / 0.5017 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000523/0.09905, allocations: 486.4 kB / 0.5022 GB, free: 8.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.0993, allocations: 148 kB / 0.5023 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.09956, allocations: 191.2 kB / 0.5025 GB, free: 8.328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.09985, allocations: 202.9 kB / 0.5027 GB, free: 8.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.407e-05/0.09993, allocations: 40 kB / 0.5027 GB, free: 8.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.843e-05/0.1, allocations: 36 kB / 0.5028 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.1001, allocations: 91.61 kB / 0.5029 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.1003, allocations: 218.7 kB / 0.5031 GB, free: 7.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.1007, allocations: 402.4 kB / 0.5035 GB, free: 7.355 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1007, allocations: 3.938 kB / 0.5035 GB, free: 7.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1007, allocations: 0 / 0.5035 GB, free: 7.352 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.1007, allocations: 0 / 0.5035 GB, free: 7.352 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001231/0.102, allocations: 0.7555 MB / 0.5042 GB, free: 6.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.102, allocations: 11.97 kB / 0.5042 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.1021, allocations: 52.38 kB / 0.5043 GB, free: 6.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.1026, allocations: 358.1 kB / 0.5046 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.1026, allocations: 25.03 kB / 0.5046 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.1027, allocations: 36.28 kB / 0.5047 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004854/0.1032, allocations: 297.7 kB / 0.5049 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1032, allocations: 8 kB / 0.505 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.1032, allocations: 8 kB / 0.505 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.1032, allocations: 8 kB / 0.505 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003857/0.1036, allocations: 202.1 kB / 0.5052 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.1052, allocations: 1.112 MB / 0.5062 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.1056, allocations: 235 kB / 0.5065 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.1058, allocations: 124.8 kB / 0.5066 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.1059, allocations: 4 kB / 0.5066 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.1059, allocations: 31.09 kB / 0.5066 GB, free: 3.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.694e-06/0.1059, allocations: 0 / 0.5066 GB, free: 3.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001676/0.1076, allocations: 0.9328 MB / 0.5075 GB, free: 2.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.1076, allocations: 59.41 kB / 0.5076 GB, free: 2.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.108, allocations: 353.7 kB / 0.5079 GB, free: 2.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.108, allocations: 29.7 kB / 0.508 GB, free: 2.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1082, allocations: 212.3 kB / 0.5082 GB, free: 2.238 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.329e-05/0.1082, allocations: 126.2 kB / 0.5083 GB, free: 2.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1084, allocations: 70.06 kB / 0.5083 GB, free: 2.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1085, allocations: 350.7 kB / 0.5087 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.1087, allocations: 88.7 kB / 0.5088 GB, free: 1.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.1089, allocations: 129.8 kB / 0.5089 GB, free: 1.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.1093, allocations: 247.7 kB / 0.5091 GB, free: 1.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1093, allocations: 0 / 0.5091 GB, free: 1.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009569/0.1103, allocations: 417.2 kB / 0.5095 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.1103, allocations: 11.91 kB / 0.5095 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1103, allocations: 0 / 0.5095 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000603/0.1109, allocations: 120.9 kB / 0.5097 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.1114, allocations: 91.88 kB / 0.5097 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/0.1145, allocations: 3.348 MB / 0.513 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.1148, allocations: 19.88 kB / 0.513 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.1148, allocations: 8 kB / 0.513 GB, free: 12.89 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001659/0.115, allocations: 154.5 kB / 0.5132 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.537e-05/0.1151, allocations: 43.52 kB / 0.5132 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005021/0.1156, allocations: 301.9 kB / 0.5135 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1156, allocations: 4 kB / 0.5135 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1156, allocations: 3.938 kB / 0.5135 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1156, allocations: 0 / 0.5135 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1166, allocations: 0.7489 MB / 0.5143 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.1167, allocations: 3.938 kB / 0.5143 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004045/0.1171, allocations: 79.89 kB / 0.5143 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.1171, allocations: 4 kB / 0.5143 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.1171, allocations: 4 kB / 0.5143 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1171, allocations: 4 kB / 0.5143 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1171, allocations: 3.984 kB / 0.5143 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006494/0.1178, allocations: 0.4918 MB / 0.5148 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.1179, allocations: 132.6 kB / 0.515 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.118, allocations: 8.281 kB / 0.515 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.1182, allocations: 15.98 kB / 0.515 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.1183, allocations: 15.98 kB / 0.515 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.1183, allocations: 15.92 kB / 0.515 GB, free: 10.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.1185, allocations: 255.1 kB / 0.5152 GB, free: 10.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1185, allocations: 4 kB / 0.5153 GB, free: 10.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003583/0.1189, allocations: 88 kB / 0.5153 GB, free: 10.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * 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 (34): * Single equations (assignments): 34 * 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.0001004/0.119, allocations: 103.2 kB / 0.5154 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009092/0.1199, allocations: 439.1 kB / 0.5159 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1199, allocations: 0 / 0.5159 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.1202, allocations: 131.7 kB / 0.516 GB, free: 9.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.1207, allocations: 69.45 kB / 0.516 GB, free: 9.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.1225, allocations: 1.066 MB / 0.5171 GB, free: 8.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.1229, allocations: 0.8198 MB / 0.5179 GB, free: 7.746 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.123, allocations: 42.92 kB / 0.5179 GB, free: 7.703 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.29e-05/0.1231, allocations: 31.44 kB / 0.518 GB, free: 7.672 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1231, allocations: 4 kB / 0.518 GB, free: 7.668 MB / 414.1 MB Notification: Performance of Templates: time 0.00872/0.1319, allocations: 4.611 MB / 0.5225 GB, free: 3.051 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)