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.1043/0.1043, 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.001195/0.001195, allocations: 107.9 kB / 35.92 MB, free: 3.199 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: 187.4 kB / 41.01 MB, free: 7.145 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.428/1.428, allocations: 222.9 MB / 268.9 MB, free: 6.816 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1407/0.1407, allocations: 23.36 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 111.8 kB / 479.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3365, 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.06225/0.3987, allocations: 59.22 MB / 0.5841 GB, free: 8.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02982/0.4286, allocations: 28.06 MB / 0.6115 GB, free: 12.5 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009947/0.4296, allocations: 15.94 kB / 0.6115 GB, free: 12.49 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.431, allocations: 433.1 kB / 0.6119 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007295/0.4383, allocations: 2.687 MB / 0.6145 GB, free: 9.359 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009501/0.4479, allocations: 3.604 MB / 0.6181 GB, free: 5.734 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002556/0.4505, allocations: 1.913 MB / 0.6199 GB, free: 3.82 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001336/0.4518, allocations: 1.025 MB / 0.6209 GB, free: 2.766 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005701/0.4575, allocations: 3.003 MB / 0.6239 GB, free: 15.75 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004203/0.4618, allocations: 1.37 MB / 0.6252 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.4621, allocations: 128 kB / 0.6253 GB, free: 14.35 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/0.4724, allocations: 4.02 MB / 0.6292 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007261/0.4732, allocations: 0.5416 MB / 0.6298 GB, free: 9.781 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.4744, allocations: 0.743 MB / 0.6305 GB, free: 9.035 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.4876, allocations: 5.506 MB / 0.6359 GB, free: 3.512 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4877, allocations: 4 kB / 0.6359 GB, free: 3.508 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.4877, allocations: 0 / 0.6359 GB, free: 3.508 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.28e-05/0.4878, allocations: 7.938 kB / 0.6359 GB, free: 3.5 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.005013/0.4928, allocations: 2.096 MB / 0.6379 GB, free: 1.348 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.4928, allocations: 16.03 kB / 0.638 GB, free: 1.332 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002955/0.4931, allocations: 164.9 kB / 0.6381 GB, free: 1.16 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.4945, allocations: 286.2 kB / 0.6384 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.4962, allocations: 0.7709 MB / 0.6391 GB, free: 64 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-05/0.4963, allocations: 78.06 kB / 0.6392 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002224/0.4965, allocations: 96 kB / 0.6393 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002971/0.4995, allocations: 1.807 MB / 0.6411 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.4996, allocations: 3.938 kB / 0.6411 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/0.4997, allocations: 43.91 kB / 0.6411 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002442/0.5, allocations: 81.94 kB / 0.6412 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003529/0.5035, allocations: 2.249 MB / 0.6434 GB, free: 11.63 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.01064/0.5142, allocations: 6.349 MB / 0.6496 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002808/0.517, allocations: 1.289 MB / 0.6508 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.5181, allocations: 0.6949 MB / 0.6515 GB, free: 3.047 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005813/0.5239, allocations: 3.565 MB / 0.655 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.524, allocations: 39.56 kB / 0.655 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005823/0.5246, allocations: 114.9 kB / 0.6552 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=100): time 3.927e-06/0.5246, allocations: 0 / 0.6552 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100): time 0.005454/0.5301, allocations: 2.549 MB / 0.6576 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.5301, allocations: 64.34 kB / 0.6577 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.5312, allocations: 0.7698 MB / 0.6585 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.312e-05/0.5313, allocations: 37.7 kB / 0.6585 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003591/0.5316, allocations: 0.4989 MB / 0.659 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.5319, allocations: 339 kB / 0.6593 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004131/0.5324, allocations: 258.7 kB / 0.6595 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001927/0.5326, allocations: 406.7 kB / 0.6599 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.5336, allocations: 0.635 MB / 0.6606 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.5349, allocations: 0.9381 MB / 0.6615 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002394/0.5373, allocations: 1.662 MB / 0.6631 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.5373, allocations: 4 kB / 0.6631 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003234/0.5405, allocations: 1.868 MB / 0.6649 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.5406, allocations: 16.66 kB / 0.6649 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.5406, allocations: 12 kB / 0.665 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.5421, allocations: 297.4 kB / 0.6652 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.5432, allocations: 283.6 kB / 0.6655 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.5444, allocations: 1.245 MB / 0.6667 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007986/0.5452, allocations: 39.98 kB / 0.6668 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.5454, allocations: 87.94 kB / 0.6668 GB, free: 2.746 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.0007066/0.5461, allocations: 321.6 kB / 0.6671 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003332/0.5464, allocations: 90.88 kB / 0.6672 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004572/0.551, allocations: 2.427 MB / 0.6696 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002682/0.5537, allocations: 1.496 MB / 0.6711 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.5538, allocations: 3.938 kB / 0.6711 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.5538, allocations: 3.984 kB / 0.6711 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005858/0.5596, allocations: 3.12 MB / 0.6741 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.5597, allocations: 4 kB / 0.6741 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007989/0.5605, allocations: 187.7 kB / 0.6743 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.5618, allocations: 289.4 kB / 0.6746 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.5619, allocations: 43.97 kB / 0.6746 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009282/0.5629, allocations: 1.198 MB / 0.6758 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5629, allocations: 3.938 kB / 0.6758 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/0.5673, allocations: 2.623 MB / 0.6784 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007535/0.5681, allocations: 307.7 kB / 0.6787 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.5684, allocations: 24 kB / 0.6787 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.569, allocations: 23.98 kB / 0.6787 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.5692, allocations: 76.91 kB / 0.6788 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5693, allocations: 43.98 kB / 0.6788 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009042/0.5702, allocations: 0.6161 MB / 0.6794 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5702, allocations: 0 / 0.6794 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003353/0.5736, allocations: 1.248 MB / 0.6806 GB, free: 4.391 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.009276/0.5829, allocations: 4.993 MB / 0.6855 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003151/0.5861, allocations: 1.655 MB / 0.6871 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.5861, allocations: 0 / 0.6871 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001347/0.5875, allocations: 0.8245 MB / 0.6879 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.59, allocations: 488.5 kB / 0.6884 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/0.6098, allocations: 11.65 MB / 0.6998 GB, free: 400 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009629/0.6108, allocations: 1.133 MB / 0.7009 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001699/0.6126, allocations: 409.1 kB / 0.7013 GB, free: 14.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.6137, allocations: 0.5563 MB / 0.7018 GB, free: 14.29 MB / 0.545 GB Notification: Performance of SimCode: time 1.051e-06/0.6137, allocations: 0 / 0.7018 GB, free: 14.29 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3287/0.9424, allocations: 57.03 MB / 0.7575 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.99, allocations: 7.984 kB / 0.7575 GB, free: 174.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)