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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 177.7 kB / 7.457 MB, free: 1.539 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.08/1.08, allocations: 221.4 MB / 229.3 MB, free: 8.414 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000926/0.0009259, allocations: 102.5 kB / 280.1 MB, free: 7.809 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2672/0.2672, allocations: 37.08 MB / 368 MB, free: 41.6 MB / 290.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1013/0.3686, allocations: 66.2 MB / 434.2 MB, free: 10.94 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.5924, allocations: 60.07 MB / 494.2 MB, free: 37.76 MB / 370.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.9353, allocations: 206.3 MB / 0.6841 GB, free: 104.6 MB / 482.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/0.9355, allocations: 75.7 kB / 0.6842 GB, free: 104.6 MB / 482.8 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.2927/1.228, allocations: 160.4 MB / 0.8408 GB, free: 10.51 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/1.228, allocations: 8 kB / 0.8409 GB, free: 10.5 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/1.228, allocations: 43.52 kB / 0.8409 GB, free: 10.46 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/1.23, allocations: 0.5611 MB / 0.8414 GB, free: 9.852 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/1.23, allocations: 8 kB / 0.8415 GB, free: 9.844 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.912e-05/1.23, allocations: 12 kB / 0.8415 GB, free: 9.832 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001343/1.231, allocations: 0.8598 MB / 0.8423 GB, free: 8.973 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006578/1.232, allocations: 422.8 kB / 0.8427 GB, free: 8.551 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/1.232, allocations: 0 / 0.8427 GB, free: 8.551 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/1.232, allocations: 4 kB / 0.8427 GB, free: 8.547 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/1.232, allocations: 4 kB / 0.8427 GB, free: 8.543 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/1.235, allocations: 1.467 MB / 0.8441 GB, free: 7.027 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/1.235, allocations: 322.7 kB / 0.8445 GB, free: 6.703 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004184/1.236, allocations: 284.8 kB / 0.8447 GB, free: 6.422 MB / 0.5027 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002064/1.236, allocations: 121.1 kB / 0.8448 GB, free: 6.285 MB / 0.5027 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/1.236, allocations: 38.56 kB / 0.8449 GB, free: 6.238 MB / 0.5027 GB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/1.236, allocations: 7.875 kB / 0.8449 GB, free: 6.23 MB / 0.5027 GB Notification: Performance of matching and sorting (n=31): time 0.005328/1.241, allocations: 1.746 MB / 0.8466 GB, free: 4.473 MB / 0.5027 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/1.241, allocations: 59.41 kB / 0.8466 GB, free: 4.402 MB / 0.5027 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004264/1.242, allocations: 355.4 kB / 0.847 GB, free: 4.055 MB / 0.5027 GB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/1.242, allocations: 29.7 kB / 0.847 GB, free: 4.02 MB / 0.5027 GB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/1.242, allocations: 136.5 kB / 0.8471 GB, free: 3.879 MB / 0.5027 GB Notification: Performance of collectInitialBindings (initialization): time 9.644e-05/1.242, allocations: 102.4 kB / 0.8472 GB, free: 3.777 MB / 0.5027 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/1.242, allocations: 0 / 0.8472 GB, free: 3.777 MB / 0.5027 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.242, allocations: 346.8 kB / 0.8476 GB, free: 3.43 MB / 0.5027 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/1.243, allocations: 223.9 kB / 0.8478 GB, free: 3.211 MB / 0.5027 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/1.243, allocations: 224.2 kB / 0.848 GB, free: 2.992 MB / 0.5027 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/1.247, allocations: 1.232 MB / 0.8492 GB, free: 1.758 MB / 0.5027 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/1.247, allocations: 0 / 0.8492 GB, free: 1.758 MB / 0.5027 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.1398/1.387, allocations: 1.993 MB / 0.8512 GB, free: 161 MB / 0.5027 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/1.387, allocations: 3.688 kB / 0.8512 GB, free: 161 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/1.387, allocations: 0 / 0.8512 GB, free: 161 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01688/1.404, allocations: 2.745 MB / 0.8538 GB, free: 161 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.126e-05/1.404, allocations: 3.688 kB / 0.8538 GB, free: 161 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006089/1.41, allocations: 2.498 MB / 0.8563 GB, free: 160.5 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004263/1.41, allocations: 17.92 kB / 0.8563 GB, free: 160.5 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.293e-05/1.41, allocations: 29.81 kB / 0.8563 GB, free: 160.5 MB / 0.5027 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.0001923/1.411, allocations: 156.7 kB / 0.8565 GB, free: 160.3 MB / 0.5027 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.55e-05/1.411, allocations: 31.38 kB / 0.8565 GB, free: 160.3 MB / 0.5027 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/1.415, allocations: 1.803 MB / 0.8583 GB, free: 160.3 MB / 0.5027 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.415, allocations: 3.312 kB / 0.8583 GB, free: 160.3 MB / 0.5027 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/1.415, allocations: 10.58 kB / 0.8583 GB, free: 160.3 MB / 0.5027 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/1.415, allocations: 2.969 kB / 0.8583 GB, free: 160.3 MB / 0.5027 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/1.419, allocations: 2.375 MB / 0.8606 GB, free: 159.9 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/1.419, allocations: 0 / 0.8606 GB, free: 159.9 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.405e-05/1.419, allocations: 3.781 kB / 0.8606 GB, free: 159.9 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005282/1.424, allocations: 1.484 MB / 0.8621 GB, free: 159.9 MB / 0.5027 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/1.424, allocations: 3.25 kB / 0.8621 GB, free: 159.9 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003942/1.428, allocations: 2.37 MB / 0.8644 GB, free: 159.4 MB / 0.5027 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.428, allocations: 0 / 0.8644 GB, free: 159.4 MB / 0.5027 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002867/1.431, allocations: 1.606 MB / 0.8659 GB, free: 159.2 MB / 0.5027 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003003/1.434, allocations: 2.017 MB / 0.8679 GB, free: 158.6 MB / 0.5027 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/1.434, allocations: 178.7 kB / 0.8681 GB, free: 158.5 MB / 0.5027 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.188e-05/1.434, allocations: 2.312 kB / 0.8681 GB, free: 158.5 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/1.435, allocations: 8.062 kB / 0.8681 GB, free: 158.5 MB / 0.5027 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/1.435, allocations: 17.89 kB / 0.8681 GB, free: 158.5 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/1.435, allocations: 17.44 kB / 0.8681 GB, free: 158.5 MB / 0.5027 GB Notification: Performance of sort global known variables: time 0.0002394/1.435, allocations: 284.2 kB / 0.8684 GB, free: 158.4 MB / 0.5027 GB Notification: Performance of remove unused functions: time 0.002018/1.437, allocations: 0.7628 MB / 0.8691 GB, free: 158.4 MB / 0.5027 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.001776/1.439, allocations: 1.257 MB / 0.8704 GB, free: 158.3 MB / 0.5027 GB Notification: Performance of simCode: created initialization part: time 0.001947/1.441, allocations: 0.7157 MB / 0.8711 GB, free: 158.3 MB / 0.5027 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/1.441, allocations: 3.781 kB / 0.8711 GB, free: 158.3 MB / 0.5027 GB Notification: Performance of simCode: created simulation system equations: time 0.0009235/1.442, allocations: 461.2 kB / 0.8715 GB, free: 158.3 MB / 0.5027 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009099/1.443, allocations: 207.7 kB / 0.8717 GB, free: 158.3 MB / 0.5027 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009852/1.444, allocations: 0.6302 MB / 0.8723 GB, free: 158.1 MB / 0.5027 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/1.444, allocations: 0.8594 MB / 0.8732 GB, free: 157.4 MB / 0.5027 GB Notification: Performance of SimCode: time 3e-07/1.444, allocations: 0 / 0.8732 GB, free: 157.4 MB / 0.5027 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)