Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.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.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",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.1125/0.1125, allocations: 15.28 MB / 30.92 MB, free: 4.156 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.001083/0.001083, allocations: 99.53 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.001517/0.001517, allocations: 195.2 kB / 41.02 MB, free: 7.117 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.479/1.479, allocations: 222.9 MB / 268.9 MB, free: 6.809 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1483/0.1483, allocations: 23.35 MB / 346.6 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 115.8 kB / 478.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.316, allocations: 59.35 MB / 0.5251 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03563/0.3517, allocations: 34.9 MB / 0.5592 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01971/0.3714, allocations: 17.71 MB / 0.5765 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000459/0.3719, allocations: 4.938 kB / 0.5765 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006185/0.3726, allocations: 115.1 kB / 0.5766 GB, free: 15.28 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007605/0.3802, allocations: 1.807 MB / 0.5784 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004253/0.3845, allocations: 1.297 MB / 0.5796 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009043/0.3855, allocations: 0.5563 MB / 0.5802 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009069/0.3864, allocations: 0.7254 MB / 0.5809 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002856/0.3893, allocations: 1.219 MB / 0.5821 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.3903, allocations: 0.569 MB / 0.5826 GB, free: 9.457 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.3905, allocations: 64 kB / 0.5827 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006545/0.3971, allocations: 2.144 MB / 0.5848 GB, free: 7.246 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.3974, allocations: 243.4 kB / 0.585 GB, free: 7.008 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.398, allocations: 303 kB / 0.5853 GB, free: 6.711 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007884/0.4059, allocations: 2.752 MB / 0.588 GB, free: 3.949 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.4059, allocations: 0 / 0.588 GB, free: 3.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4059, allocations: 0 / 0.588 GB, free: 3.949 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.929e-05/0.406, allocations: 0 / 0.588 GB, free: 3.949 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.002908/0.4089, allocations: 1.073 MB / 0.589 GB, free: 2.824 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4089, allocations: 11.97 kB / 0.5891 GB, free: 2.812 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.4091, allocations: 66.47 kB / 0.5891 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.4093, allocations: 39.77 kB / 0.5892 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007547/0.41, allocations: 418.1 kB / 0.5896 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.4101, allocations: 20.5 kB / 0.5896 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.888e-05/0.4101, allocations: 24 kB / 0.5896 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.4112, allocations: 0.6019 MB / 0.5902 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.4112, allocations: 0 / 0.5902 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.4113, allocations: 12 kB / 0.5902 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.4113, allocations: 4 kB / 0.5902 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.4128, allocations: 0.8765 MB / 0.5911 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.4156, allocations: 1.449 MB / 0.5925 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000668/0.4163, allocations: 346.5 kB / 0.5928 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.4168, allocations: 292.7 kB / 0.5931 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002369/0.417, allocations: 109.6 kB / 0.5932 GB, free: 14.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.4171, allocations: 38.55 kB / 0.5932 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008287/0.4179, allocations: 171.7 kB / 0.5934 GB, free: 14.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 3.236e-06/0.4179, allocations: 0 / 0.5934 GB, free: 14.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.009225/0.4271, allocations: 2.126 MB / 0.5955 GB, free: 12.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.4273, allocations: 59.34 kB / 0.5955 GB, free: 11.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005828/0.4278, allocations: 368.5 kB / 0.5959 GB, free: 11.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.921e-05/0.4279, allocations: 29.7 kB / 0.5959 GB, free: 11.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.4281, allocations: 164.7 kB / 0.5961 GB, free: 11.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.4283, allocations: 111 kB / 0.5962 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/0.4285, allocations: 89.61 kB / 0.5962 GB, free: 11.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.4287, allocations: 350.7 kB / 0.5966 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/0.4291, allocations: 231.9 kB / 0.5968 GB, free: 10.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.4296, allocations: 228.9 kB / 0.597 GB, free: 10.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009444/0.4305, allocations: 0.5128 MB / 0.5975 GB, free: 9.891 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4305, allocations: 0 / 0.5975 GB, free: 9.891 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002182/0.4327, allocations: 0.9508 MB / 0.5985 GB, free: 8.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4328, allocations: 8 kB / 0.5985 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4328, allocations: 0 / 0.5985 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04798/0.4808, allocations: 4.175 MB / 0.6025 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.87e-05/0.4808, allocations: 0 / 0.6025 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003221/0.4841, allocations: 1.524 MB / 0.604 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.4844, allocations: 4 kB / 0.604 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.449e-05/0.4845, allocations: 31.95 kB / 0.6041 GB, free: 3.152 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(13,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0002383/0.4848, allocations: 157.8 kB / 0.6042 GB, free: 2.988 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.4849, allocations: 35.77 kB / 0.6042 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/0.4869, allocations: 1.092 MB / 0.6053 GB, free: 1.848 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.487, allocations: 4 kB / 0.6053 GB, free: 1.844 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.487, allocations: 3.938 kB / 0.6053 GB, free: 1.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.487, allocations: 3.984 kB / 0.6053 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002566/0.4895, allocations: 1.752 MB / 0.607 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.4896, allocations: 4 kB / 0.607 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.344e-05/0.4896, allocations: 7.938 kB / 0.607 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/0.4917, allocations: 0.7847 MB / 0.6078 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.4917, allocations: 8 kB / 0.6078 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.4941, allocations: 1.538 MB / 0.6093 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.4941, allocations: 7.938 kB / 0.6093 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.4955, allocations: 0.9926 MB / 0.6103 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.4957, allocations: 160.8 kB / 0.6104 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.597e-05/0.4958, allocations: 8 kB / 0.6105 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.4961, allocations: 8 kB / 0.6105 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.4962, allocations: 19.91 kB / 0.6105 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.4962, allocations: 19.94 kB / 0.6105 GB, free: 12.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002935/0.4965, allocations: 271 kB / 0.6108 GB, free: 12.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4965, allocations: 0 / 0.6108 GB, free: 12.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001526/0.4981, allocations: 0.5914 MB / 0.6113 GB, free: 11.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(13,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003975/0.5021, allocations: 2.524 MB / 0.6138 GB, free: 8.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002281/0.5043, allocations: 0.7462 MB / 0.6145 GB, free: 8.238 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5044, allocations: 0 / 0.6145 GB, free: 8.238 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.5055, allocations: 476.6 kB / 0.615 GB, free: 7.773 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.5068, allocations: 292.1 kB / 0.6153 GB, free: 7.496 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008185/0.515, allocations: 5.3 MB / 0.6204 GB, free: 2.102 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.5154, allocations: 0.8079 MB / 0.6212 GB, free: 1.266 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001851/0.5156, allocations: 43.31 kB / 0.6213 GB, free: 1.223 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.5157, allocations: 103.4 kB / 0.6214 GB, free: 1.121 MB / 462.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5157, allocations: 0 / 0.6214 GB, free: 1.121 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06001/0.5757, allocations: 30.59 MB / 0.6512 GB, free: 2.734 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.86, allocations: 10.44 kB / 0.6513 GB, free: 2.727 MB / 494.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)