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: "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGT,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGT,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 110.3 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.001545/0.001545, allocations: 198.9 kB / 18 MB, free: 5.082 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.477/1.477, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2893/0.2893, allocations: 48.84 MB / 320.1 MB, free: 11 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.002585/0.002585, allocations: 71.91 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1332, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.4824/0.6156, allocations: 186.2 MB / 0.679 GB, free: 376 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00472/0.6204, allocations: 1.949 MB / 0.6809 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005029/0.621, allocations: 11.94 kB / 0.6809 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.6221, allocations: 381.5 kB / 0.6813 GB, free: 14.02 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.001539/0.6237, allocations: 0.7933 MB / 0.6821 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002751/0.6265, allocations: 1.058 MB / 0.6831 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00223/0.6287, allocations: 1.867 MB / 0.6849 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008503/0.6296, allocations: 0.6506 MB / 0.6856 GB, free: 9.637 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.6308, allocations: 0.8292 MB / 0.6864 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000823/0.6316, allocations: 0.7866 MB / 0.6871 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.6318, allocations: 88 kB / 0.6872 GB, free: 7.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.6331, allocations: 0.6741 MB / 0.6879 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0005858/0.6337, allocations: 0.7908 MB / 0.6887 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0008421/0.6346, allocations: 0.9476 MB / 0.6896 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002355/0.6369, allocations: 2.441 MB / 0.692 GB, free: 3.059 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.6369, allocations: 4 kB / 0.692 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.563e-06/0.637, allocations: 0 / 0.692 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.711e-05/0.637, allocations: 4 kB / 0.692 GB, free: 3.051 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.003601/0.6406, allocations: 2.393 MB / 0.6943 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.6406, allocations: 11.89 kB / 0.6943 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001904/0.6408, allocations: 151.5 kB / 0.6945 GB, free: 436 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009028/0.6418, allocations: 297 kB / 0.6948 GB, free: 136 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.6438, allocations: 1.404 MB / 0.6961 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.6439, allocations: 99.67 kB / 0.6962 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.644, allocations: 87.91 kB / 0.6963 GB, free: 14.47 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.6458, allocations: 1.137 MB / 0.6974 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.6458, allocations: 7.938 kB / 0.6974 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.6459, allocations: 44 kB / 0.6975 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-05/0.646, allocations: 34 kB / 0.6975 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.6473, allocations: 0.8233 MB / 0.6983 GB, free: 12.37 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.007399/0.6547, allocations: 5.098 MB / 0.7033 GB, free: 7.031 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006683/0.6554, allocations: 314.4 kB / 0.7036 GB, free: 6.707 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.6556, allocations: 141.6 kB / 0.7037 GB, free: 6.562 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.6557, allocations: 8.594 kB / 0.7037 GB, free: 6.555 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.6557, allocations: 50.55 kB / 0.7038 GB, free: 6.496 MB / 0.545 GB Notification: Performance of pre-optimization done (n=38): time 2.735e-06/0.6557, allocations: 0 / 0.7038 GB, free: 6.496 MB / 0.545 GB Notification: Performance of matching and sorting (n=40): time 0.003203/0.6589, allocations: 1.664 MB / 0.7054 GB, free: 4.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.659, allocations: 85.09 kB / 0.7055 GB, free: 4.668 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004794/0.6638, allocations: 3.435 MB / 0.7088 GB, free: 1.215 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.978e-05/0.6639, allocations: 41.69 kB / 0.7089 GB, free: 1.168 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009355/0.6649, allocations: 0.9673 MB / 0.7098 GB, free: 200 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.665, allocations: 146 kB / 0.71 GB, free: 52 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002753/0.6653, allocations: 130.2 kB / 0.7101 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.6655, allocations: 329.9 kB / 0.7104 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004161/0.6659, allocations: 209.1 kB / 0.7106 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005472/0.6664, allocations: 398 kB / 0.711 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008915/0.6673, allocations: 0.5642 MB / 0.7115 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.6674, allocations: 4 kB / 0.7115 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001782/0.6691, allocations: 0.8521 MB / 0.7124 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.6692, allocations: 8.781 kB / 0.7124 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.6692, allocations: 8 kB / 0.7124 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.966e-05/0.6692, allocations: 12.05 kB / 0.7124 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.6704, allocations: 216.5 kB / 0.7126 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008202/0.6712, allocations: 1.207 MB / 0.7138 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009595/0.6722, allocations: 29.48 kB / 0.7138 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.04e-05/0.6723, allocations: 35.98 kB / 0.7138 GB, free: 11.85 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.00109/0.6734, allocations: 0.5881 MB / 0.7144 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005739/0.674, allocations: 221.3 kB / 0.7146 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.6752, allocations: 0.5302 MB / 0.7151 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.6753, allocations: 19.97 kB / 0.7152 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.6753, allocations: 0 / 0.7152 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.6753, allocations: 3.984 kB / 0.7152 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.6785, allocations: 1.818 MB / 0.7169 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.6785, allocations: 4 kB / 0.7169 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/0.6793, allocations: 134.3 kB / 0.7171 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.6793, allocations: 4 kB / 0.7171 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.6793, allocations: 11.94 kB / 0.7171 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007245/0.6801, allocations: 1.199 MB / 0.7183 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6801, allocations: 4.125 kB / 0.7183 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.6813, allocations: 0.7679 MB / 0.719 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009898/0.6823, allocations: 430.3 kB / 0.7194 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003383/0.6827, allocations: 8 kB / 0.7194 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008788/0.6836, allocations: 35.97 kB / 0.7195 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.9e-05/0.6837, allocations: 23.97 kB / 0.7195 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.426e-05/0.6837, allocations: 27.97 kB / 0.7195 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003665/0.6874, allocations: 2.447 MB / 0.7219 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6874, allocations: 0 / 0.7219 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001131/0.6885, allocations: 328 kB / 0.7222 GB, free: 3.078 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.002907/0.6915, allocations: 1.756 MB / 0.7239 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00104/0.6925, allocations: 470 kB / 0.7244 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.6925, allocations: 4.5 kB / 0.7244 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.6929, allocations: 177.2 kB / 0.7246 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002684/0.6956, allocations: 0.586 MB / 0.7251 GB, free: 60 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03006/0.7257, allocations: 18.55 MB / 0.7432 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/0.7271, allocations: 1.472 MB / 0.7447 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001105/0.7283, allocations: 348.6 kB / 0.745 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.7293, allocations: 0.7297 MB / 0.7457 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of SimCode: time 8.92e-07/0.7293, allocations: 4 kB / 0.7457 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3464/1.076, allocations: 47.1 MB / 0.7917 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.66/16.73, allocations: 11.94 kB / 0.7917 GB, free: 203.5 MB / 0.5919 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_GasComponents_TestGT_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_GasComponents_TestGT.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestGT.pipe 2>&1)