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.1293/0.1293, allocations: 15.29 MB / 30.79 MB, free: 4.074 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.001047/0.001047, allocations: 103 kB / 35.78 MB, free: 3.27 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.001209/0.001209, allocations: 193.1 kB / 40.88 MB, free: 7.203 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.386/1.386, allocations: 222.9 MB / 268.7 MB, free: 6.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1333/0.1333, allocations: 23.36 MB / 346.4 MB, free: 0.7148 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 115.8 kB / 418.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08717/0.0892, allocations: 59.36 MB / 477.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.2288/0.318, allocations: 59.21 MB / 0.5243 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02349/0.3415, allocations: 28.06 MB / 0.5517 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008416/0.3424, allocations: 19.94 kB / 0.5517 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.3436, allocations: 436.9 kB / 0.5521 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006163/0.3498, allocations: 2.684 MB / 0.5548 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008828/0.3586, allocations: 3.604 MB / 0.5583 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001916/0.3606, allocations: 1.895 MB / 0.5601 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009897/0.3616, allocations: 1.026 MB / 0.5611 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004308/0.3659, allocations: 3.011 MB / 0.5641 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003362/0.3693, allocations: 1.417 MB / 0.5655 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.3695, allocations: 132.3 kB / 0.5656 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009734/0.3792, allocations: 4.119 MB / 0.5696 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004413/0.3797, allocations: 0.5576 MB / 0.5702 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006783/0.3804, allocations: 0.7699 MB / 0.5709 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.3909, allocations: 5.588 MB / 0.5764 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3909, allocations: 0 / 0.5764 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3909, allocations: 0 / 0.5764 GB, free: 11.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.3909, allocations: 0 / 0.5764 GB, free: 11.19 MB / 398.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.003695/0.3946, allocations: 2.147 MB / 0.5785 GB, free: 8.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3947, allocations: 8.031 kB / 0.5785 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002071/0.3949, allocations: 168.9 kB / 0.5786 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/0.3963, allocations: 347.1 kB / 0.579 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.3974, allocations: 0.7591 MB / 0.5797 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.416e-05/0.3974, allocations: 81.98 kB / 0.5798 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/0.3976, allocations: 100 kB / 0.5799 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002552/0.4002, allocations: 1.834 MB / 0.5817 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.4002, allocations: 0 / 0.5817 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.4003, allocations: 40 kB / 0.5817 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.579e-05/0.4004, allocations: 49.98 kB / 0.5817 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003154/0.4036, allocations: 2.256 MB / 0.584 GB, free: 3.23 MB / 398.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.008033/0.4116, allocations: 6.39 MB / 0.5902 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.414, allocations: 1.289 MB / 0.5915 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009488/0.4149, allocations: 0.6949 MB / 0.5921 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004893/0.4198, allocations: 3.557 MB / 0.5956 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.4199, allocations: 43.5 kB / 0.5956 GB, free: 6.809 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004584/0.4204, allocations: 114.9 kB / 0.5958 GB, free: 6.695 MB / 414.1 MB Notification: Performance of pre-optimization done (n=100): time 2.655e-06/0.4204, allocations: 3.938 kB / 0.5958 GB, free: 6.691 MB / 414.1 MB Notification: Performance of matching and sorting (n=100): time 0.005087/0.4255, allocations: 2.56 MB / 0.5983 GB, free: 4.082 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.4255, allocations: 60.41 kB / 0.5983 GB, free: 4.008 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008531/0.4264, allocations: 0.7583 MB / 0.5991 GB, free: 3.242 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.754e-05/0.4265, allocations: 37.7 kB / 0.5991 GB, free: 3.199 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.4268, allocations: 0.495 MB / 0.5996 GB, free: 2.695 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.427, allocations: 350.9 kB / 0.5999 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003591/0.4274, allocations: 254.7 kB / 0.6002 GB, free: 2.094 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4276, allocations: 398.7 kB / 0.6005 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009457/0.4285, allocations: 0.6389 MB / 0.6012 GB, free: 1.055 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.4297, allocations: 0.942 MB / 0.6021 GB, free: 15.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.4319, allocations: 1.67 MB / 0.6037 GB, free: 14.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4319, allocations: 0 / 0.6037 GB, free: 14.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002957/0.4349, allocations: 1.865 MB / 0.6055 GB, free: 12.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.4349, allocations: 8 kB / 0.6055 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4349, allocations: 16.09 kB / 0.6056 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007502/0.4357, allocations: 185.5 kB / 0.6057 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009789/0.4367, allocations: 283.6 kB / 0.606 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.4377, allocations: 1.233 MB / 0.6072 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000708/0.4385, allocations: 43.98 kB / 0.6072 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.4386, allocations: 79.95 kB / 0.6073 GB, free: 10.42 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.0004592/0.4391, allocations: 337.5 kB / 0.6076 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.4393, allocations: 90.78 kB / 0.6077 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.4436, allocations: 2.431 MB / 0.6101 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002621/0.4462, allocations: 1.507 MB / 0.6116 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4462, allocations: 0 / 0.6116 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.4463, allocations: 3.984 kB / 0.6116 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.4514, allocations: 3.124 MB / 0.6146 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.4514, allocations: 8.031 kB / 0.6146 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007846/0.4522, allocations: 183.8 kB / 0.6148 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006559/0.4528, allocations: 177.5 kB / 0.615 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.498e-05/0.4529, allocations: 31.98 kB / 0.615 GB, free: 2.414 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008807/0.4538, allocations: 1.21 MB / 0.6162 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4538, allocations: 0 / 0.6162 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004221/0.458, allocations: 2.628 MB / 0.6188 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.4585, allocations: 295.7 kB / 0.619 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.4587, allocations: 23.94 kB / 0.6191 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.4593, allocations: 23.98 kB / 0.6191 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.4594, allocations: 80.83 kB / 0.6192 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.043e-05/0.4595, allocations: 47.98 kB / 0.6192 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007709/0.4603, allocations: 0.6122 MB / 0.6198 GB, free: 13.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4603, allocations: 0 / 0.6198 GB, free: 13.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002882/0.4632, allocations: 1.252 MB / 0.621 GB, free: 12.15 MB / 446.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 (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.008315/0.4715, allocations: 4.991 MB / 0.6259 GB, free: 7.141 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003651/0.4752, allocations: 1.98 MB / 0.6278 GB, free: 5.152 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4752, allocations: 448 / 0.6278 GB, free: 5.152 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.4764, allocations: 0.8272 MB / 0.6286 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.4786, allocations: 482.6 kB / 0.6291 GB, free: 3.871 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.495, allocations: 12.06 MB / 0.6409 GB, free: 7.344 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00074/0.4957, allocations: 1.137 MB / 0.642 GB, free: 6.172 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001507/0.4972, allocations: 417 kB / 0.6424 GB, free: 5.777 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008179/0.4981, allocations: 0.557 MB / 0.6429 GB, free: 5.223 MB / 462.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4981, allocations: 0 / 0.6429 GB, free: 5.223 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0902/0.5883, allocations: 56.85 MB / 0.6985 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.87, allocations: 11 kB / 0.6985 GB, free: 12.64 MB / 0.5137 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)