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.1095/0.1095, allocations: 15.29 MB / 30.91 MB, free: 4.121 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.001234/0.001234, allocations: 102.3 kB / 35.91 MB, free: 3.195 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.001592/0.001592, allocations: 194 kB / 41.01 MB, free: 7.137 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.48/1.48, 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.1454/0.1454, allocations: 23.35 MB / 346.6 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00305/0.00305, allocations: 107.8 kB / 478.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3235, allocations: 59.36 MB / 0.5251 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03899/0.3626, allocations: 34.89 MB / 0.5592 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02283/0.3854, allocations: 17.71 MB / 0.5765 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003826/0.3859, allocations: 3.312 kB / 0.5765 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004648/0.3864, allocations: 120 kB / 0.5766 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004951/0.3914, allocations: 1.783 MB / 0.5783 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003647/0.395, allocations: 1.285 MB / 0.5796 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008542/0.3959, allocations: 0.5602 MB / 0.5801 GB, free: 12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009331/0.3969, allocations: 0.7293 MB / 0.5809 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002566/0.3994, allocations: 1.223 MB / 0.582 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008104/0.4003, allocations: 0.569 MB / 0.5826 GB, free: 9.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.4004, allocations: 64 kB / 0.5827 GB, free: 9.414 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006331/0.4067, allocations: 2.14 MB / 0.5848 GB, free: 7.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003596/0.4071, allocations: 243.4 kB / 0.585 GB, free: 7.031 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004137/0.4075, allocations: 303 kB / 0.5853 GB, free: 6.734 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007368/0.4149, allocations: 2.752 MB / 0.588 GB, free: 3.973 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.415, allocations: 0 / 0.588 GB, free: 3.973 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.415, allocations: 0 / 0.588 GB, free: 3.973 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.415, allocations: 0 / 0.588 GB, free: 3.973 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.002798/0.4178, allocations: 1.073 MB / 0.589 GB, free: 2.848 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.4179, allocations: 12.03 kB / 0.589 GB, free: 2.836 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.418, allocations: 58.53 kB / 0.5891 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.4182, allocations: 43.77 kB / 0.5891 GB, free: 2.727 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008191/0.419, allocations: 422 kB / 0.5895 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.419, allocations: 20.5 kB / 0.5895 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.151e-05/0.4191, allocations: 20 kB / 0.5896 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.4203, allocations: 0.6058 MB / 0.5902 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.4203, allocations: 0 / 0.5902 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/0.4204, allocations: 8 kB / 0.5902 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.4204, allocations: 7.984 kB / 0.5902 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.422, allocations: 0.8726 MB / 0.591 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002859/0.4248, allocations: 1.453 MB / 0.5924 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007365/0.4256, allocations: 346.5 kB / 0.5928 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005314/0.4262, allocations: 292.7 kB / 0.593 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002567/0.4264, allocations: 113.6 kB / 0.5932 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.4265, allocations: 38.56 kB / 0.5932 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007782/0.4273, allocations: 167.7 kB / 0.5934 GB, free: 14.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.4273, allocations: 0 / 0.5934 GB, free: 14.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.009193/0.4365, allocations: 2.126 MB / 0.5954 GB, free: 12.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.4366, allocations: 63.34 kB / 0.5955 GB, free: 12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004797/0.4371, allocations: 364.5 kB / 0.5958 GB, free: 11.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.473e-05/0.4371, allocations: 33.7 kB / 0.5959 GB, free: 11.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.4373, allocations: 160.7 kB / 0.596 GB, free: 11.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.4374, allocations: 115 kB / 0.5961 GB, free: 11.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.4376, allocations: 89.61 kB / 0.5962 GB, free: 11.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.4377, allocations: 346.8 kB / 0.5965 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004032/0.4381, allocations: 231.9 kB / 0.5968 GB, free: 10.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004074/0.4386, allocations: 236.9 kB / 0.597 GB, free: 10.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000885/0.4395, allocations: 0.5089 MB / 0.5975 GB, free: 9.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4395, allocations: 4 kB / 0.5975 GB, free: 9.906 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002265/0.4417, allocations: 0.943 MB / 0.5984 GB, free: 8.953 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.4418, allocations: 11.98 kB / 0.5984 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.4418, allocations: 0 / 0.5984 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04974/0.4915, allocations: 4.175 MB / 0.6025 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.752e-05/0.4916, allocations: 0 / 0.6025 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003281/0.4949, allocations: 1.52 MB / 0.604 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.4953, allocations: 4 kB / 0.604 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.4954, allocations: 35.95 kB / 0.604 GB, free: 3.172 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.0002526/0.4956, allocations: 153.8 kB / 0.6042 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.4958, allocations: 35.77 kB / 0.6042 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.4979, allocations: 1.092 MB / 0.6053 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.4979, allocations: 7.984 kB / 0.6053 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.4979, allocations: 0 / 0.6053 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.498, allocations: 0 / 0.6053 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002707/0.5007, allocations: 1.76 MB / 0.607 GB, free: 44 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.5007, allocations: 4 kB / 0.607 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.752e-05/0.5007, allocations: 11.86 kB / 0.607 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/0.5029, allocations: 0.7769 MB / 0.6078 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.5029, allocations: 12 kB / 0.6078 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/0.5055, allocations: 1.534 MB / 0.6093 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.5055, allocations: 4 kB / 0.6093 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.5071, allocations: 0.9926 MB / 0.6103 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002967/0.5075, allocations: 164.8 kB / 0.6104 GB, free: 12.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.09e-05/0.5076, allocations: 12 kB / 0.6104 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.5078, allocations: 4 kB / 0.6104 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.5079, allocations: 27.91 kB / 0.6105 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.508, allocations: 8 kB / 0.6105 GB, free: 12.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003709/0.5084, allocations: 275 kB / 0.6107 GB, free: 12.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5084, allocations: 0 / 0.6107 GB, free: 12.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001987/0.5104, allocations: 0.5875 MB / 0.6113 GB, free: 11.56 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.004743/0.5151, allocations: 2.527 MB / 0.6138 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002537/0.5177, allocations: 0.7501 MB / 0.6145 GB, free: 8.262 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.5177, allocations: 0 / 0.6145 GB, free: 8.262 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.519, allocations: 476.6 kB / 0.615 GB, free: 7.797 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.5204, allocations: 287.9 kB / 0.6152 GB, free: 7.523 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008904/0.5294, allocations: 5.302 MB / 0.6204 GB, free: 2.129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.5298, allocations: 0.8079 MB / 0.6212 GB, free: 1.293 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.5301, allocations: 51.19 kB / 0.6212 GB, free: 1.242 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.5302, allocations: 103.4 kB / 0.6213 GB, free: 1.141 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5303, allocations: 4 kB / 0.6213 GB, free: 1.137 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06576/0.596, allocations: 30.58 MB / 0.6512 GB, free: 2.758 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.27, allocations: 7.781 kB / 0.6512 GB, free: 2.75 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)