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.09673/0.09673, allocations: 15.28 MB / 30.91 MB, free: 4.141 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.001075/0.001075, allocations: 109.4 kB / 35.91 MB, free: 3.188 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.001365/0.001365, 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.382/1.382, allocations: 222.9 MB / 268.9 MB, free: 6.848 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1263/0.1263, allocations: 23.35 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003097/0.003097, allocations: 108 kB / 478.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3327, allocations: 59.36 MB / 0.5251 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03478/0.3675, allocations: 34.89 MB / 0.5592 GB, free: 13.76 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.3851, allocations: 17.71 MB / 0.5765 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003934/0.3855, allocations: 7.781 kB / 0.5765 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004836/0.3861, allocations: 107.4 kB / 0.5766 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005833/0.3919, allocations: 1.808 MB / 0.5784 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003705/0.3956, allocations: 1.301 MB / 0.5796 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008858/0.3966, allocations: 0.564 MB / 0.5802 GB, free: 11.97 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007921/0.3974, allocations: 0.7177 MB / 0.5809 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002649/0.4, allocations: 1.223 MB / 0.5821 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007392/0.4008, allocations: 0.569 MB / 0.5826 GB, free: 9.457 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.768e-05/0.4009, allocations: 68 kB / 0.5827 GB, free: 9.391 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006378/0.4073, allocations: 2.14 MB / 0.5848 GB, free: 7.246 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003097/0.4076, allocations: 247.4 kB / 0.585 GB, free: 7.004 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.408, allocations: 303 kB / 0.5853 GB, free: 6.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008287/0.4163, allocations: 2.744 MB / 0.588 GB, free: 3.953 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4164, allocations: 0 / 0.588 GB, free: 3.953 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4164, allocations: 0 / 0.588 GB, free: 3.953 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.4164, allocations: 0 / 0.588 GB, free: 3.953 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.002275/0.4187, allocations: 1.077 MB / 0.5891 GB, free: 2.824 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.4187, allocations: 15.97 kB / 0.5891 GB, free: 2.809 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.385e-05/0.4188, allocations: 66.53 kB / 0.5891 GB, free: 2.734 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.419, allocations: 35.77 kB / 0.5892 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.4196, allocations: 414.1 kB / 0.5896 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.4197, allocations: 24.5 kB / 0.5896 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.202e-05/0.4198, allocations: 20 kB / 0.5896 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009708/0.4207, allocations: 0.598 MB / 0.5902 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.4208, allocations: 8 kB / 0.5902 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.625e-05/0.4208, allocations: 11.98 kB / 0.5902 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.4208, allocations: 4 kB / 0.5902 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.4222, allocations: 0.8687 MB / 0.5911 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.4247, allocations: 1.465 MB / 0.5925 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006171/0.4253, allocations: 338.6 kB / 0.5928 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004682/0.4258, allocations: 304.6 kB / 0.5931 GB, free: 14.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002188/0.426, allocations: 109.6 kB / 0.5932 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.4261, allocations: 30.56 kB / 0.5932 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007835/0.4268, allocations: 167.7 kB / 0.5934 GB, free: 14.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.4269, allocations: 0 / 0.5934 GB, free: 14.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.008941/0.4358, allocations: 2.134 MB / 0.5955 GB, free: 12.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.4359, allocations: 59.34 kB / 0.5955 GB, free: 11.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.4362, allocations: 364.5 kB / 0.5959 GB, free: 11.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.146e-05/0.4363, allocations: 33.7 kB / 0.5959 GB, free: 11.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.4364, allocations: 160.7 kB / 0.5961 GB, free: 11.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.829e-05/0.4365, allocations: 111 kB / 0.5962 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.4367, allocations: 93.55 kB / 0.5963 GB, free: 11.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4368, allocations: 346.8 kB / 0.5966 GB, free: 10.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003553/0.4372, allocations: 231.9 kB / 0.5968 GB, free: 10.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.4375, allocations: 232.9 kB / 0.597 GB, free: 10.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007905/0.4383, allocations: 0.5089 MB / 0.5975 GB, free: 9.887 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4383, allocations: 0 / 0.5975 GB, free: 9.887 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002048/0.4404, allocations: 0.9547 MB / 0.5985 GB, free: 8.922 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.4404, allocations: 11.94 kB / 0.5985 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.4404, allocations: 0 / 0.5985 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05065/0.4911, allocations: 4.171 MB / 0.6026 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.655e-05/0.4912, allocations: 4 kB / 0.6026 GB, free: 4.727 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.4945, allocations: 1.516 MB / 0.604 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003732/0.4948, allocations: 8 kB / 0.604 GB, free: 3.176 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-05/0.4949, allocations: 31.95 kB / 0.6041 GB, free: 3.145 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.0002607/0.4952, allocations: 157.8 kB / 0.6042 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.4954, allocations: 35.77 kB / 0.6043 GB, free: 2.945 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/0.4974, allocations: 1.096 MB / 0.6053 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.4974, allocations: 11.92 kB / 0.6053 GB, free: 1.824 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4974, allocations: 0 / 0.6053 GB, free: 1.824 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4974, allocations: 0 / 0.6053 GB, free: 1.824 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.5001, allocations: 1.756 MB / 0.6071 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.5001, allocations: 0 / 0.6071 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.099e-05/0.5001, allocations: 11.98 kB / 0.6071 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002023/0.5022, allocations: 0.7768 MB / 0.6078 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.5022, allocations: 12 kB / 0.6078 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002259/0.5045, allocations: 1.541 MB / 0.6093 GB, free: 13.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.5045, allocations: 0 / 0.6093 GB, free: 13.63 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.5058, allocations: 0.9848 MB / 0.6103 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.5061, allocations: 164.8 kB / 0.6105 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.527e-05/0.5062, allocations: 11.98 kB / 0.6105 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002683/0.5065, allocations: 11.94 kB / 0.6105 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.5066, allocations: 23.91 kB / 0.6105 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.5066, allocations: 16 kB / 0.6105 GB, free: 12.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.5069, allocations: 267 kB / 0.6108 GB, free: 12.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5069, allocations: 0 / 0.6108 GB, free: 12.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001547/0.5085, allocations: 0.5875 MB / 0.6113 GB, free: 11.53 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.004194/0.5127, allocations: 2.52 MB / 0.6138 GB, free: 8.984 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002482/0.5152, allocations: 0.7513 MB / 0.6145 GB, free: 8.234 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5152, allocations: 0 / 0.6145 GB, free: 8.234 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.5164, allocations: 480.6 kB / 0.615 GB, free: 7.766 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.5179, allocations: 280.3 kB / 0.6153 GB, free: 7.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009556/0.5274, allocations: 5.31 MB / 0.6205 GB, free: 2.086 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.528, allocations: 0.804 MB / 0.6212 GB, free: 1.254 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.5283, allocations: 43.25 kB / 0.6213 GB, free: 1.211 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.5285, allocations: 111.4 kB / 0.6214 GB, free: 1.102 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5285, allocations: 0 / 0.6214 GB, free: 1.102 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06314/0.5917, allocations: 30.59 MB / 0.6513 GB, free: 2.719 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.8, allocations: 11.84 kB / 0.6513 GB, free: 2.707 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)