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: translateModel(Physiolibrary.Fluid.Examples.MeanRespiration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration") translateModel(Physiolibrary.Fluid.Examples.MeanRespiration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration") [: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.003429/0.003429, allocations: 180.7 kB / 7.456 MB, free: 2.523 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.152/1.152, allocations: 221.4 MB / 229.3 MB, free: 2.996 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.0008889/0.0008887, allocations: 95.86 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3061/0.3061, allocations: 37.08 MB / 368 MB, free: 47.41 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 8.807e-06/8.827e-06, allocations: 0 / 434.1 MB, free: 4.914 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 60.09 MB / 494.2 MB, free: 8.727 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6091/0.7228, allocations: 206.3 MB / 0.684 GB, free: 118.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.7231, allocations: 75.12 kB / 0.6841 GB, free: 118.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.2966/1.02, allocations: 159.4 MB / 0.8397 GB, free: 4.941 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.263e-05/1.02, allocations: 15.98 kB / 0.8398 GB, free: 4.926 MB / 490.7 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.002521/1.022, allocations: 1.029 MB / 0.8408 GB, free: 3.852 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/1.022, allocations: 12.03 kB / 0.8408 GB, free: 3.84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/1.023, allocations: 43.53 kB / 0.8408 GB, free: 3.797 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009368/1.023, allocations: 0.5649 MB / 0.8414 GB, free: 3.188 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/1.023, allocations: 12 kB / 0.8414 GB, free: 3.176 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/1.024, allocations: 15.94 kB / 0.8414 GB, free: 3.16 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00115/1.025, allocations: 0.8443 MB / 0.8422 GB, free: 2.316 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005499/1.025, allocations: 426.8 kB / 0.8426 GB, free: 1.891 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/1.025, allocations: 0 / 0.8426 GB, free: 1.891 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/1.025, allocations: 3.938 kB / 0.8426 GB, free: 1.887 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/1.025, allocations: 4 kB / 0.8426 GB, free: 1.883 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/1.028, allocations: 1.45 MB / 0.844 GB, free: 392 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/1.028, allocations: 326.6 kB / 0.8444 GB, free: 56 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004623/1.029, allocations: 288.8 kB / 0.8446 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002457/1.029, allocations: 121 kB / 0.8448 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/1.029, allocations: 30.56 kB / 0.8448 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=31): time 1.433e-06/1.029, allocations: 0 / 0.8448 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31): time 0.005474/1.034, allocations: 1.752 MB / 0.8465 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/1.035, allocations: 63.34 kB / 0.8466 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/1.035, allocations: 355.4 kB / 0.8469 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/1.035, allocations: 25.7 kB / 0.8469 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/1.035, allocations: 132.5 kB / 0.847 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/1.035, allocations: 102.4 kB / 0.8471 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/1.035, allocations: 0 / 0.8471 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001393/1.035, allocations: 350.8 kB / 0.8475 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/1.036, allocations: 223.8 kB / 0.8477 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003149/1.036, allocations: 228.2 kB / 0.8479 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004005/1.04, allocations: 1.228 MB / 0.8491 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.04, allocations: 4 kB / 0.8491 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.006301/1.046, allocations: 1.992 MB / 0.8511 GB, free: 9.105 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/1.046, allocations: 4 kB / 0.8511 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.046, allocations: 0 / 0.8511 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01879/1.065, allocations: 2.756 MB / 0.8537 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.095e-05/1.065, allocations: 4 kB / 0.8538 GB, free: 6.332 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006847/1.072, allocations: 2.499 MB / 0.8562 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/1.073, allocations: 15.84 kB / 0.8562 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.553e-05/1.073, allocations: 31.95 kB / 0.8562 GB, free: 3.758 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.0002491/1.073, allocations: 144.9 kB / 0.8564 GB, free: 3.613 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/1.073, allocations: 31.53 kB / 0.8564 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004585/1.078, allocations: 1.801 MB / 0.8582 GB, free: 1.766 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/1.078, allocations: 7.984 kB / 0.8582 GB, free: 1.758 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/1.078, allocations: 7.938 kB / 0.8582 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/1.078, allocations: 0 / 0.8582 GB, free: 1.75 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1992/1.277, allocations: 2.372 MB / 0.8605 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/1.277, allocations: 3.75 kB / 0.8605 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.126e-05/1.277, allocations: 7.625 kB / 0.8605 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005469/1.282, allocations: 1.476 MB / 0.8619 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/1.283, allocations: 3.281 kB / 0.862 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/1.287, allocations: 2.371 MB / 0.8643 GB, free: 149.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.287, allocations: 1.844 kB / 0.8643 GB, free: 149.6 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00318/1.29, allocations: 1.604 MB / 0.8658 GB, free: 149.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/1.291, allocations: 178.8 kB / 0.866 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.746e-05/1.291, allocations: 3.906 kB / 0.866 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/1.291, allocations: 3.969 kB / 0.866 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/1.291, allocations: 27.61 kB / 0.866 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/1.291, allocations: 7.656 kB / 0.866 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002648/1.291, allocations: 285 kB / 0.8663 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001682/1.293, allocations: 0.6587 MB / 0.867 GB, free: 149.2 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.001948/1.295, allocations: 1.263 MB / 0.8682 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002072/1.297, allocations: 0.725 MB / 0.8689 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/1.297, allocations: 0 / 0.8689 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009931/1.298, allocations: 459.6 kB / 0.8693 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/1.299, allocations: 205.2 kB / 0.8695 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/1.3, allocations: 0.6313 MB / 0.8702 GB, free: 148.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/1.301, allocations: 0.8567 MB / 0.871 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of SimCode: time 4.41e-07/1.301, allocations: 3.5 kB / 0.871 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.02943/1.33, allocations: 23.36 MB / 0.8938 GB, free: 147.7 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)