Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2854/0.2854, allocations: 46.11 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002328, allocations: 81.23 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1206, allocations: 62.46 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.449/0.5696, allocations: 177.3 MB / 0.6421 GB, free: 1.742 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.5811, allocations: 5.333 MB / 0.6473 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007912/0.582, allocations: 19.88 kB / 0.6473 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.5833, allocations: 317.9 kB / 0.6476 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00479/0.5881, allocations: 1.25 MB / 0.6488 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003866/0.592, allocations: 0.9796 MB / 0.6498 GB, free: 9.848 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004724/0.5967, allocations: 1.848 MB / 0.6516 GB, free: 7.996 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.5983, allocations: 455.5 kB / 0.652 GB, free: 7.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003821/0.6022, allocations: 1.086 MB / 0.6531 GB, free: 6.453 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001791/0.604, allocations: 0.654 MB / 0.6537 GB, free: 5.797 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000246/0.6043, allocations: 60 kB / 0.6538 GB, free: 5.738 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.6065, allocations: 0.5774 MB / 0.6544 GB, free: 5.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004976/0.607, allocations: 267.3 kB / 0.6546 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008289/0.6079, allocations: 398.2 kB / 0.655 GB, free: 4.508 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002788/0.6107, allocations: 1.297 MB / 0.6563 GB, free: 3.207 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.6107, allocations: 3.938 kB / 0.6563 GB, free: 3.203 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6107, allocations: 0 / 0.6563 GB, free: 3.203 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.6107, allocations: 0 / 0.6563 GB, free: 3.203 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.00331/0.6141, allocations: 1.103 MB / 0.6573 GB, free: 2.047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.6141, allocations: 12.03 kB / 0.6574 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000201/0.6143, allocations: 98.5 kB / 0.6575 GB, free: 1.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/0.6158, allocations: 135.1 kB / 0.6576 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.617, allocations: 0.5002 MB / 0.6581 GB, free: 1.258 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.6172, allocations: 104.4 kB / 0.6582 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.6174, allocations: 47.94 kB / 0.6582 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.6193, allocations: 0.8253 MB / 0.659 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.6194, allocations: 0 / 0.659 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.6195, allocations: 24 kB / 0.659 GB, free: 180 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.843e-05/0.6196, allocations: 44.91 kB / 0.6591 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.6213, allocations: 0.6205 MB / 0.6597 GB, free: 15.5 MB / 0.4981 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.007121/0.6284, allocations: 3.963 MB / 0.6636 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009631/0.6294, allocations: 353.9 kB / 0.6639 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.6299, allocations: 170.5 kB / 0.6641 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001914/0.6301, allocations: 97.36 kB / 0.6642 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/0.6301, allocations: 38.84 kB / 0.6642 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=34): time 3.857e-06/0.6302, allocations: 4 kB / 0.6642 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39): time 0.009238/0.6394, allocations: 1.67 MB / 0.6658 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.6396, allocations: 140.5 kB / 0.666 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.6409, allocations: 0.6133 MB / 0.6666 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.183e-05/0.641, allocations: 33.7 kB / 0.6666 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004328/0.6415, allocations: 366.8 kB / 0.6669 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.6417, allocations: 142 kB / 0.6671 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000336/0.642, allocations: 158.5 kB / 0.6672 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002564/0.6423, allocations: 374.8 kB / 0.6676 GB, free: 7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005794/0.6429, allocations: 209.9 kB / 0.6678 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009027/0.6438, allocations: 0.5086 MB / 0.6683 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.6454, allocations: 0.7552 MB / 0.669 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.6455, allocations: 4 kB / 0.669 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002597/0.6481, allocations: 0.8839 MB / 0.6699 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.6481, allocations: 12 kB / 0.6699 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.6481, allocations: 8 kB / 0.6699 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/0.6502, allocations: 304.6 kB / 0.6702 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.6509, allocations: 127.7 kB / 0.6703 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.6527, allocations: 0.9368 MB / 0.6712 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008908/0.6536, allocations: 24 kB / 0.6713 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.6538, allocations: 67.98 kB / 0.6713 GB, free: 2.848 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0005899/0.6544, allocations: 245.5 kB / 0.6716 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002322/0.6546, allocations: 75.22 kB / 0.6716 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.6576, allocations: 0.8617 MB / 0.6725 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.6576, allocations: 7.984 kB / 0.6725 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6576, allocations: 0 / 0.6725 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.6577, allocations: 0 / 0.6725 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003344/0.661, allocations: 1.469 MB / 0.6739 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.661, allocations: 0 / 0.6739 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/0.6628, allocations: 211.8 kB / 0.6741 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001337/0.663, allocations: 25.03 kB / 0.6741 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.92e-05/0.6631, allocations: 20 kB / 0.6742 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003732/0.6668, allocations: 2.878 MB / 0.677 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6668, allocations: 0 / 0.677 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.6692, allocations: 0.8215 MB / 0.6778 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004924/0.6697, allocations: 184.3 kB / 0.6779 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.6699, allocations: 12 kB / 0.678 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006732/0.6706, allocations: 20.05 kB / 0.678 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.6708, allocations: 43.83 kB / 0.678 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.6709, allocations: 43.98 kB / 0.6781 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001089/0.672, allocations: 443 kB / 0.6785 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.9e-07/0.672, allocations: 0 / 0.6785 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001522/0.6736, allocations: 248 kB / 0.6787 GB, free: 10.78 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (39): * Single equations (assignments): 37 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003486/0.6771, allocations: 1.565 MB / 0.6802 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002046/0.6791, allocations: 0.5944 MB / 0.6808 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6791, allocations: 0 / 0.6808 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.6808, allocations: 426.2 kB / 0.6812 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.6838, allocations: 367.3 kB / 0.6816 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.6983, allocations: 6.562 MB / 0.688 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009809/0.6994, allocations: 0.9261 MB / 0.6889 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002016/0.7014, allocations: 458.4 kB / 0.6893 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008057/0.7022, allocations: 290.8 kB / 0.6896 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of SimCode: time 1.663e-06/0.7022, allocations: 0 / 0.6896 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2632/0.9654, allocations: 24.18 MB / 0.7132 GB, free: 198.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.51, allocations: 11.89 kB / 0.7132 GB, free: 198.1 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1)