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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009048/0.0009048, allocations: 172.5 kB / 7.647 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.259/1.259, allocations: 221.5 MB / 229.6 MB, free: 7.535 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.0008537/0.0008538, allocations: 96.58 kB / 280.5 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1913/0.1913, allocations: 37.08 MB / 368.3 MB, free: 9.973 MB / 266.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.324e-05/1.325e-05, allocations: 4 kB / 434.6 MB, free: 23.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 60.08 MB / 494.7 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4818/0.5964, allocations: 206.3 MB / 0.6846 GB, free: 11.74 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.5966, allocations: 83.94 kB / 0.6847 GB, free: 11.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5419/1.139, allocations: 158.7 MB / 0.8396 GB, free: 73.37 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.833e-06/1.139, allocations: 0 / 0.8396 GB, free: 73.37 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.726e-05/1.139, allocations: 4 kB / 0.8397 GB, free: 73.37 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.002062/1.141, allocations: 0.9615 MB / 0.8406 GB, free: 72.36 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/1.141, allocations: 15.98 kB / 0.8406 GB, free: 72.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/1.141, allocations: 39.44 kB / 0.8406 GB, free: 72.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008964/1.142, allocations: 0.5815 MB / 0.8412 GB, free: 71.68 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/1.142, allocations: 11.94 kB / 0.8412 GB, free: 71.67 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/1.142, allocations: 12 kB / 0.8412 GB, free: 71.66 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001144/1.143, allocations: 0.9497 MB / 0.8422 GB, free: 70.71 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005687/1.144, allocations: 467.4 kB / 0.8426 GB, free: 70.24 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/1.144, allocations: 0 / 0.8426 GB, free: 70.24 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/1.144, allocations: 4 kB / 0.8426 GB, free: 70.24 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/1.144, allocations: 4 kB / 0.8426 GB, free: 70.23 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/1.146, allocations: 1.474 MB / 0.8441 GB, free: 68.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004609/1.146, allocations: 338.6 kB / 0.8444 GB, free: 68.36 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/1.147, allocations: 312.8 kB / 0.8447 GB, free: 68.05 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001871/1.147, allocations: 129 kB / 0.8448 GB, free: 67.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/1.147, allocations: 42.5 kB / 0.8448 GB, free: 67.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001234/1.148, allocations: 255.7 kB / 0.8451 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=31): time 1.723e-06/1.148, allocations: 0 / 0.8451 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31): time 0.004612/1.153, allocations: 1.657 MB / 0.8467 GB, free: 65.94 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.711e-05/1.153, allocations: 51.41 kB / 0.8468 GB, free: 65.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/1.153, allocations: 357.1 kB / 0.8471 GB, free: 65.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/1.153, allocations: 25.7 kB / 0.8471 GB, free: 65.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.348e-05/1.153, allocations: 172.5 kB / 0.8473 GB, free: 65.32 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.992e-05/1.153, allocations: 106.3 kB / 0.8474 GB, free: 65.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/1.153, allocations: 0 / 0.8474 GB, free: 65.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.543e-05/1.153, allocations: 346.8 kB / 0.8477 GB, free: 64.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/1.154, allocations: 223.8 kB / 0.8479 GB, free: 64.64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/1.154, allocations: 220.2 kB / 0.8481 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003512/1.158, allocations: 1.162 MB / 0.8493 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.158, allocations: 0 / 0.8493 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.005317/1.163, allocations: 1.879 MB / 0.8511 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/1.163, allocations: 4 kB / 0.8511 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/1.163, allocations: 11.92 kB / 0.8511 GB, free: 61.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01485/1.178, allocations: 2.591 MB / 0.8537 GB, free: 58.76 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-05/1.178, allocations: 4 kB / 0.8537 GB, free: 58.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005416/1.183, allocations: 2.347 MB / 0.8559 GB, free: 56.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/1.184, allocations: 0 / 0.8559 GB, free: 56.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/1.184, allocations: 31.95 kB / 0.856 GB, free: 56.35 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.0001901/1.184, allocations: 160.4 kB / 0.8561 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.753e-05/1.184, allocations: 31.58 kB / 0.8562 GB, free: 56.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003629/1.188, allocations: 1.669 MB / 0.8578 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/1.188, allocations: 11.89 kB / 0.8578 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/1.188, allocations: 0 / 0.8578 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/1.188, allocations: 7.969 kB / 0.8578 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003594/1.191, allocations: 2.286 MB / 0.86 GB, free: 52.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/1.191, allocations: 4 kB / 0.86 GB, free: 52.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.98e-05/1.191, allocations: 7.875 kB / 0.8601 GB, free: 52.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004821/1.196, allocations: 1.397 MB / 0.8614 GB, free: 50.71 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/1.196, allocations: 3.984 kB / 0.8614 GB, free: 50.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003551/1.2, allocations: 2.204 MB / 0.8636 GB, free: 48.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/1.2, allocations: 0 / 0.8636 GB, free: 48.47 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/1.203, allocations: 1.529 MB / 0.8651 GB, free: 46.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/1.203, allocations: 180.5 kB / 0.8652 GB, free: 46.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-05/1.203, allocations: 0 / 0.8652 GB, free: 46.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/1.203, allocations: 11.98 kB / 0.8653 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/1.203, allocations: 23.97 kB / 0.8653 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/1.203, allocations: 12 kB / 0.8653 GB, free: 46.68 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002288/1.203, allocations: 276.6 kB / 0.8655 GB, free: 46.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.203, allocations: 0 / 0.8655 GB, free: 46.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001425/1.205, allocations: 0.6515 MB / 0.8662 GB, free: 45.76 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.001637/1.207, allocations: 1.209 MB / 0.8674 GB, free: 44.55 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001883/1.208, allocations: 0.6983 MB / 0.868 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/1.208, allocations: 0 / 0.868 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009318/1.209, allocations: 450.9 kB / 0.8685 GB, free: 43.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/1.21, allocations: 228.9 kB / 0.8687 GB, free: 43.18 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008315/1.211, allocations: 0.5914 MB / 0.8693 GB, free: 42.57 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/1.212, allocations: 0.8236 MB / 0.8701 GB, free: 41.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001581/1.212, allocations: 47.27 kB / 0.8701 GB, free: 41.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.422e-05/1.212, allocations: 27.41 kB / 0.8701 GB, free: 41.64 MB / 0.4948 GB Notification: Performance of SimCode: time 3.21e-07/1.212, allocations: 0 / 0.8701 GB, free: 41.64 MB / 0.4948 GB Notification: Performance of Templates: time 0.02426/1.236, allocations: 23.09 MB / 0.8927 GB, free: 18.57 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)