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-master/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-master/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-master/package.mo): time 0.1023/0.1023, allocations: 15.27 MB / 30.54 MB, free: 5.707 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.0008073/0.0008073, allocations: 109 kB / 35.57 MB, free: 1.133 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.001179/0.001179, allocations: 188.5 kB / 40.69 MB, free: 4.734 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.336/1.336, allocations: 223.3 MB / 268.9 MB, free: 2.008 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1232/0.1232, allocations: 23.39 MB / 347.7 MB, free: 6.746 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004744/0.0004745, allocations: 16 kB / 420.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2472, allocations: 60.46 MB / 480.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.0503/0.2975, allocations: 59 MB / 0.5271 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02895/0.3265, allocations: 27.74 MB / 0.5541 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.3276, allocations: 31.75 kB / 0.5542 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.3288, allocations: 377.8 kB / 0.5545 GB, free: 12.95 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006214/0.335, allocations: 2.486 MB / 0.557 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008562/0.3436, allocations: 3.24 MB / 0.5601 GB, free: 7.195 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002981/0.3466, allocations: 2.604 MB / 0.5627 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.348, allocations: 0.8929 MB / 0.5635 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005436/0.3534, allocations: 2.933 MB / 0.5664 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007087/0.3606, allocations: 1.398 MB / 0.5678 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003744/0.361, allocations: 76 kB / 0.5678 GB, free: 15.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01055/0.3715, allocations: 4.483 MB / 0.5722 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007101/0.3723, allocations: 0.5064 MB / 0.5727 GB, free: 10.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009125/0.3732, allocations: 0.7212 MB / 0.5734 GB, free: 9.59 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.3846, allocations: 5.392 MB / 0.5787 GB, free: 4.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3847, allocations: 0 / 0.5787 GB, free: 4.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3847, allocations: 0 / 0.5787 GB, free: 4.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.3847, allocations: 0 / 0.5787 GB, free: 4.18 MB / 430.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.003826/0.3885, allocations: 1.869 MB / 0.5805 GB, free: 2.262 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3886, allocations: 8.031 kB / 0.5805 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001448/0.39, allocations: 357.8 kB / 0.5809 GB, free: 1.902 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.3912, allocations: 0.7359 MB / 0.5816 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.171e-05/0.3913, allocations: 85.97 kB / 0.5817 GB, free: 1.039 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.3915, allocations: 96 kB / 0.5818 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2083/0.5998, allocations: 1.834 MB / 0.5835 GB, free: 25.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.5999, allocations: 4.938 kB / 0.5835 GB, free: 25.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.6, allocations: 41.62 kB / 0.5836 GB, free: 25.34 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.882e-05/0.6001, allocations: 54.86 kB / 0.5836 GB, free: 25.33 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003762/0.6039, allocations: 2.256 MB / 0.5858 GB, free: 25.32 MB / 430.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.00818/0.6121, allocations: 6.325 MB / 0.592 GB, free: 22.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.6144, allocations: 1.293 MB / 0.5933 GB, free: 22.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009412/0.6153, allocations: 0.7052 MB / 0.594 GB, free: 22.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004568/0.6199, allocations: 3.513 MB / 0.5974 GB, free: 21.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.62, allocations: 38.88 kB / 0.5974 GB, free: 21.77 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006164/0.6206, allocations: 170.9 kB / 0.5976 GB, free: 21.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=100): time 4.678e-06/0.6206, allocations: 3 kB / 0.5976 GB, free: 21.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=100): time 0.005326/0.6259, allocations: 2.574 MB / 0.6001 GB, free: 21.4 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.626, allocations: 64.27 kB / 0.6002 GB, free: 21.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009631/0.627, allocations: 0.7559 MB / 0.6009 GB, free: 21.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.86e-05/0.6271, allocations: 39.64 kB / 0.601 GB, free: 21.17 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.6274, allocations: 0.4974 MB / 0.6014 GB, free: 20.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.6277, allocations: 348.4 kB / 0.6018 GB, free: 20.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.6279, allocations: 98.78 kB / 0.6019 GB, free: 20.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.628, allocations: 402.7 kB / 0.6023 GB, free: 20.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009385/0.629, allocations: 0.6359 MB / 0.6029 GB, free: 20.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.63, allocations: 0.9369 MB / 0.6038 GB, free: 20.03 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.6319, allocations: 1.648 MB / 0.6054 GB, free: 19.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.377e-06/0.6319, allocations: 6.812 kB / 0.6054 GB, free: 19.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00268/0.6346, allocations: 1.867 MB / 0.6072 GB, free: 19.53 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.6347, allocations: 10.56 kB / 0.6072 GB, free: 19.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.6347, allocations: 10.31 kB / 0.6072 GB, free: 19.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000723/0.6354, allocations: 194.5 kB / 0.6074 GB, free: 19.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009007/0.6363, allocations: 277.4 kB / 0.6077 GB, free: 19.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008449/0.6372, allocations: 1.252 MB / 0.6089 GB, free: 18.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000924/0.6381, allocations: 82.56 kB / 0.609 GB, free: 18.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.6383, allocations: 80.55 kB / 0.6091 GB, free: 18.45 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.0004822/0.6388, allocations: 326.3 kB / 0.6094 GB, free: 18.33 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.639, allocations: 97.7 kB / 0.6095 GB, free: 18.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003961/0.6429, allocations: 2.43 MB / 0.6119 GB, free: 18.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00236/0.6453, allocations: 1.501 MB / 0.6133 GB, free: 17.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.6454, allocations: 0 / 0.6133 GB, free: 17.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.6454, allocations: 6.609 kB / 0.6133 GB, free: 17.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004258/0.6496, allocations: 2.963 MB / 0.6162 GB, free: 17.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.6497, allocations: 0 / 0.6162 GB, free: 17.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/0.6504, allocations: 182 kB / 0.6164 GB, free: 17.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006665/0.6511, allocations: 184.1 kB / 0.6166 GB, free: 17.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.133e-05/0.6512, allocations: 41.31 kB / 0.6166 GB, free: 17.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006807/0.6519, allocations: 1.208 MB / 0.6178 GB, free: 16.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6519, allocations: 0 / 0.6178 GB, free: 16.48 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003998/0.6559, allocations: 2.633 MB / 0.6204 GB, free: 16.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007158/0.6567, allocations: 318.7 kB / 0.6207 GB, free: 16.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002674/0.6569, allocations: 24.33 kB / 0.6207 GB, free: 16.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007584/0.6577, allocations: 56.95 kB / 0.6207 GB, free: 16.06 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.6579, allocations: 73.14 kB / 0.6208 GB, free: 16.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.658, allocations: 50.92 kB / 0.6209 GB, free: 16.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007916/0.6588, allocations: 0.6149 MB / 0.6215 GB, free: 15.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6588, allocations: 0 / 0.6215 GB, free: 15.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003153/0.662, allocations: 1.235 MB / 0.6227 GB, free: 15.75 MB / 430.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 (95): * Single equations (assignments): 91 * 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.00366/0.6657, allocations: 1.871 MB / 0.6245 GB, free: 15.45 MB / 430.1 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {pH2O_upperRespiratory.state.X[1], pH2O_upperRespiratory.state.X[2], pH2O_upperRespiratory.state.X[3], pH2O_upperRespiratory.state.X[4]} = $TMP_Physiolibrary_Fluid_Examples_AirWaterSaturation_pH2O__upperRespiratory_Medium_ThermodynamicState54.X Notification: Performance of simCode: created initialization part: time 0.002795/0.6685, allocations: 1.693 MB / 0.6261 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6685, allocations: 1.438 kB / 0.6261 GB, free: 14.91 MB / 430.1 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {pH2O_upperRespiratory.state.X[1], pH2O_upperRespiratory.state.X[2], pH2O_upperRespiratory.state.X[3], pH2O_upperRespiratory.state.X[4]} = $TMP_Physiolibrary_Fluid_Examples_AirWaterSaturation_pH2O__upperRespiratory_Medium_ThermodynamicState204.X Notification: Performance of simCode: created simulation system equations: time 0.001114/0.6696, allocations: 0.8483 MB / 0.627 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.6721, allocations: 466.4 kB / 0.6274 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/0.676, allocations: 3.301 MB / 0.6306 GB, free: 10.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005594/0.6766, allocations: 1.13 MB / 0.6317 GB, free: 9.527 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001545/0.6782, allocations: 407.6 kB / 0.6321 GB, free: 9.145 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005019/0.6787, allocations: 218.4 kB / 0.6323 GB, free: 8.934 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6787, allocations: 4 kB / 0.6323 GB, free: 8.93 MB / 430.1 MB Notification: Performance of Templates: time 0.06552/0.7442, allocations: 44.91 MB / 0.6762 GB, free: 12.48 MB / 478.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 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe 2>&1)