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.09371/0.09371, allocations: 15.28 MB / 30.91 MB, free: 4.152 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.001099/0.001099, allocations: 104.9 kB / 35.92 MB, free: 3.191 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.001272/0.001272, allocations: 194 kB / 41.01 MB, free: 7.141 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.514/1.514, allocations: 222.9 MB / 268.9 MB, free: 6.957 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1476/0.1476, allocations: 23.35 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 103.8 kB / 480 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3903, allocations: 59.35 MB / 0.5267 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.0644/0.4548, allocations: 59.23 MB / 0.5846 GB, free: 8.605 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02842/0.4832, allocations: 28.06 MB / 0.612 GB, free: 12.43 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.4845, allocations: 15.94 kB / 0.612 GB, free: 12.41 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.4861, allocations: 437.1 kB / 0.6124 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008845/0.4949, allocations: 2.681 MB / 0.615 GB, free: 9.289 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01008/0.505, allocations: 3.604 MB / 0.6185 GB, free: 5.664 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00262/0.5077, allocations: 1.902 MB / 0.6204 GB, free: 3.758 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.5089, allocations: 1.021 MB / 0.6214 GB, free: 2.707 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005787/0.5147, allocations: 3.018 MB / 0.6243 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004121/0.5189, allocations: 1.373 MB / 0.6257 GB, free: 14.4 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003292/0.5192, allocations: 128 kB / 0.6258 GB, free: 14.28 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01179/0.531, allocations: 4.016 MB / 0.6297 GB, free: 10.25 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006896/0.5317, allocations: 0.5416 MB / 0.6303 GB, free: 9.711 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.5331, allocations: 0.743 MB / 0.631 GB, free: 8.965 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.5478, allocations: 5.518 MB / 0.6364 GB, free: 3.43 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.5478, allocations: 0 / 0.6364 GB, free: 3.43 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5478, allocations: 0 / 0.6364 GB, free: 3.43 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.932e-05/0.5479, allocations: 0 / 0.6364 GB, free: 3.43 MB / 478.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.005488/0.5534, allocations: 2.108 MB / 0.6384 GB, free: 1.266 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.5535, allocations: 12.03 kB / 0.6384 GB, free: 1.254 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001423/0.5549, allocations: 282.2 kB / 0.6387 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.5564, allocations: 0.7709 MB / 0.6395 GB, free: 164 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/0.5565, allocations: 78 kB / 0.6395 GB, free: 88 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002711/0.5568, allocations: 99.98 kB / 0.6396 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003073/0.5599, allocations: 1.811 MB / 0.6414 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.5599, allocations: 0 / 0.6414 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.56, allocations: 40 kB / 0.6414 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/0.5603, allocations: 77.95 kB / 0.6415 GB, free: 13.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003692/0.564, allocations: 2.249 MB / 0.6437 GB, free: 11.73 MB / 494.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.009832/0.5738, allocations: 6.356 MB / 0.6499 GB, free: 5.145 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002455/0.5763, allocations: 1.285 MB / 0.6512 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.5774, allocations: 0.6988 MB / 0.6519 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005312/0.5827, allocations: 3.561 MB / 0.6553 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.5827, allocations: 43.5 kB / 0.6554 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005853/0.5833, allocations: 122.9 kB / 0.6555 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=100): time 4.208e-06/0.5834, allocations: 0 / 0.6555 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100): time 0.005348/0.5887, allocations: 2.545 MB / 0.658 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.5888, allocations: 72.33 kB / 0.6581 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.5899, allocations: 0.7582 MB / 0.6588 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-05/0.5899, allocations: 41.7 kB / 0.6588 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.5903, allocations: 0.495 MB / 0.6593 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.5906, allocations: 347 kB / 0.6596 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003833/0.591, allocations: 246.7 kB / 0.6599 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.5912, allocations: 406.7 kB / 0.6603 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009801/0.5922, allocations: 0.6389 MB / 0.6609 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.5934, allocations: 0.942 MB / 0.6618 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002295/0.5957, allocations: 1.666 MB / 0.6634 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.5957, allocations: 0 / 0.6634 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003195/0.5989, allocations: 1.865 MB / 0.6653 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.599, allocations: 11.94 kB / 0.6653 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.599, allocations: 15.94 kB / 0.6653 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/0.6005, allocations: 297.7 kB / 0.6656 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.6015, allocations: 283.6 kB / 0.6658 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.6027, allocations: 1.233 MB / 0.667 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008531/0.6035, allocations: 48.05 kB / 0.6671 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.6037, allocations: 83.95 kB / 0.6672 GB, free: 2.848 MB / 0.4981 GB 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.0006117/0.6044, allocations: 325.4 kB / 0.6675 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.6046, allocations: 86.88 kB / 0.6676 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004294/0.6089, allocations: 2.438 MB / 0.6699 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002594/0.6115, allocations: 1.488 MB / 0.6714 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.6116, allocations: 3.938 kB / 0.6714 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.6116, allocations: 3.984 kB / 0.6714 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005551/0.6171, allocations: 3.128 MB / 0.6745 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.6172, allocations: 4 kB / 0.6745 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008146/0.618, allocations: 187.7 kB / 0.6746 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.6195, allocations: 289.4 kB / 0.6749 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.6196, allocations: 35.92 kB / 0.675 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.6207, allocations: 1.202 MB / 0.6761 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.6207, allocations: 3.938 kB / 0.6761 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004744/0.6255, allocations: 2.63 MB / 0.6787 GB, free: 6.832 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006705/0.6262, allocations: 295.7 kB / 0.679 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003061/0.6265, allocations: 20 kB / 0.679 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006934/0.6272, allocations: 23.98 kB / 0.679 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.6274, allocations: 80.84 kB / 0.6791 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6275, allocations: 47.97 kB / 0.6791 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009537/0.6284, allocations: 0.6161 MB / 0.6797 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6285, allocations: 0 / 0.6797 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003682/0.6321, allocations: 1.248 MB / 0.681 GB, free: 4.488 MB / 0.5137 GB 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.004653/0.6368, allocations: 1.841 MB / 0.6828 GB, free: 2.648 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003372/0.6402, allocations: 1.664 MB / 0.6844 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6402, allocations: 4.062 kB / 0.6844 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.6416, allocations: 0.8232 MB / 0.6852 GB, free: 152 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/0.6443, allocations: 484 kB / 0.6857 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004898/0.6493, allocations: 2.714 MB / 0.6883 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009121/0.6502, allocations: 1.129 MB / 0.6894 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001499/0.6517, allocations: 416.7 kB / 0.6898 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006259/0.6523, allocations: 223.9 kB / 0.69 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of SimCode: time 7.01e-07/0.6523, allocations: 4 kB / 0.69 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of Templates: time 0.3475/0.9999, allocations: 46.4 MB / 0.7353 GB, free: 184 MB / 0.5606 GB 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 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe 2>&1)