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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 186.5 kB / 17.27 MB, free: 4.5 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.202/1.202, allocations: 205.1 MB / 223.1 MB, free: 8.48 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.0009536/0.0009535, allocations: 103.4 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3485/0.3485, allocations: 48.83 MB / 366.7 MB, free: 46.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009947/0.0009948, allocations: 51.92 kB / 436.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09133/0.09234, allocations: 59.14 MB / 495.7 MB, free: 148 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003779/0.09616, allocations: 3.173 MB / 498.9 MB, free: 12.95 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.09732, allocations: 0.842 MB / 499.8 MB, free: 12.1 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.09749, allocations: 8 kB / 499.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.09764, allocations: 31.64 kB / 499.8 MB, free: 12.06 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.09793, allocations: 127.1 kB / 499.9 MB, free: 11.93 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.09814, allocations: 87.91 kB / 0.4883 GB, free: 11.85 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.09855, allocations: 482.3 kB / 0.4887 GB, free: 11.38 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.09876, allocations: 124.1 kB / 0.4889 GB, free: 11.25 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.09896, allocations: 183.1 kB / 0.489 GB, free: 11.07 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.09918, allocations: 202.9 kB / 0.4892 GB, free: 10.87 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.09923, allocations: 24 kB / 0.4893 GB, free: 10.85 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.069e-05/0.09932, allocations: 27.98 kB / 0.4893 GB, free: 10.82 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.09939, allocations: 75.67 kB / 0.4894 GB, free: 10.75 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.09955, allocations: 198.8 kB / 0.4895 GB, free: 10.55 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.09988, allocations: 386.4 kB / 0.4899 GB, free: 10.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.09989, allocations: 0 / 0.4899 GB, free: 10.17 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.0999, allocations: 0 / 0.4899 GB, free: 10.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.09991, allocations: 0 / 0.4899 GB, free: 10.17 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001158/0.1011, allocations: 0.7593 MB / 0.4907 GB, free: 9.363 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.1011, allocations: 16.03 kB / 0.4907 GB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.1012, allocations: 52.28 kB / 0.4907 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.1016, allocations: 350.1 kB / 0.4911 GB, free: 8.914 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1017, allocations: 29.03 kB / 0.4911 GB, free: 8.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.1017, allocations: 32.28 kB / 0.4911 GB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.1022, allocations: 297.7 kB / 0.4914 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.1022, allocations: 3.984 kB / 0.4914 GB, free: 8.543 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.1022, allocations: 16 kB / 0.4914 GB, free: 8.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1022, allocations: 8 kB / 0.4914 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003615/0.1026, allocations: 202.1 kB / 0.4916 GB, free: 8.324 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.1041, allocations: 1.116 MB / 0.4927 GB, free: 7.133 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.1045, allocations: 235 kB / 0.4929 GB, free: 6.895 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.1047, allocations: 124.8 kB / 0.493 GB, free: 6.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1047, allocations: 4 kB / 0.4931 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.1047, allocations: 39.09 kB / 0.4931 GB, free: 6.719 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.1047, allocations: 0 / 0.4931 GB, free: 6.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001615/0.1063, allocations: 0.9405 MB / 0.494 GB, free: 5.711 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.1064, allocations: 55.41 kB / 0.4941 GB, free: 5.645 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003307/0.1067, allocations: 357.6 kB / 0.4944 GB, free: 5.281 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1068, allocations: 37.7 kB / 0.4944 GB, free: 5.238 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1069, allocations: 208.3 kB / 0.4946 GB, free: 5.031 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.143e-05/0.107, allocations: 122.2 kB / 0.4948 GB, free: 4.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.072e-05/0.1071, allocations: 74.02 kB / 0.4948 GB, free: 4.828 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1072, allocations: 350.7 kB / 0.4952 GB, free: 4.477 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.1074, allocations: 88.7 kB / 0.4952 GB, free: 4.391 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.1076, allocations: 137.7 kB / 0.4954 GB, free: 4.242 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.1079, allocations: 240 kB / 0.4956 GB, free: 3.992 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1079, allocations: 0 / 0.4956 GB, free: 3.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008851/0.1088, allocations: 421.2 kB / 0.496 GB, free: 3.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.1088, allocations: 4 kB / 0.496 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1088, allocations: 4 kB / 0.496 GB, free: 3.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005728/0.1094, allocations: 116.9 kB / 0.4961 GB, free: 3.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.1099, allocations: 95.88 kB / 0.4962 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1613/0.2712, allocations: 3.103 MB / 0.4992 GB, free: 58.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.2715, allocations: 15.06 kB / 0.4993 GB, free: 58.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.2716, allocations: 9.75 kB / 0.4993 GB, free: 58.24 MB / 394.7 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.000163/0.2717, allocations: 158.1 kB / 0.4994 GB, free: 58.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.325e-05/0.2718, allocations: 41.03 kB / 0.4995 GB, free: 58.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005327/0.2724, allocations: 303.6 kB / 0.4997 GB, free: 58.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2724, allocations: 5 kB / 0.4998 GB, free: 58.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2724, allocations: 2.547 kB / 0.4998 GB, free: 58.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.2724, allocations: 1.359 kB / 0.4998 GB, free: 58.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009664/0.2734, allocations: 0.7505 MB / 0.5005 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2734, allocations: 0 / 0.5005 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.2738, allocations: 76.52 kB / 0.5006 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.2738, allocations: 1.469 kB / 0.5006 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.2738, allocations: 9.672 kB / 0.5006 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2738, allocations: 2.344 kB / 0.5006 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.2738, allocations: 0.5625 kB / 0.5006 GB, free: 57.79 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004819/0.2787, allocations: 3.247 MB / 0.5037 GB, free: 56.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.2788, allocations: 130.9 kB / 0.5039 GB, free: 56.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.2788, allocations: 13.12 kB / 0.5039 GB, free: 56.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.2791, allocations: 10.45 kB / 0.5039 GB, free: 56.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.2791, allocations: 20.52 kB / 0.5039 GB, free: 56.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.2791, allocations: 13.25 kB / 0.5039 GB, free: 56.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002427/0.2794, allocations: 255.9 kB / 0.5042 GB, free: 56.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2794, allocations: 3.172 kB / 0.5042 GB, free: 56.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005153/0.2799, allocations: 137.3 kB / 0.5043 GB, free: 56.35 MB / 394.7 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 9.118e-05/0.28, allocations: 104.1 kB / 0.5044 GB, free: 56.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008695/0.2809, allocations: 425.8 kB / 0.5048 GB, free: 56.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2809, allocations: 0 / 0.5048 GB, free: 56.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001943/0.2811, allocations: 130 kB / 0.5049 GB, free: 56.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.2816, allocations: 73.59 kB / 0.505 GB, free: 56 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.2838, allocations: 1.469 MB / 0.5064 GB, free: 55.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.2841, allocations: 0.8322 MB / 0.5073 GB, free: 54.38 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.2843, allocations: 53.53 kB / 0.5073 GB, free: 54.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.2844, allocations: 34.56 kB / 0.5073 GB, free: 54.36 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2845, allocations: 0 / 0.5073 GB, free: 54.36 MB / 394.7 MB Notification: Performance of Templates: time 0.01721/0.3017, allocations: 5.495 MB / 0.5127 GB, free: 54.05 MB / 394.7 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)