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.1136/0.1136, allocations: 15.28 MB / 30.92 MB, free: 4.125 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.001284/0.001284, allocations: 111.6 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.001382/0.001381, 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.442/1.442, allocations: 222.9 MB / 268.9 MB, free: 6.836 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1421/0.1421, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002233/0.002233, allocations: 112 kB / 479.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3895, allocations: 59.36 MB / 0.5263 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.06377/0.4533, allocations: 59.22 MB / 0.5841 GB, free: 8.539 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0275/0.4808, allocations: 28.06 MB / 0.6115 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.4819, allocations: 23.81 kB / 0.6115 GB, free: 12.34 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.4834, allocations: 436.7 kB / 0.6119 GB, free: 11.91 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.4909, allocations: 2.718 MB / 0.6146 GB, free: 9.176 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01128/0.5022, allocations: 3.631 MB / 0.6181 GB, free: 5.523 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003354/0.5056, allocations: 1.902 MB / 0.62 GB, free: 3.617 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002082/0.5077, allocations: 1.028 MB / 0.621 GB, free: 2.559 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006761/0.5145, allocations: 3.018 MB / 0.6239 GB, free: 15.53 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004458/0.519, allocations: 1.369 MB / 0.6253 GB, free: 14.25 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004127/0.5194, allocations: 128 kB / 0.6254 GB, free: 14.13 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0123/0.5317, allocations: 4.02 MB / 0.6293 GB, free: 10.1 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008337/0.5326, allocations: 0.5261 MB / 0.6298 GB, free: 9.574 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001143/0.5338, allocations: 0.7509 MB / 0.6306 GB, free: 8.82 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.5467, allocations: 5.539 MB / 0.636 GB, free: 3.262 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5467, allocations: 0 / 0.636 GB, free: 3.262 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.5467, allocations: 0 / 0.636 GB, free: 3.262 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.5468, allocations: 3.938 kB / 0.636 GB, free: 3.258 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.004105/0.5509, allocations: 2.157 MB / 0.6381 GB, free: 1.039 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.5509, allocations: 8.031 kB / 0.6381 GB, free: 1.031 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002003/0.5511, allocations: 164.9 kB / 0.6383 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/0.5523, allocations: 294.9 kB / 0.6385 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.5537, allocations: 0.7715 MB / 0.6393 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.5538, allocations: 85.89 kB / 0.6394 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.554, allocations: 99.95 kB / 0.6395 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.5566, allocations: 1.811 MB / 0.6412 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.357e-05/0.5567, allocations: 4 kB / 0.6412 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.5568, allocations: 39.98 kB / 0.6413 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002279/0.5571, allocations: 89.88 kB / 0.6414 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003184/0.5602, allocations: 2.241 MB / 0.6436 GB, free: 11.31 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.008688/0.5689, allocations: 6.354 MB / 0.6498 GB, free: 4.727 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.5713, allocations: 1.289 MB / 0.651 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009555/0.5723, allocations: 0.6987 MB / 0.6517 GB, free: 2.719 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005182/0.5775, allocations: 3.562 MB / 0.6552 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.5775, allocations: 47.55 kB / 0.6552 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005099/0.5781, allocations: 115.2 kB / 0.6553 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=100): time 3.827e-06/0.5781, allocations: 0 / 0.6553 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100): time 0.005172/0.5833, allocations: 2.561 MB / 0.6578 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.5833, allocations: 64.34 kB / 0.6579 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009015/0.5842, allocations: 0.7583 MB / 0.6586 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.982e-05/0.5843, allocations: 41.7 kB / 0.6587 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/0.5846, allocations: 0.5043 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/0.5849, allocations: 364.8 kB / 0.6595 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.5853, allocations: 258.8 kB / 0.6598 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.5855, allocations: 402.7 kB / 0.6601 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009605/0.5865, allocations: 0.6428 MB / 0.6608 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.5876, allocations: 0.9381 MB / 0.6617 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/0.5899, allocations: 1.658 MB / 0.6633 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.5899, allocations: 4 kB / 0.6633 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003109/0.593, allocations: 1.88 MB / 0.6652 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.5931, allocations: 11.94 kB / 0.6652 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.5931, allocations: 8 kB / 0.6652 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.5945, allocations: 313.9 kB / 0.6655 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009872/0.5955, allocations: 279.6 kB / 0.6657 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.5966, allocations: 1.241 MB / 0.6669 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007936/0.5974, allocations: 35.98 kB / 0.667 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.5976, allocations: 83.97 kB / 0.6671 GB, free: 2.379 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.0005145/0.5981, allocations: 325.4 kB / 0.6674 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.5983, allocations: 95.39 kB / 0.6675 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004239/0.6026, allocations: 2.427 MB / 0.6698 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002587/0.6052, allocations: 1.488 MB / 0.6713 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.6052, allocations: 3.938 kB / 0.6713 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.6052, allocations: 8.031 kB / 0.6713 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005364/0.6106, allocations: 3.132 MB / 0.6744 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.6106, allocations: 0 / 0.6744 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007797/0.6114, allocations: 183.8 kB / 0.6745 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.6127, allocations: 293.4 kB / 0.6748 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.442e-05/0.6128, allocations: 47.86 kB / 0.6749 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008657/0.6137, allocations: 1.195 MB / 0.676 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.6137, allocations: 7.969 kB / 0.676 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.6179, allocations: 2.627 MB / 0.6786 GB, free: 6.359 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.6186, allocations: 304.3 kB / 0.6789 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/0.6189, allocations: 31.95 kB / 0.6789 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.6196, allocations: 23.98 kB / 0.6789 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.6197, allocations: 68.91 kB / 0.679 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6198, allocations: 51.97 kB / 0.6791 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008747/0.6207, allocations: 0.6122 MB / 0.6797 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6207, allocations: 0 / 0.6797 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003211/0.6239, allocations: 1.273 MB / 0.6809 GB, free: 3.98 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.008768/0.6327, allocations: 5.014 MB / 0.6858 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002867/0.6356, allocations: 1.663 MB / 0.6874 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6356, allocations: 0 / 0.6874 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.6368, allocations: 0.8232 MB / 0.6882 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.6394, allocations: 493.7 kB / 0.6887 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01776/0.6572, allocations: 11.72 MB / 0.7001 GB, free: 15.87 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008095/0.658, allocations: 1.129 MB / 0.7012 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001303/0.6593, allocations: 411.8 kB / 0.7016 GB, free: 14.32 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008782/0.6602, allocations: 0.5678 MB / 0.7022 GB, free: 13.76 MB / 0.545 GB Notification: Performance of SimCode: time 1.343e-06/0.6602, allocations: 0 / 0.7022 GB, free: 13.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3294/0.9897, allocations: 57.48 MB / 0.7583 GB, free: 173.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/15.12, allocations: 3.938 kB / 0.7583 GB, free: 173.2 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 & 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)