Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001031/0.001031, allocations: 191 kB / 18 MB, free: 5.09 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.294/1.294, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2588/0.2588, allocations: 48.85 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.001405/0.001405, allocations: 67.91 kB / 450.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.09488, allocations: 59.16 MB / 0.4977 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002774/0.09768, allocations: 2.067 MB / 0.4997 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008648/0.09855, allocations: 0.6008 MB / 0.5003 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.09867, allocations: 7.938 kB / 0.5003 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.0988, allocations: 19.73 kB / 0.5004 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.09899, allocations: 63.48 kB / 0.5004 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001294/0.09912, allocations: 43.94 kB / 0.5005 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000225/0.09936, allocations: 211 kB / 0.5007 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.09949, allocations: 52.25 kB / 0.5007 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.09961, allocations: 79.59 kB / 0.5008 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.09975, allocations: 83.56 kB / 0.5009 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.626e-05/0.09978, allocations: 12 kB / 0.5009 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.09984, allocations: 12 kB / 0.5009 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.627e-05/0.09989, allocations: 43.83 kB / 0.5009 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.378e-05/0.09998, allocations: 87.48 kB / 0.501 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.1002, allocations: 171.1 kB / 0.5012 GB, free: 9.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1002, allocations: 0 / 0.5012 GB, free: 9.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1002, allocations: 0 / 0.5012 GB, free: 9.715 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.1002, allocations: 0 / 0.5012 GB, free: 9.715 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000656/0.1009, allocations: 0.4905 MB / 0.5017 GB, free: 9.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.1009, allocations: 15.89 kB / 0.5017 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.461e-05/0.101, allocations: 24.8 kB / 0.5017 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.1013, allocations: 252.9 kB / 0.5019 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-06/0.1013, allocations: 4.375 kB / 0.5019 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.1013, allocations: 16.38 kB / 0.502 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002366/0.1016, allocations: 129.2 kB / 0.5021 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.1016, allocations: 3.938 kB / 0.5021 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.1016, allocations: 12 kB / 0.5021 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1016, allocations: 0 / 0.5021 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.1018, allocations: 79.88 kB / 0.5022 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/0.1025, allocations: 0.5529 MB / 0.5027 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.1028, allocations: 98.61 kB / 0.5028 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.877e-05/0.1029, allocations: 48.78 kB / 0.5028 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.1029, allocations: 0 / 0.5028 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.1029, allocations: 42.55 kB / 0.5029 GB, free: 7.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.1029, allocations: 0 / 0.5029 GB, free: 7.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007444/0.1037, allocations: 446.8 kB / 0.5033 GB, free: 7.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.1037, allocations: 51.41 kB / 0.5034 GB, free: 7.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.1039, allocations: 221 kB / 0.5036 GB, free: 7.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.104, allocations: 25.7 kB / 0.5036 GB, free: 6.973 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.104, allocations: 140.3 kB / 0.5037 GB, free: 6.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.1041, allocations: 39.64 kB / 0.5038 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.788e-05/0.1041, allocations: 33.7 kB / 0.5038 GB, free: 6.754 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1042, allocations: 326.8 kB / 0.5041 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.512e-05/0.1043, allocations: 35.98 kB / 0.5041 GB, free: 6.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.174e-05/0.1044, allocations: 54.55 kB / 0.5042 GB, free: 6.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.1046, allocations: 98.44 kB / 0.5043 GB, free: 6.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1046, allocations: 8 kB / 0.5043 GB, free: 6.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002371/0.1048, allocations: 137.5 kB / 0.5044 GB, free: 6.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1049, allocations: 15.84 kB / 0.5044 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1049, allocations: 0 / 0.5044 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1049, allocations: 3.984 kB / 0.5045 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.105, allocations: 39.92 kB / 0.5045 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.1051, allocations: 4 kB / 0.5045 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.73e-05/0.1052, allocations: 8 kB / 0.5045 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.1052, allocations: 7.938 kB / 0.5045 GB, free: 5.996 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 16 * 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 prepare postOptimizeDAE: time 9.169e-05/0.1053, allocations: 129.8 kB / 0.5046 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.068e-05/0.1053, allocations: 23.8 kB / 0.5047 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.1054, allocations: 21.7 kB / 0.5047 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1054, allocations: 4 kB / 0.5047 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1054, allocations: 0 / 0.5047 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.1054, allocations: 0 / 0.5047 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004975/0.1059, allocations: 450.3 kB / 0.5051 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1059, allocations: 0 / 0.5051 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.1061, allocations: 27.98 kB / 0.5051 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1061, allocations: 0 / 0.5051 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.1061, allocations: 11.98 kB / 0.5051 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1061, allocations: 0 / 0.5051 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1061, allocations: 3.984 kB / 0.5052 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.1065, allocations: 271.4 kB / 0.5054 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.796e-05/0.1065, allocations: 97.05 kB / 0.5055 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1066, allocations: 4 kB / 0.5055 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1067, allocations: 4 kB / 0.5055 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.1067, allocations: 7.984 kB / 0.5055 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.1067, allocations: 4 kB / 0.5055 GB, free: 4.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001417/0.1069, allocations: 172.4 kB / 0.5057 GB, free: 4.684 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1069, allocations: 0 / 0.5057 GB, free: 4.684 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.1072, allocations: 28 kB / 0.5057 GB, free: 4.656 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (12): * Single equations (assignments): 12 * 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.132e-05/0.1072, allocations: 107.1 kB / 0.5058 GB, free: 4.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002069/0.1075, allocations: 87.89 kB / 0.5059 GB, free: 4.457 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1075, allocations: 0 / 0.5059 GB, free: 4.457 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.106e-05/0.1076, allocations: 39.92 kB / 0.5059 GB, free: 4.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.1079, allocations: 32.66 kB / 0.506 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008318/0.1087, allocations: 0.514 MB / 0.5065 GB, free: 3.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.109, allocations: 0.7202 MB / 0.5072 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.355e-05/0.1091, allocations: 21.55 kB / 0.5072 GB, free: 3.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.1091, allocations: 19.38 kB / 0.5072 GB, free: 3.062 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1091, allocations: 0 / 0.5072 GB, free: 3.062 MB / 398.1 MB Notification: Performance of Templates: time 0.003874/0.113, allocations: 1.588 MB / 0.5088 GB, free: 1.477 MB / 398.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)