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: 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/Chemical 1.4.0/package.mo): time 0.1597/0.1597, allocations: 15.28 MB / 30.91 MB, free: 4.152 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.001498/0.001497, allocations: 108.8 kB / 35.92 MB, free: 3.199 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.002034/0.002034, allocations: 190.1 kB / 41.01 MB, free: 7.145 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.5/1.5, allocations: 222.9 MB / 268.9 MB, free: 6.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1493/0.1493, allocations: 23.36 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 115.8 kB / 478.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4201/0.4222, allocations: 59.35 MB / 0.5256 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.04226/0.4645, allocations: 34.89 MB / 0.5597 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02107/0.4856, allocations: 17.71 MB / 0.577 GB, free: 15.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004705/0.4861, allocations: 4.25 kB / 0.577 GB, free: 15.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006328/0.4868, allocations: 119.4 kB / 0.5771 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006967/0.4938, allocations: 1.78 MB / 0.5788 GB, free: 13.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004551/0.4984, allocations: 1.293 MB / 0.5801 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.4995, allocations: 0.5641 MB / 0.5806 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009641/0.5004, allocations: 0.7215 MB / 0.5813 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002962/0.5034, allocations: 1.223 MB / 0.5825 GB, free: 10 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.5047, allocations: 0.5728 MB / 0.5831 GB, free: 9.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003525/0.505, allocations: 68 kB / 0.5832 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009052/0.5141, allocations: 2.133 MB / 0.5852 GB, free: 7.227 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005833/0.5147, allocations: 247.3 kB / 0.5855 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007706/0.5155, allocations: 303 kB / 0.5858 GB, free: 6.688 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008072/0.5236, allocations: 2.742 MB / 0.5884 GB, free: 3.938 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.5236, allocations: 0 / 0.5884 GB, free: 3.938 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.5237, allocations: 0 / 0.5884 GB, free: 3.938 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.5237, allocations: 0 / 0.5884 GB, free: 3.938 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.002592/0.5263, allocations: 1.048 MB / 0.5895 GB, free: 2.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.5263, allocations: 8.031 kB / 0.5895 GB, free: 2.832 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.5266, allocations: 39.62 kB / 0.5895 GB, free: 2.793 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008326/0.5274, allocations: 417.8 kB / 0.5899 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.5274, allocations: 20.56 kB / 0.5899 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.5275, allocations: 27.88 kB / 0.5899 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.5287, allocations: 0.6019 MB / 0.5905 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.5287, allocations: 4 kB / 0.5905 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.5288, allocations: 12 kB / 0.5906 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.5288, allocations: 4 kB / 0.5906 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.5302, allocations: 0.8688 MB / 0.5914 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.533, allocations: 1.456 MB / 0.5928 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.5337, allocations: 342.5 kB / 0.5932 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004676/0.5342, allocations: 300.7 kB / 0.5934 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002352/0.5344, allocations: 109.6 kB / 0.5935 GB, free: 14.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.5345, allocations: 34.56 kB / 0.5936 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007981/0.5353, allocations: 167.6 kB / 0.5937 GB, free: 14.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 3.626e-06/0.5353, allocations: 0 / 0.5937 GB, free: 14.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.008613/0.5439, allocations: 2.134 MB / 0.5958 GB, free: 12.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.544, allocations: 59.34 kB / 0.5959 GB, free: 12.06 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.5444, allocations: 364.5 kB / 0.5962 GB, free: 11.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.358e-05/0.5444, allocations: 29.7 kB / 0.5963 GB, free: 11.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.5445, allocations: 164.7 kB / 0.5964 GB, free: 11.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.969e-05/0.5446, allocations: 102.4 kB / 0.5965 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.5448, allocations: 85.62 kB / 0.5966 GB, free: 11.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.5449, allocations: 346.8 kB / 0.5969 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.5453, allocations: 231.9 kB / 0.5971 GB, free: 10.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003528/0.5456, allocations: 236.9 kB / 0.5974 GB, free: 10.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007937/0.5464, allocations: 0.5089 MB / 0.5979 GB, free: 9.988 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5464, allocations: 0 / 0.5979 GB, free: 9.988 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002043/0.5485, allocations: 0.9506 MB / 0.5988 GB, free: 9.027 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.5485, allocations: 8 kB / 0.5988 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.5485, allocations: 0 / 0.5988 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04817/0.5967, allocations: 4.167 MB / 0.6029 GB, free: 4.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.453e-05/0.5968, allocations: 4 kB / 0.6029 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/0.5999, allocations: 1.52 MB / 0.6044 GB, free: 3.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.6002, allocations: 8 kB / 0.6044 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.498e-05/0.6003, allocations: 23.95 kB / 0.6044 GB, free: 3.262 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.0002246/0.6005, allocations: 172.6 kB / 0.6046 GB, free: 3.086 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.6007, allocations: 35.61 kB / 0.6046 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.6025, allocations: 1.088 MB / 0.6056 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.6025, allocations: 8 kB / 0.6057 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.6026, allocations: 4 kB / 0.6057 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.6026, allocations: 3.984 kB / 0.6057 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.6049, allocations: 1.76 MB / 0.6074 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.605, allocations: 0 / 0.6074 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-05/0.605, allocations: 7.938 kB / 0.6074 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/0.6071, allocations: 0.7847 MB / 0.6082 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.6071, allocations: 4 kB / 0.6082 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/0.6093, allocations: 1.541 MB / 0.6097 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.6094, allocations: 0 / 0.6097 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.6107, allocations: 0.9923 MB / 0.6106 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.6109, allocations: 156.6 kB / 0.6108 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.181e-05/0.611, allocations: 12 kB / 0.6108 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.6113, allocations: 4 kB / 0.6108 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.791e-05/0.6114, allocations: 27.91 kB / 0.6108 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.6114, allocations: 15.98 kB / 0.6108 GB, free: 12.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00027/0.6117, allocations: 267 kB / 0.6111 GB, free: 12.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6117, allocations: 0 / 0.6111 GB, free: 12.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001505/0.6132, allocations: 0.5737 MB / 0.6117 GB, free: 11.66 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.001786/0.615, allocations: 1.059 MB / 0.6127 GB, free: 10.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002209/0.6172, allocations: 0.7477 MB / 0.6134 GB, free: 9.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.6172, allocations: 0 / 0.6134 GB, free: 9.848 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.6183, allocations: 475.4 kB / 0.6139 GB, free: 9.383 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.6195, allocations: 280.2 kB / 0.6141 GB, free: 9.117 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.6209, allocations: 0.8852 MB / 0.615 GB, free: 8.211 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.6213, allocations: 0.7963 MB / 0.6158 GB, free: 7.387 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.6214, allocations: 55.28 kB / 0.6158 GB, free: 7.332 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.6215, allocations: 27.44 kB / 0.6159 GB, free: 7.305 MB / 462.1 MB Notification: Performance of SimCode: time 4.81e-07/0.6215, allocations: 0 / 0.6159 GB, free: 7.305 MB / 462.1 MB Notification: Performance of Templates: time 0.0362/0.6577, allocations: 26.25 MB / 0.6415 GB, free: 13.16 MB / 494.1 MB 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)