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.0009093/0.0009094, allocations: 106.6 kB / 16.94 MB, free: 5.789 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.0008995/0.0008995, allocations: 187.5 kB / 17.87 MB, free: 5.145 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.179/1.179, allocations: 205.1 MB / 223.8 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2442/0.2442, allocations: 48.84 MB / 319.9 MB, free: 11.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.001293/0.001293, allocations: 69.72 kB / 390.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08802/0.08932, allocations: 59.15 MB / 449.4 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.3641/0.4534, allocations: 186.2 MB / 0.6206 GB, free: 8.512 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003092/0.4566, allocations: 1.938 MB / 0.6225 GB, free: 6.926 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.4569, allocations: 11.84 kB / 0.6225 GB, free: 6.922 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.4579, allocations: 381 kB / 0.6229 GB, free: 6.605 MB / 446.1 MB [/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.00112/0.4591, allocations: 0.7908 MB / 0.6237 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002174/0.4613, allocations: 1.063 MB / 0.6247 GB, free: 5.254 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001768/0.4631, allocations: 1.88 MB / 0.6266 GB, free: 4.195 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007036/0.4638, allocations: 0.6596 MB / 0.6272 GB, free: 3.758 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009734/0.4648, allocations: 0.8112 MB / 0.628 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007351/0.4655, allocations: 0.7833 MB / 0.6288 GB, free: 2.723 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.4657, allocations: 88 kB / 0.6288 GB, free: 2.637 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001299/0.467, allocations: 0.6703 MB / 0.6295 GB, free: 1.965 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005135/0.4675, allocations: 0.7947 MB / 0.6303 GB, free: 1.168 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007276/0.4682, allocations: 0.9515 MB / 0.6312 GB, free: 216 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002103/0.4703, allocations: 2.441 MB / 0.6336 GB, free: 13.76 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4703, allocations: 4 kB / 0.6336 GB, free: 13.76 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4704, allocations: 0 / 0.6336 GB, free: 13.76 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.4704, allocations: 4 kB / 0.6336 GB, free: 13.75 MB / 462.1 MB 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.003073/0.4735, allocations: 2.397 MB / 0.6359 GB, free: 11.3 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.4735, allocations: 11.89 kB / 0.6359 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.4737, allocations: 143.5 kB / 0.6361 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007919/0.4745, allocations: 301.1 kB / 0.6364 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.4762, allocations: 1.396 MB / 0.6377 GB, free: 9.371 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.643e-05/0.4763, allocations: 91.7 kB / 0.6378 GB, free: 9.273 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.4764, allocations: 91.91 kB / 0.6379 GB, free: 9.184 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.478, allocations: 1.138 MB / 0.639 GB, free: 7.992 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.478, allocations: 7.938 kB / 0.639 GB, free: 7.984 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.893e-05/0.4781, allocations: 40 kB / 0.6391 GB, free: 7.945 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-05/0.4781, allocations: 33.98 kB / 0.6391 GB, free: 7.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.4793, allocations: 0.8236 MB / 0.6399 GB, free: 7.09 MB / 462.1 MB 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.00637/0.4857, allocations: 5.102 MB / 0.6449 GB, free: 1.746 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.4863, allocations: 325.1 kB / 0.6452 GB, free: 1.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.4865, allocations: 145.7 kB / 0.6453 GB, free: 1.262 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.658e-05/0.4866, allocations: 4 kB / 0.6453 GB, free: 1.258 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.4866, allocations: 42.56 kB / 0.6454 GB, free: 1.207 MB / 462.1 MB Notification: Performance of pre-optimization done (n=38): time 1.793e-06/0.4866, allocations: 0 / 0.6454 GB, free: 1.207 MB / 462.1 MB Notification: Performance of matching and sorting (n=40): time 0.002302/0.4889, allocations: 1.67 MB / 0.647 GB, free: 15.47 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.489, allocations: 81.11 kB / 0.6471 GB, free: 15.38 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003536/0.4925, allocations: 3.435 MB / 0.6504 GB, free: 11.92 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.91e-05/0.4926, allocations: 37.7 kB / 0.6505 GB, free: 11.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007488/0.4933, allocations: 0.9674 MB / 0.6514 GB, free: 10.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.4934, allocations: 149.9 kB / 0.6516 GB, free: 10.76 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.4936, allocations: 130.1 kB / 0.6517 GB, free: 10.62 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4938, allocations: 334 kB / 0.652 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.4941, allocations: 205.2 kB / 0.6522 GB, free: 10.09 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.4945, allocations: 394 kB / 0.6526 GB, free: 9.625 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007119/0.4953, allocations: 0.5642 MB / 0.6531 GB, free: 8.977 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4953, allocations: 8 kB / 0.6531 GB, free: 8.969 MB / 478.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001199/0.4965, allocations: 0.8565 MB / 0.654 GB, free: 8.105 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.4965, allocations: 8 kB / 0.654 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.4965, allocations: 13.86 kB / 0.654 GB, free: 8.086 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.4966, allocations: 8 kB / 0.654 GB, free: 8.078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009846/0.4975, allocations: 215.7 kB / 0.6542 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006208/0.4982, allocations: 1.204 MB / 0.6554 GB, free: 6.617 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.4988, allocations: 27.97 kB / 0.6554 GB, free: 6.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-05/0.4989, allocations: 36.94 kB / 0.6554 GB, free: 6.555 MB / 478.1 MB 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.0006208/0.4995, allocations: 0.5913 MB / 0.656 GB, free: 5.953 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/0.4998, allocations: 217.3 kB / 0.6562 GB, free: 5.738 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007712/0.5006, allocations: 0.5349 MB / 0.6568 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.5006, allocations: 15.97 kB / 0.6568 GB, free: 5.176 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.5006, allocations: 3.984 kB / 0.6568 GB, free: 5.172 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.5006, allocations: 0 / 0.6568 GB, free: 5.172 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.5029, allocations: 1.818 MB / 0.6585 GB, free: 3.289 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5029, allocations: 3.938 kB / 0.6586 GB, free: 3.285 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006683/0.5036, allocations: 135 kB / 0.6587 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.5036, allocations: 0 / 0.6587 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.5036, allocations: 12 kB / 0.6587 GB, free: 3.145 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005665/0.5042, allocations: 1.203 MB / 0.6599 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.5042, allocations: 0 / 0.6599 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009627/0.5052, allocations: 0.7656 MB / 0.6606 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006009/0.5058, allocations: 431.8 kB / 0.661 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.506, allocations: 12 kB / 0.661 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/0.5066, allocations: 35.91 kB / 0.6611 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.5067, allocations: 23.95 kB / 0.6611 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.5068, allocations: 27.98 kB / 0.6611 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.5094, allocations: 2.443 MB / 0.6635 GB, free: 14.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5094, allocations: 0 / 0.6635 GB, free: 14.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008206/0.5102, allocations: 336 kB / 0.6638 GB, free: 13.79 MB / 494.1 MB 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.00234/0.5126, allocations: 1.763 MB / 0.6655 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008391/0.5134, allocations: 463.5 kB / 0.666 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5134, allocations: 1.062 kB / 0.666 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.5138, allocations: 175.6 kB / 0.6662 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.5159, allocations: 0.5792 MB / 0.6667 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02714/0.543, allocations: 22.05 MB / 0.6883 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009764/0.5441, allocations: 1.472 MB / 0.6897 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008613/0.5449, allocations: 344.6 kB / 0.69 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007578/0.5457, allocations: 0.7296 MB / 0.6907 GB, free: 464 kB / 0.4981 GB Notification: Performance of SimCode: time 9.92e-07/0.5457, allocations: 0 / 0.6907 GB, free: 464 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07705/0.6228, allocations: 47.94 MB / 0.7376 GB, free: 380 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.969/9.592, allocations: 4 kB / 0.7376 GB, free: 376 kB / 0.545 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)