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.001273/0.001273, allocations: 111.8 kB / 17.74 MB, free: 5.316 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.001325/0.001325, allocations: 189.6 kB / 18.67 MB, free: 4.395 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.237/1.237, allocations: 205.1 MB / 224.5 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.2508/0.2508, allocations: 48.84 MB / 320.7 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.001527/0.001527, allocations: 67.91 kB / 451.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09413/0.09567, allocations: 59.17 MB / 0.4984 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003363/0.09907, allocations: 2.272 MB / 0.5006 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.1003, allocations: 0.6592 MB / 0.5013 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.1005, allocations: 4 kB / 0.5013 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.1006, allocations: 27.66 kB / 0.5013 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002802/0.1009, allocations: 91.19 kB / 0.5014 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.1011, allocations: 47.94 kB / 0.5014 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003554/0.1015, allocations: 282.8 kB / 0.5017 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.1017, allocations: 68.69 kB / 0.5018 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.1019, allocations: 111.5 kB / 0.5019 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.1021, allocations: 115.4 kB / 0.502 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.1021, allocations: 20 kB / 0.502 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.411e-05/0.1022, allocations: 20 kB / 0.502 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.079e-05/0.1022, allocations: 39.84 kB / 0.502 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.1024, allocations: 131.2 kB / 0.5022 GB, free: 9.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.1026, allocations: 223.1 kB / 0.5024 GB, free: 9.133 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1027, allocations: 0 / 0.5024 GB, free: 9.133 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1027, allocations: 0 / 0.5024 GB, free: 9.133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1027, allocations: 0 / 0.5024 GB, free: 9.133 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.0009968/0.1037, allocations: 0.549 MB / 0.5029 GB, free: 8.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1037, allocations: 15.89 kB / 0.5029 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.1039, allocations: 28.56 kB / 0.503 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/0.1044, allocations: 258.8 kB / 0.5032 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.1044, allocations: 16.38 kB / 0.5032 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.1045, allocations: 16.38 kB / 0.5032 GB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.1048, allocations: 187.2 kB / 0.5034 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.1049, allocations: 0 / 0.5034 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.628e-05/0.1049, allocations: 8 kB / 0.5034 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.1049, allocations: 7.938 kB / 0.5034 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.1052, allocations: 115.9 kB / 0.5035 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009912/0.1062, allocations: 0.6501 MB / 0.5042 GB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.1065, allocations: 138.3 kB / 0.5043 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.1067, allocations: 84.8 kB / 0.5044 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1067, allocations: 8 kB / 0.5044 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.829e-05/0.1067, allocations: 34.56 kB / 0.5044 GB, free: 6.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.223e-06/0.1067, allocations: 0 / 0.5044 GB, free: 6.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001021/0.1077, allocations: 0.5444 MB / 0.505 GB, free: 6.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.1078, allocations: 59.41 kB / 0.505 GB, free: 6.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.108, allocations: 229 kB / 0.5052 GB, free: 5.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.108, allocations: 29.7 kB / 0.5053 GB, free: 5.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.484e-05/0.1081, allocations: 148.2 kB / 0.5054 GB, free: 5.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.1082, allocations: 67.02 kB / 0.5055 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.1083, allocations: 41.7 kB / 0.5055 GB, free: 5.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1084, allocations: 334.8 kB / 0.5058 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.1085, allocations: 55.97 kB / 0.5059 GB, free: 5.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.1087, allocations: 73.69 kB / 0.506 GB, free: 5.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.1089, allocations: 129.9 kB / 0.5061 GB, free: 5.055 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.109, allocations: 0 / 0.5061 GB, free: 5.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003627/0.1093, allocations: 197.2 kB / 0.5063 GB, free: 4.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1093, allocations: 4 kB / 0.5063 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1094, allocations: 0 / 0.5063 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1094, allocations: 7.938 kB / 0.5063 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/0.1098, allocations: 67.95 kB / 0.5063 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.1109, allocations: 1.429 MB / 0.5077 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.111, allocations: 12.02 kB / 0.5077 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.1111, allocations: 16.09 kB / 0.5078 GB, free: 3.176 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.0001184/0.1112, allocations: 126.7 kB / 0.5079 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.1113, allocations: 19.72 kB / 0.5079 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003308/0.1116, allocations: 195.6 kB / 0.5081 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1116, allocations: 4 kB / 0.5081 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.1116, allocations: 7.875 kB / 0.5081 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.1116, allocations: 3.984 kB / 0.5081 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006851/0.1123, allocations: 0.5218 MB / 0.5086 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1123, allocations: 4 kB / 0.5086 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.1126, allocations: 43.92 kB / 0.5087 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.1126, allocations: 0 / 0.5087 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.1126, allocations: 7.984 kB / 0.5087 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1126, allocations: 0 / 0.5087 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1126, allocations: 0 / 0.5087 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004781/0.1131, allocations: 359.2 kB / 0.509 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.653e-05/0.1132, allocations: 108.9 kB / 0.5091 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.1132, allocations: 4 kB / 0.5091 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.1134, allocations: 7.984 kB / 0.5091 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.1134, allocations: 15.98 kB / 0.5091 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1135, allocations: 4 kB / 0.5091 GB, free: 1.652 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.1136, allocations: 168.5 kB / 0.5093 GB, free: 1.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1136, allocations: 0 / 0.5093 GB, free: 1.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000289/0.1139, allocations: 48 kB / 0.5094 GB, free: 1.441 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 0.0001059/0.114, allocations: 91.25 kB / 0.5094 GB, free: 1.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004775/0.1145, allocations: 155.8 kB / 0.5096 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1145, allocations: 0 / 0.5096 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.1147, allocations: 71.97 kB / 0.5097 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.1151, allocations: 41.61 kB / 0.5097 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.1163, allocations: 0.6887 MB / 0.5104 GB, free: 368 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.1166, allocations: 0.7442 MB / 0.5111 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.152e-05/0.1167, allocations: 23.38 kB / 0.5111 GB, free: 15.57 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1167, allocations: 7.938 kB / 0.5111 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Templates: time 0.005115/0.1218, allocations: 2.979 MB / 0.514 GB, free: 12.57 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)