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.001319/0.00132, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001534, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247 MB, free: 10.43 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.2259/0.2259, allocations: 46.12 MB / 344.4 MB, free: 11.48 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.002213/0.002213, allocations: 76.2 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3827, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.2258/0.6086, allocations: 177.3 MB / 0.7038 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008387/0.617, allocations: 5.335 MB / 0.709 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009039/0.618, allocations: 19.88 kB / 0.709 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.6191, allocations: 317.9 kB / 0.7093 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003933/0.623, allocations: 1.248 MB / 0.7105 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002702/0.6257, allocations: 0.9686 MB / 0.7115 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002677/0.6284, allocations: 1.856 MB / 0.7133 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007581/0.6292, allocations: 461.4 kB / 0.7137 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002919/0.6321, allocations: 1.09 MB / 0.7148 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.6334, allocations: 0.6501 MB / 0.7154 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.6335, allocations: 60 kB / 0.7155 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.6354, allocations: 0.6346 MB / 0.7161 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003466/0.6358, allocations: 259.3 kB / 0.7163 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005475/0.6363, allocations: 398.2 kB / 0.7167 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002499/0.6388, allocations: 1.32 MB / 0.718 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.6389, allocations: 0 / 0.718 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6389, allocations: 0 / 0.718 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.53e-05/0.6389, allocations: 0 / 0.718 GB, free: 1.168 MB / 0.5606 GB 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.3375/0.9764, allocations: 1.121 MB / 0.7191 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/0.9765, allocations: 9.688 kB / 0.7191 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000383/0.9768, allocations: 98.02 kB / 0.7192 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/0.978, allocations: 138.3 kB / 0.7193 GB, free: 186.2 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/0.9793, allocations: 0.5401 MB / 0.7199 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.9794, allocations: 99.73 kB / 0.72 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.9795, allocations: 54.66 kB / 0.72 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.9811, allocations: 0.813 MB / 0.7208 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.9812, allocations: 5.562 kB / 0.7208 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.08e-05/0.9812, allocations: 23.88 kB / 0.7208 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-05/0.9813, allocations: 35.47 kB / 0.7209 GB, free: 185.3 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.9824, allocations: 0.6242 MB / 0.7215 GB, free: 185.1 MB / 0.5606 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.003586/0.986, allocations: 3.94 MB / 0.7253 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/0.9866, allocations: 356.1 kB / 0.7257 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.9869, allocations: 168.3 kB / 0.7258 GB, free: 181.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.987, allocations: 89.62 kB / 0.7259 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.987, allocations: 46.25 kB / 0.7259 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.334e-06/0.987, allocations: 0 / 0.7259 GB, free: 181.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.005413/0.9924, allocations: 1.685 MB / 0.7276 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.9925, allocations: 140.1 kB / 0.7277 GB, free: 180 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007035/0.9932, allocations: 0.6122 MB / 0.7283 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.9933, allocations: 33.08 kB / 0.7284 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.9935, allocations: 372.5 kB / 0.7287 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.988e-05/0.9936, allocations: 153.7 kB / 0.7289 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.9938, allocations: 156.6 kB / 0.729 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.9939, allocations: 378.5 kB / 0.7294 GB, free: 178.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.9943, allocations: 203.8 kB / 0.7296 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.9948, allocations: 0.5113 MB / 0.7301 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007893/0.9956, allocations: 0.7517 MB / 0.7308 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.9956, allocations: 6.688 kB / 0.7308 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001367/0.9969, allocations: 0.8895 MB / 0.7317 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.997, allocations: 11.69 kB / 0.7317 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.997, allocations: 9.938 kB / 0.7317 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.9984, allocations: 319.7 kB / 0.732 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004148/0.9988, allocations: 126.3 kB / 0.7321 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009778/0.9998, allocations: 0.9374 MB / 0.733 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/1, allocations: 30.45 kB / 0.7331 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.426e-05/1, allocations: 62.25 kB / 0.7331 GB, free: 176.2 MB / 0.5606 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.0003422/1.001, allocations: 243.3 kB / 0.7334 GB, free: 176 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/1.001, allocations: 69.39 kB / 0.7334 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/1.002, allocations: 0.8669 MB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/1.002, allocations: 7.781 kB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/1.002, allocations: 1.094 kB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/1.002, allocations: 7.875 kB / 0.7343 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/1.004, allocations: 1.453 MB / 0.7357 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.004, allocations: 0 / 0.7357 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009614/1.005, allocations: 214.1 kB / 0.7359 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-05/1.005, allocations: 28.66 kB / 0.7359 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/1.005, allocations: 19.83 kB / 0.7359 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001328/1.007, allocations: 2.868 MB / 0.7388 GB, free: 171.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.007, allocations: 1.906 kB / 0.7388 GB, free: 171.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/1.008, allocations: 0.8258 MB / 0.7396 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/1.008, allocations: 192.1 kB / 0.7397 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.631e-05/1.008, allocations: 19.97 kB / 0.7398 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/1.008, allocations: 19.86 kB / 0.7398 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.098e-05/1.008, allocations: 35.67 kB / 0.7398 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/1.008, allocations: 48.83 kB / 0.7399 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004096/1.009, allocations: 443 kB / 0.7403 GB, free: 170 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.009, allocations: 0 / 0.7403 GB, free: 170 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009592/1.01, allocations: 251.8 kB / 0.7405 GB, free: 169.8 MB / 0.5606 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.001785/1.012, allocations: 1.559 MB / 0.742 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009986/1.013, allocations: 0.5641 MB / 0.7426 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/1.013, allocations: 1.219 kB / 0.7426 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008442/1.014, allocations: 423.7 kB / 0.743 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/1.015, allocations: 367 kB / 0.7434 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006572/1.022, allocations: 6.325 MB / 0.7495 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/1.022, allocations: 0.9339 MB / 0.7504 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000915/1.023, allocations: 469.8 kB / 0.7509 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003891/1.023, allocations: 279.3 kB / 0.7512 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of SimCode: time 8.92e-07/1.023, allocations: 4 kB / 0.7512 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05206/1.075, allocations: 24.46 MB / 0.775 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/14.2, allocations: 25.86 kB / 0.7751 GB, free: 134.2 MB / 0.5606 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)