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.1034/0.1034, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.001174/0.001174, allocations: 104.4 kB / 35.91 MB, free: 3.195 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.001533/0.001533, allocations: 194.1 kB / 41.01 MB, free: 7.137 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.418/1.418, allocations: 222.9 MB / 268.9 MB, free: 6.938 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1379/0.1379, allocations: 23.35 MB / 346.6 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 104.2 kB / 478.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3475, allocations: 59.37 MB / 0.5256 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03492/0.3824, allocations: 34.9 MB / 0.5597 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.4007, allocations: 17.71 MB / 0.577 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/0.4011, allocations: 7.625 kB / 0.577 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004755/0.4016, allocations: 111.7 kB / 0.5771 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00446/0.4061, allocations: 1.788 MB / 0.5788 GB, free: 13.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00347/0.4096, allocations: 1.285 MB / 0.5801 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007684/0.4103, allocations: 0.5602 MB / 0.5806 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007899/0.4111, allocations: 0.7293 MB / 0.5813 GB, free: 11.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002323/0.4135, allocations: 1.219 MB / 0.5825 GB, free: 10 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007121/0.4142, allocations: 0.5728 MB / 0.5831 GB, free: 9.426 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.865e-05/0.4143, allocations: 68 kB / 0.5832 GB, free: 9.359 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005468/0.4198, allocations: 2.133 MB / 0.5852 GB, free: 7.223 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.42, allocations: 243.4 kB / 0.5855 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002925/0.4203, allocations: 306.9 kB / 0.5858 GB, free: 6.684 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005316/0.4257, allocations: 2.734 MB / 0.5884 GB, free: 3.941 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4257, allocations: 0 / 0.5884 GB, free: 3.941 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4257, allocations: 4 kB / 0.5884 GB, free: 3.938 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.4257, 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.002112/0.4278, allocations: 1.052 MB / 0.5895 GB, free: 2.836 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.4279, allocations: 8.031 kB / 0.5895 GB, free: 2.828 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.428, allocations: 35.62 kB / 0.5895 GB, free: 2.793 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.4287, allocations: 425.8 kB / 0.5899 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.4287, allocations: 20.56 kB / 0.5899 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.4288, allocations: 23.94 kB / 0.59 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.4298, allocations: 0.6019 MB / 0.5905 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.4298, allocations: 0 / 0.5905 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.118e-05/0.4299, allocations: 12 kB / 0.5906 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4299, allocations: 4 kB / 0.5906 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.4312, allocations: 0.8688 MB / 0.5914 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.4337, allocations: 1.456 MB / 0.5928 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005988/0.4343, allocations: 334.6 kB / 0.5931 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004742/0.4348, allocations: 304.7 kB / 0.5934 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002338/0.4351, allocations: 109.6 kB / 0.5935 GB, free: 14.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.4351, allocations: 38.56 kB / 0.5936 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007701/0.4359, allocations: 163.6 kB / 0.5937 GB, free: 14.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.4359, allocations: 4 kB / 0.5937 GB, free: 14.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.00899/0.4449, allocations: 2.134 MB / 0.5958 GB, free: 12.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.445, allocations: 55.34 kB / 0.5959 GB, free: 12.06 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000393/0.4454, allocations: 368.5 kB / 0.5962 GB, free: 11.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.4454, allocations: 29.7 kB / 0.5963 GB, free: 11.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.4456, allocations: 164.6 kB / 0.5964 GB, free: 11.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.587e-05/0.4457, allocations: 106.4 kB / 0.5965 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.4458, allocations: 85.62 kB / 0.5966 GB, free: 11.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.446, allocations: 346.8 kB / 0.5969 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/0.4463, allocations: 235.9 kB / 0.5971 GB, free: 10.72 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.4467, allocations: 240.9 kB / 0.5974 GB, free: 10.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008304/0.4476, allocations: 0.5089 MB / 0.5979 GB, free: 9.977 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4476, allocations: 0 / 0.5979 GB, free: 9.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002089/0.4497, allocations: 0.9506 MB / 0.5988 GB, free: 9.016 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.4497, allocations: 4 kB / 0.5988 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.4497, allocations: 0 / 0.5988 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05104/0.5007, allocations: 4.167 MB / 0.6029 GB, free: 4.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.922e-05/0.5008, allocations: 4 kB / 0.6029 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/0.5039, allocations: 1.524 MB / 0.6044 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.5042, allocations: 8 kB / 0.6044 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.818e-05/0.5043, allocations: 27.95 kB / 0.6044 GB, free: 3.246 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.0002355/0.5045, allocations: 161.8 kB / 0.6046 GB, free: 3.078 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.5046, allocations: 35.62 kB / 0.6046 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.5065, allocations: 1.096 MB / 0.6057 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.5066, allocations: 4 kB / 0.6057 GB, free: 1.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.5066, allocations: 0 / 0.6057 GB, free: 1.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.5066, allocations: 7.984 kB / 0.6057 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.5089, allocations: 1.756 MB / 0.6074 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.5089, allocations: 3.938 kB / 0.6074 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.861e-05/0.5089, allocations: 3.938 kB / 0.6074 GB, free: 100 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.5109, allocations: 0.7924 MB / 0.6082 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.5109, allocations: 4 kB / 0.6082 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.5131, allocations: 1.537 MB / 0.6097 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5131, allocations: 4 kB / 0.6097 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.5144, allocations: 0.9923 MB / 0.6106 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.5146, allocations: 152.6 kB / 0.6108 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.5146, allocations: 8 kB / 0.6108 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.5149, allocations: 4 kB / 0.6108 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.515, allocations: 27.91 kB / 0.6108 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/0.515, allocations: 15.98 kB / 0.6108 GB, free: 12.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002646/0.5153, allocations: 271 kB / 0.6111 GB, free: 12.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5153, allocations: 0 / 0.6111 GB, free: 12.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001668/0.517, allocations: 0.5737 MB / 0.6117 GB, free: 11.65 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.001716/0.5187, allocations: 1.046 MB / 0.6127 GB, free: 10.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002235/0.521, allocations: 0.7476 MB / 0.6134 GB, free: 9.852 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.521, allocations: 0 / 0.6134 GB, free: 9.852 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.5221, allocations: 471.4 kB / 0.6139 GB, free: 9.391 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.5234, allocations: 291.7 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.001349/0.5248, allocations: 0.8757 MB / 0.615 GB, free: 8.215 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.5252, allocations: 0.8041 MB / 0.6158 GB, free: 7.383 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.5253, allocations: 43.3 kB / 0.6158 GB, free: 7.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.816e-05/0.5254, allocations: 27.44 kB / 0.6159 GB, free: 7.312 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5254, allocations: 0 / 0.6159 GB, free: 7.312 MB / 462.1 MB Notification: Performance of Templates: time 0.03427/0.5597, allocations: 25.83 MB / 0.6411 GB, free: 13.59 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)