Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 113.9 kB / 17.07 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.001673/0.001674, allocations: 198.8 kB / 18 MB, free: 5.059 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.358/1.358, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2709/0.2709, 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.001443/0.001443, allocations: 59.91 kB / 450.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.108, allocations: 59.16 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003482/0.1115, allocations: 2.277 MB / 0.5 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.1127, allocations: 0.6514 MB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.1129, allocations: 7.938 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.113, allocations: 31.66 kB / 0.5006 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.1133, allocations: 87.27 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.1135, allocations: 67.84 kB / 0.5008 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000339/0.1139, allocations: 270.8 kB / 0.501 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1141, allocations: 60.7 kB / 0.5011 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.1143, allocations: 119.5 kB / 0.5012 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001792/0.1145, allocations: 111.5 kB / 0.5013 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.058e-05/0.1145, allocations: 20 kB / 0.5013 GB, free: 9.547 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.079e-05/0.1146, allocations: 19.94 kB / 0.5014 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.1147, allocations: 47.83 kB / 0.5014 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.1148, allocations: 115.3 kB / 0.5015 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.1151, allocations: 235 kB / 0.5017 GB, free: 9.137 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1151, allocations: 0 / 0.5017 GB, free: 9.137 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1151, allocations: 0 / 0.5017 GB, free: 9.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1152, allocations: 0 / 0.5017 GB, free: 9.137 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001026/0.1162, allocations: 0.549 MB / 0.5023 GB, free: 8.539 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.1162, allocations: 11.89 kB / 0.5023 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.1164, allocations: 36.55 kB / 0.5023 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.1168, allocations: 266.8 kB / 0.5026 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1168, allocations: 16.38 kB / 0.5026 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.1168, allocations: 12.38 kB / 0.5026 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.1172, allocations: 183.3 kB / 0.5028 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.1172, allocations: 0 / 0.5028 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.1172, allocations: 4 kB / 0.5028 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.1173, allocations: 7.938 kB / 0.5028 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.1175, allocations: 115.9 kB / 0.5029 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000968/0.1185, allocations: 0.6502 MB / 0.5035 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/0.1188, allocations: 142.3 kB / 0.5037 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.1189, allocations: 80.83 kB / 0.5037 GB, free: 6.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.119, allocations: 0 / 0.5037 GB, free: 6.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.119, allocations: 34.56 kB / 0.5038 GB, free: 6.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.119, allocations: 0 / 0.5038 GB, free: 6.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001119/0.1201, allocations: 0.5484 MB / 0.5043 GB, free: 6.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.1202, allocations: 55.34 kB / 0.5044 GB, free: 6.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.1204, allocations: 233 kB / 0.5046 GB, free: 5.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.1205, allocations: 25.7 kB / 0.5046 GB, free: 5.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.892e-05/0.1206, allocations: 152.3 kB / 0.5048 GB, free: 5.777 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.1206, allocations: 63.02 kB / 0.5048 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.1207, allocations: 41.7 kB / 0.5049 GB, free: 5.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1208, allocations: 342.8 kB / 0.5052 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.121, allocations: 47.97 kB / 0.5052 GB, free: 5.277 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.1211, allocations: 73.67 kB / 0.5053 GB, free: 5.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.1214, allocations: 130 kB / 0.5054 GB, free: 5.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1214, allocations: 4 kB / 0.5054 GB, free: 5.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003469/0.1217, allocations: 193.2 kB / 0.5056 GB, free: 4.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.1218, allocations: 11.98 kB / 0.5056 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1218, allocations: 0 / 0.5056 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.1218, allocations: 0 / 0.5056 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.1222, allocations: 71.89 kB / 0.5057 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.1233, allocations: 1.441 MB / 0.5071 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.1235, allocations: 12.22 kB / 0.5071 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1235, allocations: 4 kB / 0.5071 GB, free: 3.184 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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.0001172/0.1236, allocations: 138.4 kB / 0.5072 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.81e-05/0.1237, allocations: 23.72 kB / 0.5073 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.124, allocations: 187.7 kB / 0.5074 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.1241, allocations: 0 / 0.5074 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.1241, allocations: 11.88 kB / 0.5075 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1241, allocations: 0 / 0.5075 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007164/0.1248, allocations: 0.5295 MB / 0.508 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1248, allocations: 0 / 0.508 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.125, allocations: 47.91 kB / 0.508 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1251, allocations: 0 / 0.508 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.1251, allocations: 4 kB / 0.508 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1251, allocations: 4 kB / 0.508 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1251, allocations: 4 kB / 0.508 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004684/0.1256, allocations: 343.2 kB / 0.5084 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.949e-05/0.1257, allocations: 108.8 kB / 0.5085 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.1257, allocations: 8 kB / 0.5085 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.1259, allocations: 4 kB / 0.5085 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.1259, allocations: 11.98 kB / 0.5085 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.1259, allocations: 12 kB / 0.5085 GB, free: 1.656 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.1261, allocations: 176.5 kB / 0.5087 GB, free: 1.484 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.1261, allocations: 0 / 0.5087 GB, free: 1.484 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1264, allocations: 47.94 kB / 0.5087 GB, free: 1.438 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.711e-05/0.1265, allocations: 99.23 kB / 0.5088 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005027/0.127, allocations: 161.2 kB / 0.509 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.127, allocations: 0 / 0.509 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.1272, allocations: 71.91 kB / 0.509 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.1276, allocations: 40.34 kB / 0.5091 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.1288, allocations: 0.6558 MB / 0.5097 GB, free: 392 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.1291, allocations: 0.756 MB / 0.5104 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.1292, allocations: 25.47 kB / 0.5105 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.098e-05/0.1293, allocations: 27.42 kB / 0.5105 GB, free: 15.55 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1293, allocations: 4 kB / 0.5105 GB, free: 15.55 MB / 414.1 MB Notification: Performance of Templates: time 0.005662/0.135, allocations: 2.357 MB / 0.5128 GB, free: 13.19 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)