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.1113/0.1113, allocations: 15.28 MB / 30.91 MB, free: 4.129 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.001015/0.001015, allocations: 113.3 kB / 35.92 MB, free: 3.184 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.001184/0.001184, allocations: 193.1 kB / 41.02 MB, free: 7.125 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.366/1.366, allocations: 222.9 MB / 268.9 MB, free: 6.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1336/0.1336, allocations: 23.35 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 111.8 kB / 479.5 MB, free: 2.305 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1042, allocations: 59.36 MB / 0.5263 GB, free: 6.883 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.2573/0.3616, allocations: 59.21 MB / 0.5841 GB, free: 4.211 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0263/0.3879, allocations: 28.06 MB / 0.6115 GB, free: 15.79 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.389, allocations: 15.53 kB / 0.6115 GB, free: 15.78 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.3907, allocations: 441.2 kB / 0.6119 GB, free: 15.52 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007477/0.3983, allocations: 2.677 MB / 0.6145 GB, free: 13.98 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01035/0.4087, allocations: 3.609 MB / 0.6181 GB, free: 11.93 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003522/0.4122, allocations: 1.904 MB / 0.6199 GB, free: 11.06 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002346/0.4146, allocations: 1.024 MB / 0.6209 GB, free: 10.68 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007856/0.4225, allocations: 3.015 MB / 0.6239 GB, free: 9.5 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004929/0.4275, allocations: 1.365 MB / 0.6252 GB, free: 9.059 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007917/0.4283, allocations: 127.8 kB / 0.6253 GB, free: 9.059 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01355/0.4418, allocations: 4.011 MB / 0.6292 GB, free: 7.82 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.443, allocations: 0.5422 MB / 0.6298 GB, free: 7.598 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002141/0.4451, allocations: 0.7455 MB / 0.6305 GB, free: 7.191 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.4616, allocations: 5.517 MB / 0.6359 GB, free: 5.027 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4616, allocations: 2.359 kB / 0.6359 GB, free: 5.027 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4616, allocations: 0 / 0.6359 GB, free: 5.027 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.00011/0.4618, allocations: 0 / 0.6359 GB, free: 5.027 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.009186/0.471, allocations: 2.105 MB / 0.6379 GB, free: 3.742 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.471, allocations: 14.27 kB / 0.6379 GB, free: 3.738 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006651/0.4717, allocations: 165.8 kB / 0.6381 GB, free: 3.629 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001806/0.4735, allocations: 291.5 kB / 0.6384 GB, free: 3.535 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/0.4757, allocations: 0.7698 MB / 0.6391 GB, free: 3.059 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.725e-05/0.4758, allocations: 75.66 kB / 0.6392 GB, free: 3.027 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003802/0.4762, allocations: 95.72 kB / 0.6393 GB, free: 2.996 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/0.4798, allocations: 1.813 MB / 0.6411 GB, free: 2.219 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.4799, allocations: 1.375 kB / 0.6411 GB, free: 2.219 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.48, allocations: 38.5 kB / 0.6411 GB, free: 2.191 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002454/0.4803, allocations: 85.83 kB / 0.6412 GB, free: 2.176 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003735/0.484, allocations: 2.247 MB / 0.6434 GB, free: 1.312 MB / 478.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.01051/0.4946, allocations: 6.36 MB / 0.6496 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002437/0.497, allocations: 1.282 MB / 0.6508 GB, free: 10.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.498, allocations: 0.6987 MB / 0.6515 GB, free: 9.699 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005742/0.5038, allocations: 3.558 MB / 0.655 GB, free: 5.965 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.5039, allocations: 47.55 kB / 0.655 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006598/0.5045, allocations: 118.9 kB / 0.6552 GB, free: 5.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=100): time 3.948e-06/0.5045, allocations: 0 / 0.6552 GB, free: 5.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=100): time 0.005355/0.5099, allocations: 2.553 MB / 0.6577 GB, free: 3.191 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.51, allocations: 64.34 kB / 0.6577 GB, free: 3.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.5111, allocations: 0.7543 MB / 0.6585 GB, free: 2.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.471e-05/0.5112, allocations: 41.7 kB / 0.6585 GB, free: 2.309 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.5115, allocations: 0.4989 MB / 0.659 GB, free: 1.801 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003002/0.5119, allocations: 342.9 kB / 0.6593 GB, free: 1.461 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/0.5123, allocations: 254.8 kB / 0.6595 GB, free: 1.207 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.5125, allocations: 402.7 kB / 0.6599 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.5135, allocations: 0.635 MB / 0.6606 GB, free: 172 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.5148, allocations: 0.9459 MB / 0.6615 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002492/0.5173, allocations: 1.662 MB / 0.6631 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.5173, allocations: 4 kB / 0.6631 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003475/0.5208, allocations: 1.872 MB / 0.6649 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.5209, allocations: 11.94 kB / 0.6649 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/0.5209, allocations: 8 kB / 0.665 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.5224, allocations: 301.1 kB / 0.6652 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.5235, allocations: 279.6 kB / 0.6655 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.5248, allocations: 1.241 MB / 0.6667 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.5258, allocations: 39.98 kB / 0.6668 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/0.526, allocations: 82.08 kB / 0.6668 GB, free: 9.418 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.0006053/0.5266, allocations: 321.4 kB / 0.6671 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000265/0.5269, allocations: 94.81 kB / 0.6672 GB, free: 9 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004446/0.5313, allocations: 2.435 MB / 0.6696 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002701/0.5341, allocations: 1.495 MB / 0.6711 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5341, allocations: 3.938 kB / 0.6711 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.5341, allocations: 3.984 kB / 0.6711 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005824/0.5399, allocations: 3.12 MB / 0.6741 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.54, allocations: 0 / 0.6741 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008039/0.5408, allocations: 183.8 kB / 0.6743 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.5421, allocations: 293.4 kB / 0.6746 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5423, allocations: 35.98 kB / 0.6746 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009399/0.5432, allocations: 1.207 MB / 0.6758 GB, free: 76 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.5432, allocations: 4.875 kB / 0.6758 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004432/0.5477, allocations: 2.623 MB / 0.6784 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008802/0.5486, allocations: 299.7 kB / 0.6786 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003882/0.549, allocations: 23.94 kB / 0.6787 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007017/0.5497, allocations: 31.98 kB / 0.6787 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.5499, allocations: 68.91 kB / 0.6788 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.55, allocations: 53.66 kB / 0.6788 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009098/0.5509, allocations: 0.6122 MB / 0.6794 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.21e-07/0.5509, allocations: 3.938 kB / 0.6794 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003729/0.5546, allocations: 1.248 MB / 0.6806 GB, free: 11.07 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.009243/0.5639, allocations: 4.985 MB / 0.6855 GB, free: 6.102 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002941/0.5669, allocations: 1.675 MB / 0.6871 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.5669, allocations: 0 / 0.6871 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.5681, allocations: 0.8116 MB / 0.6879 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/0.5707, allocations: 478.2 kB / 0.6884 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01869/0.5894, allocations: 11.66 MB / 0.6998 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.5904, allocations: 1.133 MB / 0.7009 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001438/0.5919, allocations: 416.8 kB / 0.7013 GB, free: 5.57 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009411/0.5929, allocations: 0.5482 MB / 0.7018 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of SimCode: time 7.82e-07/0.5929, allocations: 0 / 0.7018 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.318/0.9109, allocations: 57.49 MB / 0.758 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.87, allocations: 5.219 kB / 0.758 GB, free: 170.3 MB / 0.5762 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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 Physiolibrary_Physiolibrary_Fluid_Examples_AirWaterSaturation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe 2>&1)