Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical5,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical5,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.196/1.196, allocations: 205.1 MB / 223.1 MB, free: 8.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009504/0.0009504, allocations: 106 kB / 270.5 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3575/0.3575, allocations: 48.83 MB / 366.7 MB, free: 46.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009947/0.0009947, allocations: 51.92 kB / 436.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09345, allocations: 59.15 MB / 495.7 MB, free: 148 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003786/0.09728, allocations: 2.745 MB / 498.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.09868, allocations: 0.7601 MB / 499.3 MB, free: 12.61 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.09883, allocations: 7.938 kB / 499.3 MB, free: 12.6 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.09897, allocations: 35.7 kB / 499.3 MB, free: 12.57 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.09924, allocations: 99.22 kB / 499.4 MB, free: 12.47 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.09939, allocations: 71.92 kB / 499.5 MB, free: 12.4 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003284/0.09973, allocations: 378.2 kB / 499.8 MB, free: 12.03 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.09992, allocations: 80.98 kB / 499.9 MB, free: 11.95 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.1001, allocations: 143.3 kB / 0.4883 GB, free: 11.8 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1003, allocations: 163.1 kB / 0.4885 GB, free: 11.64 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/0.1003, allocations: 16 kB / 0.4885 GB, free: 11.63 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.17e-05/0.1004, allocations: 20 kB / 0.4885 GB, free: 11.61 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.1005, allocations: 59.7 kB / 0.4886 GB, free: 11.55 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.1006, allocations: 166.9 kB / 0.4887 GB, free: 11.39 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.1009, allocations: 303 kB / 0.489 GB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1009, allocations: 4 kB / 0.489 GB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1009, allocations: 4 kB / 0.489 GB, free: 11.08 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1009, allocations: 0 / 0.489 GB, free: 11.08 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009444/0.1019, allocations: 0.6621 MB / 0.4897 GB, free: 10.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1019, allocations: 12.03 kB / 0.4897 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.102, allocations: 48.41 kB / 0.4897 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.1024, allocations: 311.9 kB / 0.49 GB, free: 9.969 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1024, allocations: 20.81 kB / 0.4901 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.1024, allocations: 24.38 kB / 0.4901 GB, free: 9.926 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.1028, allocations: 250.9 kB / 0.4903 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1029, allocations: 4 kB / 0.4903 GB, free: 9.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.1029, allocations: 12 kB / 0.4903 GB, free: 9.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.1029, allocations: 4 kB / 0.4903 GB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/0.1033, allocations: 177.6 kB / 0.4905 GB, free: 9.469 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1043, allocations: 0.8672 MB / 0.4914 GB, free: 8.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.1046, allocations: 183.5 kB / 0.4915 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.1048, allocations: 104.8 kB / 0.4916 GB, free: 8.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.1049, allocations: 4 kB / 0.4916 GB, free: 8.242 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.1049, allocations: 34.56 kB / 0.4917 GB, free: 8.199 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 1.443e-06/0.1049, allocations: 0 / 0.4917 GB, free: 8.199 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.001276/0.1062, allocations: 0.7435 MB / 0.4924 GB, free: 7.406 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.1062, allocations: 55.41 kB / 0.4924 GB, free: 7.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1065, allocations: 300.6 kB / 0.4927 GB, free: 7.035 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.1065, allocations: 33.7 kB / 0.4928 GB, free: 6.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1067, allocations: 176.6 kB / 0.4929 GB, free: 6.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.399e-05/0.1067, allocations: 102.5 kB / 0.493 GB, free: 6.719 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.106e-05/0.1068, allocations: 53.7 kB / 0.4931 GB, free: 6.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1069, allocations: 342.8 kB / 0.4934 GB, free: 6.316 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.1071, allocations: 71.91 kB / 0.4935 GB, free: 6.246 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.1073, allocations: 114.7 kB / 0.4936 GB, free: 6.125 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.1076, allocations: 192.1 kB / 0.4938 GB, free: 5.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.1076, allocations: 0 / 0.4938 GB, free: 5.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006611/0.1083, allocations: 322.9 kB / 0.4941 GB, free: 5.605 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.1083, allocations: 7.906 kB / 0.4941 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1083, allocations: 0 / 0.4941 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/0.1086, allocations: 60.88 kB / 0.4941 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.109, allocations: 79.88 kB / 0.4942 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.111, allocations: 2.823 MB / 0.497 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.1112, allocations: 12.02 kB / 0.497 GB, free: 2.355 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1112, allocations: 12 kB / 0.497 GB, free: 2.344 MB / 394.7 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 (30): * Single equations (assignments): 28 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.1114, allocations: 141.8 kB / 0.4971 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-05/0.1114, allocations: 39.62 kB / 0.4972 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004765/0.1119, allocations: 269.2 kB / 0.4974 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1119, allocations: 0 / 0.4974 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.1119, allocations: 0 / 0.4974 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1119, allocations: 4 kB / 0.4974 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008355/0.1128, allocations: 0.6627 MB / 0.4981 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1128, allocations: 3.938 kB / 0.4981 GB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003133/0.1131, allocations: 67.91 kB / 0.4981 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1131, allocations: 0 / 0.4981 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.1131, allocations: 7.984 kB / 0.4982 GB, free: 1.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1132, allocations: 4.188 kB / 0.4982 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.1132, allocations: 7.984 kB / 0.4982 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1629/0.2761, allocations: 2.647 MB / 0.5008 GB, free: 57.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.2762, allocations: 121.4 kB / 0.5009 GB, free: 57.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/0.2763, allocations: 6.953 kB / 0.5009 GB, free: 57.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.2765, allocations: 16.64 kB / 0.5009 GB, free: 57.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.2766, allocations: 17.23 kB / 0.5009 GB, free: 57.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.2766, allocations: 10.38 kB / 0.5009 GB, free: 57.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002148/0.2768, allocations: 215 kB / 0.5011 GB, free: 57.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2768, allocations: 0 / 0.5011 GB, free: 57.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004806/0.2773, allocations: 106 kB / 0.5012 GB, free: 57.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.137e-05/0.2774, allocations: 104.6 kB / 0.5013 GB, free: 57.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000828/0.2782, allocations: 365.1 kB / 0.5017 GB, free: 57.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2782, allocations: 0 / 0.5017 GB, free: 57.49 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.2784, allocations: 110.2 kB / 0.5018 GB, free: 57.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.2789, allocations: 58.47 kB / 0.5018 GB, free: 57.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.2805, allocations: 1.252 MB / 0.5031 GB, free: 56.81 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.2807, allocations: 0.801 MB / 0.5038 GB, free: 56.11 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001605/0.2809, allocations: 41.05 kB / 0.5039 GB, free: 56.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.154e-05/0.281, allocations: 26.62 kB / 0.5039 GB, free: 56.1 MB / 394.7 MB Notification: Performance of SimCode: time 2e-07/0.281, allocations: 1.531 kB / 0.5039 GB, free: 56.1 MB / 394.7 MB Notification: Performance of Templates: time 0.007891/0.2889, allocations: 3.965 MB / 0.5078 GB, free: 55.9 MB / 394.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)