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.001148/0.001148, allocations: 112.3 kB / 17.74 MB, free: 5.336 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.001141/0.001141, allocations: 187 kB / 18.67 MB, free: 4.41 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.157/1.157, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.232/0.232, allocations: 48.85 MB / 320.7 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.001313/0.001313, allocations: 67.91 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.0878, allocations: 59.15 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003523/0.09134, allocations: 2.957 MB / 0.5013 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.09275, allocations: 0.815 MB / 0.5021 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.09296, allocations: 11.94 kB / 0.5021 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.09314, allocations: 55.39 kB / 0.5021 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003409/0.0935, allocations: 138.8 kB / 0.5023 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.09376, allocations: 111.8 kB / 0.5024 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004891/0.09425, allocations: 490.3 kB / 0.5028 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.09449, allocations: 148 kB / 0.503 GB, free: 8.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.09472, allocations: 191.2 kB / 0.5032 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.09498, allocations: 206.9 kB / 0.5034 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.99e-05/0.09505, allocations: 32 kB / 0.5034 GB, free: 8.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.025e-05/0.09515, allocations: 44 kB / 0.5034 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.588e-05/0.09522, allocations: 83.62 kB / 0.5035 GB, free: 8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.09539, allocations: 214.7 kB / 0.5037 GB, free: 7.789 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.09576, allocations: 406.4 kB / 0.5041 GB, free: 7.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.09577, allocations: 3.984 kB / 0.5041 GB, free: 7.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.09578, allocations: 4 kB / 0.5041 GB, free: 7.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.09579, allocations: 0 / 0.5041 GB, free: 7.383 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.001121/0.09692, allocations: 0.7554 MB / 0.5048 GB, free: 6.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.09696, allocations: 12.03 kB / 0.5049 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.09708, allocations: 48.38 kB / 0.5049 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.09751, allocations: 362.1 kB / 0.5053 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.09754, allocations: 21.03 kB / 0.5053 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.768e-05/0.0976, allocations: 40.28 kB / 0.5053 GB, free: 6.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.09805, allocations: 293.7 kB / 0.5056 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.09807, allocations: 0 / 0.5056 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.0981, allocations: 16 kB / 0.5056 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.09811, allocations: 4 kB / 0.5056 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003568/0.09847, allocations: 214 kB / 0.5058 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.09992, allocations: 1.108 MB / 0.5069 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003492/0.1003, allocations: 239 kB / 0.5071 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.1005, allocations: 120.8 kB / 0.5072 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.1005, allocations: 0 / 0.5072 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.1005, allocations: 43.09 kB / 0.5073 GB, free: 3.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.142e-06/0.1005, allocations: 0 / 0.5073 GB, free: 3.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001545/0.1021, allocations: 0.9289 MB / 0.5082 GB, free: 2.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.1021, allocations: 55.41 kB / 0.5082 GB, free: 2.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.1025, allocations: 357.7 kB / 0.5086 GB, free: 2.512 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.1025, allocations: 33.7 kB / 0.5086 GB, free: 2.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1026, allocations: 208.4 kB / 0.5088 GB, free: 2.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.049e-05/0.1027, allocations: 114.2 kB / 0.5089 GB, free: 2.152 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.606e-05/0.1028, allocations: 70.06 kB / 0.509 GB, free: 2.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1029, allocations: 358.6 kB / 0.5093 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1031, allocations: 88.7 kB / 0.5094 GB, free: 1.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.1033, allocations: 137.7 kB / 0.5095 GB, free: 1.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/0.1036, allocations: 239.8 kB / 0.5098 GB, free: 1.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1036, allocations: 0 / 0.5098 GB, free: 1.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008197/0.1044, allocations: 425.2 kB / 0.5102 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.1045, allocations: 4 kB / 0.5102 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1045, allocations: 4 kB / 0.5102 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005196/0.105, allocations: 120.9 kB / 0.5103 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.1054, allocations: 87.89 kB / 0.5104 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00285/0.1082, allocations: 3.344 MB / 0.5137 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.1085, allocations: 15.88 kB / 0.5137 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1085, allocations: 19.92 kB / 0.5137 GB, free: 12.92 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.0001298/0.1086, allocations: 150.7 kB / 0.5138 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.1087, allocations: 39.53 kB / 0.5139 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00044/0.1091, allocations: 306 kB / 0.5142 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1092, allocations: 4 kB / 0.5142 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.1092, allocations: 3.938 kB / 0.5142 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1092, allocations: 0 / 0.5142 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008694/0.11, allocations: 0.745 MB / 0.5149 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1101, allocations: 3.938 kB / 0.5149 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/0.1104, allocations: 83.91 kB / 0.515 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1104, allocations: 0 / 0.515 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.1105, allocations: 12 kB / 0.515 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1105, allocations: 3.984 kB / 0.515 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1105, allocations: 3.938 kB / 0.515 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005919/0.1111, allocations: 495.7 kB / 0.5155 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1112, allocations: 132.6 kB / 0.5156 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/0.1113, allocations: 8 kB / 0.5156 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.1115, allocations: 15.98 kB / 0.5156 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.1115, allocations: 15.97 kB / 0.5156 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.1115, allocations: 12.28 kB / 0.5156 GB, free: 10.81 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002291/0.1118, allocations: 251.2 kB / 0.5159 GB, free: 10.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.1118, allocations: 0 / 0.5159 GB, free: 10.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.1121, allocations: 99.88 kB / 0.516 GB, free: 10.46 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 8.127e-05/0.1122, allocations: 99.23 kB / 0.5161 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007591/0.1129, allocations: 422.8 kB / 0.5165 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.113, allocations: 0 / 0.5165 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.1131, allocations: 131.7 kB / 0.5166 GB, free: 9.805 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.1136, allocations: 77.84 kB / 0.5167 GB, free: 9.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1151, allocations: 1.087 MB / 0.5177 GB, free: 8.609 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.1155, allocations: 0.8152 MB / 0.5185 GB, free: 7.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.595e-05/0.1156, allocations: 27.44 kB / 0.5186 GB, free: 7.738 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1156, allocations: 0 / 0.5186 GB, free: 7.738 MB / 414.1 MB Notification: Performance of Templates: time 0.006807/0.1224, allocations: 5.738 MB / 0.5242 GB, free: 1.988 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)