Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.AirWaterSaturation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation") translateModel(Physiolibrary.Fluid.Examples.AirWaterSaturation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08472/0.08472, allocations: 15.28 MB / 31.53 MB, free: 3.988 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 111.5 kB / 36.54 MB, free: 3.266 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 193.1 kB / 41.64 MB, free: 7.137 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 269.5 MB, free: 6.91 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1349/0.1349, allocations: 23.36 MB / 347.2 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003358/0.003358, allocations: 115.8 kB / 419.7 MB, free: 29.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1328, allocations: 59.36 MB / 479 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.2846/0.4175, allocations: 59.21 MB / 0.5256 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02463/0.4421, allocations: 28.05 MB / 0.553 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009228/0.4431, allocations: 18.5 kB / 0.553 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.4443, allocations: 432.7 kB / 0.5534 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007403/0.4518, allocations: 2.692 MB / 0.5561 GB, free: 8.969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01035/0.4622, allocations: 3.604 MB / 0.5596 GB, free: 7.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002763/0.465, allocations: 1.901 MB / 0.5614 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.4661, allocations: 1.025 MB / 0.5624 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00546/0.4716, allocations: 3.022 MB / 0.5654 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003945/0.4755, allocations: 1.364 MB / 0.5667 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002437/0.4758, allocations: 128.4 kB / 0.5669 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01212/0.4879, allocations: 4.012 MB / 0.5708 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005729/0.4885, allocations: 0.5287 MB / 0.5713 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009267/0.4895, allocations: 0.7528 MB / 0.572 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.5057, allocations: 5.514 MB / 0.5774 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.5057, allocations: 0 / 0.5774 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5057, allocations: 0 / 0.5774 GB, free: 11.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.936e-05/0.5058, allocations: 0 / 0.5774 GB, free: 11.04 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 278 * Number of variables: 278 Notification: Performance of Generate backend data structure: time 0.005561/0.5114, allocations: 2.108 MB / 0.5795 GB, free: 8.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.5114, allocations: 8.031 kB / 0.5795 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001531/0.513, allocations: 291.2 kB / 0.5798 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.5148, allocations: 0.7747 MB / 0.5805 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.068e-05/0.5148, allocations: 77.98 kB / 0.5806 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002061/0.5151, allocations: 99.98 kB / 0.5807 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002738/0.5178, allocations: 1.802 MB / 0.5824 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.5178, allocations: 4 kB / 0.5824 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.518, allocations: 36 kB / 0.5825 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002371/0.5182, allocations: 81.94 kB / 0.5826 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003322/0.5215, allocations: 2.245 MB / 0.5847 GB, free: 3.359 MB / 398.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.009592/0.5312, allocations: 6.37 MB / 0.591 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002577/0.5338, allocations: 1.289 MB / 0.5922 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.5348, allocations: 0.7026 MB / 0.5929 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005815/0.5406, allocations: 3.55 MB / 0.5964 GB, free: 7.008 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.5407, allocations: 51.55 kB / 0.5964 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006045/0.5413, allocations: 122.9 kB / 0.5965 GB, free: 6.828 MB / 414.1 MB Notification: Performance of pre-optimization done (n=100): time 4.999e-06/0.5413, allocations: 0 / 0.5965 GB, free: 6.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=100): time 0.005471/0.5468, allocations: 2.549 MB / 0.599 GB, free: 4.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.5468, allocations: 60.41 kB / 0.5991 GB, free: 4.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.5479, allocations: 0.7544 MB / 0.5998 GB, free: 3.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.138e-05/0.548, allocations: 41.7 kB / 0.5999 GB, free: 3.348 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000414/0.5484, allocations: 0.4989 MB / 0.6004 GB, free: 2.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003796/0.5488, allocations: 346.9 kB / 0.6007 GB, free: 2.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000445/0.5493, allocations: 254.7 kB / 0.6009 GB, free: 2.242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000306/0.5496, allocations: 398.7 kB / 0.6013 GB, free: 1.844 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.5507, allocations: 0.6389 MB / 0.6019 GB, free: 1.203 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.552, allocations: 0.9457 MB / 0.6029 GB, free: 136 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/0.5545, allocations: 1.662 MB / 0.6045 GB, free: 14.35 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/0.5545, allocations: 7.938 kB / 0.6045 GB, free: 14.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.0033/0.5578, allocations: 1.872 MB / 0.6063 GB, free: 12.45 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.5579, allocations: 8 kB / 0.6063 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.5579, allocations: 8 kB / 0.6063 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.5593, allocations: 297.6 kB / 0.6066 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.5604, allocations: 279.6 kB / 0.6069 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.5617, allocations: 1.237 MB / 0.6081 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009694/0.5627, allocations: 35.98 kB / 0.6081 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/0.5629, allocations: 88.12 kB / 0.6082 GB, free: 10.46 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008041/0.5637, allocations: 325.4 kB / 0.6085 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.564, allocations: 98.77 kB / 0.6086 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004435/0.5685, allocations: 2.435 MB / 0.611 GB, free: 7.562 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002737/0.5712, allocations: 1.495 MB / 0.6125 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.5712, allocations: 4 kB / 0.6125 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.5713, allocations: 3.984 kB / 0.6125 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00567/0.5769, allocations: 3.116 MB / 0.6155 GB, free: 2.863 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5769, allocations: 0 / 0.6155 GB, free: 2.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007848/0.5777, allocations: 183.8 kB / 0.6157 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.5791, allocations: 289.4 kB / 0.616 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5792, allocations: 35.98 kB / 0.616 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00098/0.5802, allocations: 1.21 MB / 0.6172 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5802, allocations: 0 / 0.6172 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/0.585, allocations: 2.63 MB / 0.6197 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009311/0.586, allocations: 299.7 kB / 0.62 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003754/0.5864, allocations: 27.94 kB / 0.6201 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007194/0.5871, allocations: 23.98 kB / 0.6201 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.5873, allocations: 68.91 kB / 0.6201 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.5874, allocations: 55.97 kB / 0.6202 GB, free: 13.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.5885, allocations: 0.6122 MB / 0.6208 GB, free: 13.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5885, allocations: 0 / 0.6208 GB, free: 13.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003593/0.5921, allocations: 1.248 MB / 0.622 GB, free: 12.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (upperRespiratoryTract.chemicalSolution.substanceMasses[1],upperRespiratoryTract.chemicalSolution.substanceMasses[2],upperRespiratoryTract.chemicalSolution.substanceMasses[3],upperRespiratoryTract.chemicalSolution.substanceMasses[4],upperRespiratoryTract.enthalpy) * 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 (96): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004682/0.5968, allocations: 1.864 MB / 0.6238 GB, free: 10.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003159/0.5999, allocations: 1.667 MB / 0.6255 GB, free: 8.566 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.6, allocations: 0.5 kB / 0.6255 GB, free: 8.566 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.6012, allocations: 0.8155 MB / 0.6263 GB, free: 7.746 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.6037, allocations: 483 kB / 0.6267 GB, free: 7.289 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005008/0.6087, allocations: 2.707 MB / 0.6294 GB, free: 4.555 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009486/0.6097, allocations: 1.125 MB / 0.6305 GB, free: 3.398 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001408/0.6111, allocations: 425.7 kB / 0.6309 GB, free: 2.996 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006134/0.6117, allocations: 210.2 kB / 0.6311 GB, free: 2.793 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6117, allocations: 0 / 0.6311 GB, free: 2.793 MB / 446.1 MB Notification: Performance of Templates: time 0.06765/0.6794, allocations: 46.1 MB / 0.6761 GB, free: 4.879 MB / 494.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe 2>&1)