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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 172.9 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 229.6 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008586/0.0008586, allocations: 89.19 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2171/0.2171, allocations: 37.09 MB / 368.3 MB, free: 9.977 MB / 266.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.944e-05, allocations: 7.938 kB / 434.7 MB, free: 23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1288, allocations: 60.08 MB / 494.8 MB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5669/0.6958, allocations: 206.3 MB / 0.6847 GB, free: 11.64 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.6961, allocations: 74.84 kB / 0.6848 GB, free: 11.61 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6437/1.34, allocations: 158.7 MB / 0.8397 GB, free: 73.29 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.653e-06/1.34, allocations: 0 / 0.8397 GB, free: 73.29 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.579e-05/1.34, allocations: 4 kB / 0.8397 GB, free: 73.28 MB / 0.4948 GB 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.003172/1.343, allocations: 0.9771 MB / 0.8407 GB, free: 72.26 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.343, allocations: 11.98 kB / 0.8407 GB, free: 72.25 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/1.343, allocations: 39.53 kB / 0.8407 GB, free: 72.21 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/1.345, allocations: 0.5737 MB / 0.8413 GB, free: 71.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/1.345, allocations: 8 kB / 0.8413 GB, free: 71.58 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-05/1.345, allocations: 12 kB / 0.8413 GB, free: 71.57 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001239/1.346, allocations: 0.9575 MB / 0.8423 GB, free: 70.61 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006317/1.347, allocations: 479.3 kB / 0.8427 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/1.347, allocations: 0 / 0.8427 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/1.347, allocations: 0 / 0.8427 GB, free: 70.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/1.347, allocations: 4 kB / 0.8427 GB, free: 70.13 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/1.349, allocations: 1.462 MB / 0.8442 GB, free: 68.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/1.35, allocations: 346.6 kB / 0.8445 GB, free: 68.26 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003927/1.35, allocations: 312.7 kB / 0.8448 GB, free: 67.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002366/1.351, allocations: 129 kB / 0.8449 GB, free: 67.81 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/1.351, allocations: 34.56 kB / 0.8449 GB, free: 67.77 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001293/1.352, allocations: 259.6 kB / 0.8452 GB, free: 67.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=31): time 4.668e-06/1.352, allocations: 0 / 0.8452 GB, free: 67.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31): time 0.005142/1.357, allocations: 1.665 MB / 0.8468 GB, free: 65.84 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/1.357, allocations: 55.41 kB / 0.8469 GB, free: 65.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/1.358, allocations: 345.1 kB / 0.8472 GB, free: 65.43 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.371e-05/1.358, allocations: 29.64 kB / 0.8472 GB, free: 65.39 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/1.358, allocations: 172.5 kB / 0.8474 GB, free: 65.22 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/1.358, allocations: 106.4 kB / 0.8475 GB, free: 65.11 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/1.358, allocations: 0 / 0.8475 GB, free: 65.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001293/1.358, allocations: 346.8 kB / 0.8478 GB, free: 64.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/1.359, allocations: 219.9 kB / 0.848 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/1.359, allocations: 224.2 kB / 0.8482 GB, free: 64.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003973/1.363, allocations: 1.162 MB / 0.8494 GB, free: 63.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/1.363, allocations: 0 / 0.8494 GB, free: 63.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.005612/1.368, allocations: 1.879 MB / 0.8512 GB, free: 61.28 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/1.369, allocations: 4 kB / 0.8512 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/1.369, allocations: 4 kB / 0.8512 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01489/1.383, allocations: 2.595 MB / 0.8538 GB, free: 58.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.82e-05/1.384, allocations: 7.938 kB / 0.8538 GB, free: 58.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00612/1.39, allocations: 2.335 MB / 0.856 GB, free: 56.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005688/1.39, allocations: 7.984 kB / 0.856 GB, free: 56.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.339e-05/1.39, allocations: 31.95 kB / 0.8561 GB, free: 56.26 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: alveolarVentilation.q_out.Xi_outflow[2]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] alveolarVentilation.q_out.Xi_outflow[3]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] alveolarVentilation.q_out.Xi_outflow[4]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] deadSpaceVentilation.q_out.Xi_outflow[1]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] deadSpaceVentilation.q_out.Xi_outflow[2]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] deadSpaceVentilation.q_out.Xi_outflow[4]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] deadSpaceVentilation.q_out.Xi_outflow[3]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] alveolarVentilation.q_out.Xi_outflow[1]:VARIABLE(min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0" type: Real [4] alveolarVentilation.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real deadSpaceVentilation.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {13 17} Notification: Performance of prepare postOptimizeDAE: time 0.000267/1.391, allocations: 151.7 kB / 0.8562 GB, free: 56.11 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004787/1.395, allocations: 1.669 MB / 0.8579 GB, free: 54.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/1.396, allocations: 31.62 kB / 0.8579 GB, free: 54.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004024/1.4, allocations: 1.681 MB / 0.8595 GB, free: 52.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/1.4, allocations: 4 kB / 0.8595 GB, free: 52.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.4, allocations: 7.984 kB / 0.8595 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/1.4, allocations: 0 / 0.8595 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00438/1.404, allocations: 2.294 MB / 0.8618 GB, free: 50.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/1.404, allocations: 0 / 0.8618 GB, free: 50.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.874e-05/1.404, allocations: 7.953 kB / 0.8618 GB, free: 50.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004986/1.409, allocations: 1.397 MB / 0.8631 GB, free: 48.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/1.409, allocations: 8 kB / 0.8632 GB, free: 48.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004245/1.414, allocations: 2.212 MB / 0.8653 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.414, allocations: 0 / 0.8653 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003257/1.417, allocations: 1.522 MB / 0.8668 GB, free: 45.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/1.417, allocations: 180.4 kB / 0.867 GB, free: 44.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/1.417, allocations: 3.984 kB / 0.867 GB, free: 44.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003707/1.418, allocations: 4 kB / 0.867 GB, free: 44.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.17e-05/1.418, allocations: 23.92 kB / 0.867 GB, free: 44.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.839e-05/1.418, allocations: 19.98 kB / 0.867 GB, free: 44.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003105/1.418, allocations: 272.6 kB / 0.8673 GB, free: 44.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.418, allocations: 0 / 0.8673 GB, free: 44.64 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002154/1.42, allocations: 0.6554 MB / 0.8679 GB, free: 43.98 MB / 0.4948 GB 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {13 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.00635/1.427, allocations: 3.202 MB / 0.871 GB, free: 40.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00211/1.429, allocations: 0.7092 MB / 0.8717 GB, free: 40.04 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.429, allocations: 0 / 0.8717 GB, free: 40.04 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009831/1.43, allocations: 443.2 kB / 0.8722 GB, free: 39.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/1.431, allocations: 215 kB / 0.8724 GB, free: 39.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/1.433, allocations: 0.9823 MB / 0.8733 GB, free: 38.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/1.434, allocations: 0.8236 MB / 0.8741 GB, free: 37.52 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002498/1.434, allocations: 47.25 kB / 0.8742 GB, free: 37.47 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/1.434, allocations: 115.4 kB / 0.8743 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of SimCode: time 4.71e-07/1.434, allocations: 4 kB / 0.8743 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05484/1.489, allocations: 27.21 MB / 0.9009 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002723/1.489, allocations: 124.7 kB / 0.901 GB, free: 9.988 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.726/4.216, allocations: 3.938 kB / 0.901 GB, free: 9.984 MB / 0.4948 GB (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/linux/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)