Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGT.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.GasComponents.TestGT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestGT") translateModel(ThermoPower.Test.GasComponents.TestGT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestGT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.00111, allocations: 107.1 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.001073/0.001073, allocations: 188.2 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.429/1.429, 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.2949/0.2949, allocations: 48.85 MB / 320.8 MB, free: 11.01 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.001466/0.001466, allocations: 71.89 kB / 451.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1223, allocations: 59.15 MB / 0.4984 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.5178/0.6402, allocations: 186.2 MB / 0.6802 GB, free: 48 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004425/0.6446, allocations: 1.935 MB / 0.6821 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005919/0.6453, allocations: 19.88 kB / 0.6821 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.6464, allocations: 377.5 kB / 0.6824 GB, free: 13.72 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001684/0.6482, allocations: 0.7933 MB / 0.6832 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002803/0.651, allocations: 1.06 MB / 0.6843 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002458/0.6535, allocations: 1.875 MB / 0.6861 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.6546, allocations: 0.6516 MB / 0.6867 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.6562, allocations: 0.8202 MB / 0.6875 GB, free: 8.504 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.6573, allocations: 0.7944 MB / 0.6883 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.6575, allocations: 84 kB / 0.6884 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001859/0.6594, allocations: 0.6663 MB / 0.689 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0007057/0.6601, allocations: 0.7986 MB / 0.6898 GB, free: 6.156 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.6612, allocations: 0.9437 MB / 0.6907 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002757/0.6639, allocations: 2.426 MB / 0.6931 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.664, allocations: 0 / 0.6931 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.204e-06/0.664, allocations: 0 / 0.6931 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.494e-05/0.664, allocations: 4 kB / 0.6931 GB, free: 2.77 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003636/0.6676, allocations: 2.369 MB / 0.6954 GB, free: 344 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.6677, allocations: 15.89 kB / 0.6954 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009151/0.6686, allocations: 301 kB / 0.6957 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/0.6706, allocations: 1.388 MB / 0.6971 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.6707, allocations: 91.7 kB / 0.6972 GB, free: 14.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.6708, allocations: 84 kB / 0.6972 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.6727, allocations: 1.141 MB / 0.6984 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.6727, allocations: 3.938 kB / 0.6984 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.8e-05/0.6728, allocations: 40 kB / 0.6984 GB, free: 13.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.924e-05/0.6729, allocations: 38 kB / 0.6984 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.6741, allocations: 0.8272 MB / 0.6992 GB, free: 12.28 MB / 0.545 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007581/0.6817, allocations: 5.086 MB / 0.7042 GB, free: 6.957 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006827/0.6824, allocations: 313.3 kB / 0.7045 GB, free: 6.633 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.6827, allocations: 145.7 kB / 0.7046 GB, free: 6.484 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.6827, allocations: 4.594 kB / 0.7047 GB, free: 6.48 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.6828, allocations: 51.38 kB / 0.7047 GB, free: 6.422 MB / 0.545 GB Notification: Performance of pre-optimization done (n=38): time 2.695e-06/0.6828, allocations: 0 / 0.7047 GB, free: 6.422 MB / 0.545 GB Notification: Performance of matching and sorting (n=40): time 0.002647/0.6854, allocations: 1.655 MB / 0.7063 GB, free: 4.703 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.6855, allocations: 81.11 kB / 0.7064 GB, free: 4.605 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004028/0.6895, allocations: 3.414 MB / 0.7097 GB, free: 1.172 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.6897, allocations: 41.7 kB / 0.7098 GB, free: 1.125 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008179/0.6905, allocations: 0.9712 MB / 0.7107 GB, free: 152 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.6907, allocations: 138 kB / 0.7108 GB, free: 12 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.6909, allocations: 134.1 kB / 0.711 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.691, allocations: 326 kB / 0.7113 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.6914, allocations: 205.2 kB / 0.7115 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004796/0.6919, allocations: 398 kB / 0.7119 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007423/0.6926, allocations: 0.572 MB / 0.7124 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.6927, allocations: 2.875 kB / 0.7124 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001411/0.6941, allocations: 0.8407 MB / 0.7132 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.6941, allocations: 11.94 kB / 0.7133 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.6941, allocations: 8 kB / 0.7133 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.829e-05/0.6942, allocations: 8 kB / 0.7133 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.6952, allocations: 220.4 kB / 0.7135 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006767/0.6959, allocations: 1.207 MB / 0.7147 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008146/0.6967, allocations: 32.17 kB / 0.7147 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.179e-05/0.6968, allocations: 31.94 kB / 0.7147 GB, free: 11.82 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 1 (BooleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007987/0.6976, allocations: 0.5873 MB / 0.7153 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003051/0.6979, allocations: 221.2 kB / 0.7155 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008682/0.6988, allocations: 0.5314 MB / 0.716 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.6988, allocations: 7.938 kB / 0.716 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.6988, allocations: 0 / 0.716 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.6988, allocations: 3.984 kB / 0.716 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.7014, allocations: 1.814 MB / 0.7178 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.7014, allocations: 1.625 kB / 0.7178 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007099/0.7021, allocations: 131.8 kB / 0.7179 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.7021, allocations: 4 kB / 0.7179 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.7021, allocations: 8 kB / 0.7179 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006486/0.7028, allocations: 1.199 MB / 0.7191 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.7028, allocations: 4.812 kB / 0.7191 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.7039, allocations: 0.768 MB / 0.7199 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000669/0.7046, allocations: 422.3 kB / 0.7203 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.7048, allocations: 8 kB / 0.7203 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007484/0.7056, allocations: 31.97 kB / 0.7203 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.788e-05/0.7057, allocations: 27.97 kB / 0.7203 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.457e-05/0.7057, allocations: 27.97 kB / 0.7204 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003106/0.7088, allocations: 2.427 MB / 0.7227 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7089, allocations: 0 / 0.7227 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001088/0.71, allocations: 332 kB / 0.7231 GB, free: 3.094 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (Generator.phi,Generator.omega_m,Generator.omega_e_filt,Grid.port.theta) * Number of discrete variables: 1 (BooleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001408/0.7114, allocations: 0.5598 MB / 0.7236 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00118/0.7126, allocations: 465.8 kB / 0.724 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.7126, allocations: 2.125 kB / 0.724 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.7129, allocations: 167.6 kB / 0.7242 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/0.7156, allocations: 0.5939 MB / 0.7248 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.7217, allocations: 3.741 MB / 0.7284 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.7229, allocations: 1.46 MB / 0.7299 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/0.7234, allocations: 115.4 kB / 0.73 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of SimCode: time 1.132e-06/0.7234, allocations: 0 / 0.73 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of Templates: time 0.3102/1.034, allocations: 38.18 MB / 0.7673 GB, free: 215.5 MB / 0.5919 GB make -j1 -f ThermoPower_ThermoPower.Test.GasComponents.TestGT.makefile (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGT.sim & ./ThermoPower_ThermoPower.Test.GasComponents.TestGT -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe 2>&1)