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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.AirWaterSaturation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_AirWaterSaturation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.AirWaterSaturation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_AirWaterSaturation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09682/0.09682, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.001246/0.001246, allocations: 110 kB / 35.92 MB, free: 3.176 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.001476/0.001476, allocations: 193.1 kB / 41.02 MB, free: 7.109 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.526/1.526, allocations: 222.9 MB / 268.9 MB, free: 6.875 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1497/0.1497, allocations: 23.35 MB / 346.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003187/0.003187, allocations: 119.8 kB / 479.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.342, allocations: 59.36 MB / 0.5263 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.067/0.409, allocations: 59.35 MB / 0.5842 GB, free: 8.516 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0332/0.4422, allocations: 28.12 MB / 0.6117 GB, free: 12.28 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008918/0.4431, allocations: 15.94 kB / 0.6117 GB, free: 12.26 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.4444, allocations: 437.1 kB / 0.6121 GB, free: 11.83 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00708/0.4515, allocations: 2.719 MB / 0.6148 GB, free: 9.098 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009461/0.461, allocations: 3.631 MB / 0.6183 GB, free: 5.445 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002847/0.4638, allocations: 1.883 MB / 0.6202 GB, free: 3.559 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.4651, allocations: 0.806 MB / 0.621 GB, free: 2.723 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006043/0.4711, allocations: 3.026 MB / 0.6239 GB, free: 15.69 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004883/0.476, allocations: 1.369 MB / 0.6252 GB, free: 14.41 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003229/0.4763, allocations: 124 kB / 0.6254 GB, free: 14.29 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01111/0.4874, allocations: 4.02 MB / 0.6293 GB, free: 10.27 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007166/0.4882, allocations: 0.5415 MB / 0.6298 GB, free: 9.723 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.4892, allocations: 0.7469 MB / 0.6305 GB, free: 8.973 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01541/0.5046, allocations: 5.535 MB / 0.6359 GB, free: 3.418 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.5046, allocations: 0 / 0.6359 GB, free: 3.418 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5046, allocations: 0 / 0.6359 GB, free: 3.418 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.5046, allocations: 0 / 0.6359 GB, free: 3.418 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.00436/0.509, allocations: 2.169 MB / 0.6381 GB, free: 1.188 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5091, allocations: 16.02 kB / 0.6381 GB, free: 1.172 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.5093, allocations: 156.9 kB / 0.6382 GB, free: 1.008 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001177/0.5104, allocations: 294.9 kB / 0.6385 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.5117, allocations: 0.7832 MB / 0.6393 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-05/0.5118, allocations: 78 kB / 0.6394 GB, free: 15.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001827/0.512, allocations: 99.95 kB / 0.6394 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002779/0.5148, allocations: 1.803 MB / 0.6412 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.5148, allocations: 4 kB / 0.6412 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.5149, allocations: 40 kB / 0.6413 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002167/0.5151, allocations: 77.94 kB / 0.6413 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003622/0.5188, allocations: 2.256 MB / 0.6435 GB, free: 11.46 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.009282/0.528, allocations: 6.365 MB / 0.6497 GB, free: 4.863 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.5307, allocations: 1.183 MB / 0.6509 GB, free: 3.668 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.5317, allocations: 0.6283 MB / 0.6515 GB, free: 3.035 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005741/0.5375, allocations: 3.565 MB / 0.655 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.5375, allocations: 47.5 kB / 0.655 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005215/0.538, allocations: 123.2 kB / 0.6552 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=100): time 2.675e-06/0.538, allocations: 0 / 0.6552 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100): time 0.005443/0.5435, allocations: 2.553 MB / 0.6577 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.5435, allocations: 68.34 kB / 0.6577 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.5447, allocations: 0.7622 MB / 0.6585 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.693e-05/0.5448, allocations: 41.7 kB / 0.6585 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004233/0.5452, allocations: 0.5004 MB / 0.659 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/0.5455, allocations: 364.8 kB / 0.6593 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004237/0.546, allocations: 258.8 kB / 0.6596 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0003159/0.5463, allocations: 398.7 kB / 0.66 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.5473, allocations: 0.6389 MB / 0.6606 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.5487, allocations: 0.9459 MB / 0.6615 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.5513, allocations: 1.65 MB / 0.6631 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.5513, allocations: 4 kB / 0.6631 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003504/0.5548, allocations: 1.877 MB / 0.665 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.5548, allocations: 11.94 kB / 0.665 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.5548, allocations: 8 kB / 0.665 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.5563, allocations: 297.7 kB / 0.6653 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.5574, allocations: 283.6 kB / 0.6655 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.5587, allocations: 1.241 MB / 0.6667 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007888/0.5595, allocations: 36.14 kB / 0.6668 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.5597, allocations: 95.95 kB / 0.6669 GB, free: 2.699 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.000587/0.5603, allocations: 317.4 kB / 0.6672 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002168/0.5605, allocations: 95.39 kB / 0.6673 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004715/0.5652, allocations: 2.426 MB / 0.6696 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002779/0.568, allocations: 1.492 MB / 0.6711 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.568, allocations: 3.938 kB / 0.6711 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.568, allocations: 7.969 kB / 0.6711 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/0.5737, allocations: 3.124 MB / 0.6742 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5738, allocations: 0 / 0.6742 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/0.5746, allocations: 183.8 kB / 0.6743 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.5759, allocations: 289.4 kB / 0.6746 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.631e-05/0.576, allocations: 35.98 kB / 0.6746 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.5771, allocations: 1.202 MB / 0.6758 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.5771, allocations: 3.938 kB / 0.6758 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004798/0.5819, allocations: 2.635 MB / 0.6784 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007691/0.5827, allocations: 300.3 kB / 0.6787 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.5829, allocations: 23.94 kB / 0.6787 GB, free: 6.355 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000544/0.5834, allocations: 28.17 kB / 0.6787 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.5836, allocations: 80.84 kB / 0.6788 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.5837, allocations: 47.98 kB / 0.6788 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00101/0.5847, allocations: 0.6161 MB / 0.6795 GB, free: 5.586 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.5847, allocations: 0 / 0.6795 GB, free: 5.586 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003566/0.5883, allocations: 1.273 MB / 0.6807 GB, free: 4.309 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.01005/0.5984, allocations: 5.003 MB / 0.6856 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004939/0.6033, allocations: 1.578 MB / 0.6871 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.6033, allocations: 4.25 kB / 0.6871 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.6055, allocations: 0.7452 MB / 0.6879 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/0.6092, allocations: 484 kB / 0.6883 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0288/0.638, allocations: 11.72 MB / 0.6998 GB, free: 380 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.6393, allocations: 1.137 MB / 0.7009 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002239/0.6415, allocations: 416.7 kB / 0.7013 GB, free: 14.81 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/0.643, allocations: 0.5626 MB / 0.7018 GB, free: 14.26 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.643, allocations: 0 / 0.7018 GB, free: 14.26 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3418/0.9848, allocations: 57.61 MB / 0.7581 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.53/15.52, allocations: 1.406 kB / 0.7581 GB, free: 173.1 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_AirWaterSaturation_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_AirWaterSaturation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe 2>&1)