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.001492/0.001492, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001707/0.001707, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.347/1.347, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.257/0.257, allocations: 48.85 MB / 319.9 MB, free: 11.09 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.001959/0.001959, allocations: 69.94 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08761, allocations: 59.16 MB / 449.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGT): time 0.3556/0.4433, allocations: 186.1 MB / 0.6206 GB, free: 8.488 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003104/0.4464, allocations: 1.943 MB / 0.6225 GB, free: 6.898 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003078/0.4468, allocations: 10.81 kB / 0.6225 GB, free: 6.895 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008544/0.4476, allocations: 375.8 kB / 0.6229 GB, free: 6.582 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.001055/0.4487, allocations: 0.7976 MB / 0.6236 GB, free: 6.012 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.4507, allocations: 1.061 MB / 0.6247 GB, free: 5.227 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.4521, allocations: 1.873 MB / 0.6265 GB, free: 4.188 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006301/0.4528, allocations: 0.658 MB / 0.6271 GB, free: 3.75 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008248/0.4536, allocations: 0.8133 MB / 0.6279 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007139/0.4543, allocations: 0.7921 MB / 0.6287 GB, free: 2.699 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.4545, allocations: 84 kB / 0.6288 GB, free: 2.617 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.4558, allocations: 0.7443 MB / 0.6295 GB, free: 1.871 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005079/0.4563, allocations: 0.7948 MB / 0.6303 GB, free: 1.074 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007327/0.457, allocations: 0.9476 MB / 0.6312 GB, free: 124 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.4591, allocations: 2.442 MB / 0.6336 GB, free: 13.67 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.4591, allocations: 4 kB / 0.6336 GB, free: 13.67 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4591, allocations: 0 / 0.6336 GB, free: 13.67 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.712e-05/0.4591, allocations: 0 / 0.6336 GB, free: 13.67 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.002936/0.4621, allocations: 2.397 MB / 0.6359 GB, free: 11.21 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.4621, allocations: 11.89 kB / 0.636 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001618/0.4623, allocations: 151.5 kB / 0.6361 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008453/0.4631, allocations: 301.1 kB / 0.6364 GB, free: 10.75 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.4649, allocations: 1.395 MB / 0.6377 GB, free: 9.281 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.021e-05/0.465, allocations: 95.7 kB / 0.6378 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.4651, allocations: 87.91 kB / 0.6379 GB, free: 9.094 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.4668, allocations: 1.132 MB / 0.639 GB, free: 7.906 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.4668, allocations: 4 kB / 0.639 GB, free: 7.902 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.4669, allocations: 44 kB / 0.6391 GB, free: 7.859 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-05/0.467, allocations: 37.98 kB / 0.6391 GB, free: 7.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.4682, allocations: 0.8158 MB / 0.6399 GB, free: 7.008 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.006965/0.4752, allocations: 5.209 MB / 0.645 GB, free: 1.559 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/0.4758, allocations: 317.1 kB / 0.6453 GB, free: 1.23 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.4761, allocations: 153.6 kB / 0.6454 GB, free: 1.074 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.4761, allocations: 4 kB / 0.6454 GB, free: 1.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.4761, allocations: 46.56 kB / 0.6455 GB, free: 1.016 MB / 462.1 MB Notification: Performance of pre-optimization done (n=38): time 2.154e-06/0.4762, allocations: 0 / 0.6455 GB, free: 1.016 MB / 462.1 MB Notification: Performance of matching and sorting (n=40): time 0.002408/0.4786, allocations: 1.658 MB / 0.6471 GB, free: 15.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.4786, allocations: 85.23 kB / 0.6472 GB, free: 15.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/0.4822, allocations: 3.439 MB / 0.6506 GB, free: 11.74 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.394e-05/0.4823, allocations: 41.7 kB / 0.6506 GB, free: 11.69 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007856/0.4831, allocations: 0.9713 MB / 0.6515 GB, free: 10.71 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.4832, allocations: 145.9 kB / 0.6517 GB, free: 10.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.4834, allocations: 130.1 kB / 0.6518 GB, free: 10.44 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4835, allocations: 330 kB / 0.6521 GB, free: 10.11 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.4839, allocations: 205.2 kB / 0.6523 GB, free: 9.906 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.4844, allocations: 406 kB / 0.6527 GB, free: 9.43 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007541/0.4851, allocations: 0.5642 MB / 0.6533 GB, free: 8.781 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.4852, allocations: 4 kB / 0.6533 GB, free: 8.777 MB / 478.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001261/0.4864, allocations: 0.8605 MB / 0.6541 GB, free: 7.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4865, allocations: 8.094 kB / 0.6541 GB, free: 7.902 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.4865, allocations: 8 kB / 0.6541 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.4865, allocations: 12 kB / 0.6541 GB, free: 7.883 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.4876, allocations: 215.7 kB / 0.6543 GB, free: 7.672 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006213/0.4882, allocations: 1.207 MB / 0.6555 GB, free: 6.418 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007371/0.489, allocations: 35.89 kB / 0.6555 GB, free: 6.383 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.489, allocations: 28 kB / 0.6556 GB, free: 6.355 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.0006528/0.4897, allocations: 0.5949 MB / 0.6561 GB, free: 5.75 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002948/0.49, allocations: 217.3 kB / 0.6564 GB, free: 5.535 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008193/0.4908, allocations: 0.5379 MB / 0.6569 GB, free: 4.984 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.4908, allocations: 7.938 kB / 0.6569 GB, free: 4.977 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4908, allocations: 0 / 0.6569 GB, free: 4.977 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4909, allocations: 4 kB / 0.6569 GB, free: 4.973 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.4932, allocations: 1.814 MB / 0.6587 GB, free: 3.094 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.4932, allocations: 0.875 kB / 0.6587 GB, free: 3.094 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.494, allocations: 139.9 kB / 0.6588 GB, free: 2.957 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.494, allocations: 0 / 0.6588 GB, free: 2.957 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.494, allocations: 11.98 kB / 0.6588 GB, free: 2.945 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005529/0.4946, allocations: 1.195 MB / 0.66 GB, free: 1.703 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4946, allocations: 4.031 kB / 0.66 GB, free: 1.699 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.4957, allocations: 0.7693 MB / 0.6607 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006318/0.4963, allocations: 430.3 kB / 0.6611 GB, free: 476 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.4965, allocations: 4.094 kB / 0.6611 GB, free: 472 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007607/0.4973, allocations: 39.97 kB / 0.6612 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.4974, allocations: 23.97 kB / 0.6612 GB, free: 408 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.053e-05/0.4974, allocations: 27.97 kB / 0.6612 GB, free: 380 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002839/0.5003, allocations: 2.443 MB / 0.6636 GB, free: 13.92 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5003, allocations: 0 / 0.6636 GB, free: 13.92 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0009019/0.5012, allocations: 335.9 kB / 0.6639 GB, free: 13.59 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.002592/0.5038, allocations: 1.769 MB / 0.6657 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000978/0.5048, allocations: 474.4 kB / 0.6661 GB, free: 11.33 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.912e-06/0.5048, allocations: 6.125 kB / 0.6661 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003385/0.5051, allocations: 171.5 kB / 0.6663 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/0.5078, allocations: 0.5778 MB / 0.6669 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02707/0.5348, allocations: 21.94 MB / 0.6883 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.536, allocations: 1.468 MB / 0.6897 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001075/0.5371, allocations: 344.6 kB / 0.69 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008444/0.5379, allocations: 0.7297 MB / 0.6908 GB, free: 352 kB / 0.4981 GB Notification: Performance of SimCode: time 6.41e-07/0.5379, allocations: 0 / 0.6908 GB, free: 352 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0799/0.6179, allocations: 47.61 MB / 0.7372 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.14, allocations: 8.062 kB / 0.7373 GB, free: 0.5859 MB / 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)