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.1063/0.1063, allocations: 15.28 MB / 30.91 MB, free: 4.262 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.001263/0.001263, allocations: 112.6 kB / 35.92 MB, free: 3.16 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.001538/0.001538, allocations: 193.1 kB / 41.02 MB, free: 7.164 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.493/1.493, allocations: 222.9 MB / 268.9 MB, free: 6.805 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1479/0.1479, allocations: 23.35 MB / 346.6 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003223/0.003223, allocations: 116.5 kB / 478.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.321, allocations: 59.35 MB / 0.5251 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.04284/0.3639, allocations: 34.89 MB / 0.5592 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02195/0.3859, allocations: 17.71 MB / 0.5765 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003941/0.3863, allocations: 3.781 kB / 0.5765 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005963/0.387, allocations: 123.1 kB / 0.5766 GB, free: 15.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005538/0.3925, allocations: 1.789 MB / 0.5784 GB, free: 13.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003875/0.3964, allocations: 1.285 MB / 0.5796 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.3976, allocations: 0.5602 MB / 0.5802 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.3987, allocations: 0.7215 MB / 0.5809 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003131/0.4019, allocations: 1.219 MB / 0.582 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.403, allocations: 0.5689 MB / 0.5826 GB, free: 9.438 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.4031, allocations: 68 kB / 0.5827 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006385/0.4095, allocations: 2.14 MB / 0.5848 GB, free: 7.227 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003378/0.4099, allocations: 247.4 kB / 0.585 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004605/0.4104, allocations: 302.9 kB / 0.5853 GB, free: 6.688 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006775/0.4172, allocations: 2.733 MB / 0.588 GB, free: 3.945 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.4172, allocations: 8 kB / 0.588 GB, free: 3.938 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4172, allocations: 0 / 0.588 GB, free: 3.938 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.4172, allocations: 0 / 0.588 GB, free: 3.938 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.002446/0.4197, allocations: 1.08 MB / 0.589 GB, free: 2.805 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.4197, allocations: 15.97 kB / 0.589 GB, free: 2.789 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.972e-05/0.4198, allocations: 58.55 kB / 0.5891 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.42, allocations: 35.77 kB / 0.5891 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007724/0.4208, allocations: 422.1 kB / 0.5895 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.4208, allocations: 20.5 kB / 0.5895 GB, free: 2.211 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.678e-05/0.4209, allocations: 24 kB / 0.5896 GB, free: 2.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.4219, allocations: 0.6019 MB / 0.5902 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.422, allocations: 0 / 0.5902 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-05/0.422, allocations: 8 kB / 0.5902 GB, free: 1.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.422, allocations: 8 kB / 0.5902 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.4236, allocations: 0.8649 MB / 0.591 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002797/0.4264, allocations: 1.48 MB / 0.5925 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/0.4272, allocations: 334.6 kB / 0.5928 GB, free: 14.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005374/0.4277, allocations: 292.7 kB / 0.5931 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002494/0.428, allocations: 117.6 kB / 0.5932 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.428, allocations: 34.56 kB / 0.5932 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008242/0.4288, allocations: 167.7 kB / 0.5934 GB, free: 14.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.335e-06/0.4288, allocations: 0 / 0.5934 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.009555/0.4384, allocations: 2.13 MB / 0.5954 GB, free: 12.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.4385, allocations: 63.34 kB / 0.5955 GB, free: 11.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004311/0.4389, allocations: 364.5 kB / 0.5959 GB, free: 11.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.439, allocations: 29.7 kB / 0.5959 GB, free: 11.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.4391, allocations: 160.6 kB / 0.596 GB, free: 11.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.4392, allocations: 111 kB / 0.5961 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.4394, allocations: 85.56 kB / 0.5962 GB, free: 11.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.4396, allocations: 346.8 kB / 0.5966 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004065/0.44, allocations: 235.9 kB / 0.5968 GB, free: 10.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.4405, allocations: 232.9 kB / 0.597 GB, free: 10.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009092/0.4414, allocations: 0.5128 MB / 0.5975 GB, free: 9.867 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4414, allocations: 0 / 0.5975 GB, free: 9.867 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002303/0.4437, allocations: 0.9508 MB / 0.5984 GB, free: 8.906 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.4438, allocations: 4 kB / 0.5984 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.4438, allocations: 0 / 0.5984 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05035/0.4941, allocations: 4.171 MB / 0.6025 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.835e-05/0.4942, allocations: 4 kB / 0.6025 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003474/0.4977, allocations: 1.532 MB / 0.604 GB, free: 3.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.498, allocations: 4 kB / 0.604 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.533e-05/0.4981, allocations: 31.95 kB / 0.604 GB, free: 3.125 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.0002833/0.4984, allocations: 160.6 kB / 0.6042 GB, free: 2.961 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.4985, allocations: 39.77 kB / 0.6042 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002122/0.5006, allocations: 1.092 MB / 0.6053 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.5006, allocations: 7.938 kB / 0.6053 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5007, allocations: 0 / 0.6053 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5007, allocations: 3.984 kB / 0.6053 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.5035, allocations: 1.756 MB / 0.607 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5035, allocations: 4 kB / 0.607 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-05/0.5035, allocations: 7.938 kB / 0.607 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/0.5057, allocations: 0.7768 MB / 0.6078 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.5058, allocations: 12 kB / 0.6078 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/0.5082, allocations: 1.538 MB / 0.6093 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5082, allocations: 0 / 0.6093 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.5098, allocations: 0.9965 MB / 0.6103 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.51, allocations: 160.8 kB / 0.6104 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.862e-05/0.5101, allocations: 8 kB / 0.6104 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.5104, allocations: 4 kB / 0.6104 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.5105, allocations: 23.91 kB / 0.6105 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.5105, allocations: 19.98 kB / 0.6105 GB, free: 12.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003306/0.5109, allocations: 267 kB / 0.6107 GB, free: 12.11 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5109, allocations: 4 kB / 0.6107 GB, free: 12.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001733/0.5126, allocations: 0.5875 MB / 0.6113 GB, free: 11.51 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.004015/0.5167, allocations: 2.516 MB / 0.6138 GB, free: 8.969 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002548/0.5192, allocations: 0.7513 MB / 0.6145 GB, free: 8.219 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.5193, allocations: 4 kB / 0.6145 GB, free: 8.215 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.5204, allocations: 480.6 kB / 0.615 GB, free: 7.746 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.5218, allocations: 292.3 kB / 0.6152 GB, free: 7.469 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008702/0.5306, allocations: 5.299 MB / 0.6204 GB, free: 2.078 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.5311, allocations: 0.8078 MB / 0.6212 GB, free: 1.242 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.5312, allocations: 47.23 kB / 0.6213 GB, free: 1.195 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.5314, allocations: 107.4 kB / 0.6214 GB, free: 1.09 MB / 462.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5314, allocations: 0 / 0.6214 GB, free: 1.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06592/0.5973, allocations: 30.58 MB / 0.6512 GB, free: 2.711 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/13.95, allocations: 7.781 kB / 0.6512 GB, free: 2.703 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)