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.08979/0.08979, allocations: 15.29 MB / 30.79 MB, free: 4.066 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.001116/0.001115, allocations: 102.8 kB / 35.77 MB, free: 3.27 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.00131/0.00131, allocations: 193.1 kB / 40.88 MB, free: 7.203 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.385/1.385, allocations: 222.9 MB / 268.7 MB, free: 6.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1384/0.1384, allocations: 23.36 MB / 346.4 MB, free: 0.707 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 116.3 kB / 418.2 MB, free: 30.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1138, allocations: 59.37 MB / 477.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03606/0.1499, allocations: 34.86 MB / 0.5004 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2482/0.3981, allocations: 17.71 MB / 0.5177 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000597/0.3988, allocations: 9.562 kB / 0.5177 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005962/0.3994, allocations: 116.4 kB / 0.5179 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005235/0.4047, allocations: 1.784 MB / 0.5196 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003705/0.4084, allocations: 1.29 MB / 0.5209 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009558/0.4094, allocations: 0.5601 MB / 0.5214 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009783/0.4104, allocations: 0.724 MB / 0.5221 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.4132, allocations: 1.216 MB / 0.5233 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008551/0.4141, allocations: 0.5704 MB / 0.5239 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.4142, allocations: 66.03 kB / 0.5239 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007859/0.422, allocations: 2.247 MB / 0.5261 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003672/0.4225, allocations: 239.5 kB / 0.5263 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005316/0.423, allocations: 309.1 kB / 0.5266 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0087/0.4317, allocations: 2.765 MB / 0.5293 GB, free: 11.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.4317, allocations: 0.5 kB / 0.5293 GB, free: 11.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4317, allocations: 0.5 kB / 0.5293 GB, free: 11.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.4318, allocations: 0 / 0.5293 GB, free: 11.6 MB / 382.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.003941/0.4357, allocations: 1.053 MB / 0.5304 GB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4358, allocations: 9.969 kB / 0.5304 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.4361, allocations: 41.78 kB / 0.5304 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007714/0.4369, allocations: 413 kB / 0.5308 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.4369, allocations: 20.03 kB / 0.5308 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.437, allocations: 22.81 kB / 0.5308 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.4382, allocations: 0.6019 MB / 0.5314 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.4382, allocations: 0 / 0.5314 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.77e-05/0.4383, allocations: 10.91 kB / 0.5314 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4383, allocations: 6.844 kB / 0.5315 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.4399, allocations: 0.873 MB / 0.5323 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.4426, allocations: 1.443 MB / 0.5337 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000646/0.4433, allocations: 340 kB / 0.534 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.4438, allocations: 307.2 kB / 0.5343 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/0.4441, allocations: 133.7 kB / 0.5345 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.4441, allocations: 37.84 kB / 0.5345 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008496/0.445, allocations: 166.7 kB / 0.5347 GB, free: 10.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 3.426e-06/0.445, allocations: 0 / 0.5347 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.008866/0.4538, allocations: 2.13 MB / 0.5367 GB, free: 9.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.4539, allocations: 55.25 kB / 0.5368 GB, free: 9.746 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004658/0.4544, allocations: 362.7 kB / 0.5371 GB, free: 9.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.4545, allocations: 33.7 kB / 0.5372 GB, free: 9.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.569e-05/0.4546, allocations: 162.1 kB / 0.5373 GB, free: 9.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.4547, allocations: 105.8 kB / 0.5374 GB, free: 9.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/0.4549, allocations: 92.38 kB / 0.5375 GB, free: 9.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.481e-05/0.455, allocations: 343.8 kB / 0.5378 GB, free: 9.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.4554, allocations: 231 kB / 0.5381 GB, free: 9.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/0.4558, allocations: 230.1 kB / 0.5383 GB, free: 9.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008079/0.4566, allocations: 0.513 MB / 0.5388 GB, free: 9.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4566, allocations: 3.938 kB / 0.5388 GB, free: 9.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002071/0.4587, allocations: 0.9457 MB / 0.5397 GB, free: 9.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.4587, allocations: 5.969 kB / 0.5397 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.4587, allocations: 0 / 0.5397 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01649/0.4752, allocations: 2.7 MB / 0.5423 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.374e-05/0.4753, allocations: 2.812 kB / 0.5423 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.4785, allocations: 1.519 MB / 0.5438 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/0.479, allocations: 7.875 kB / 0.5438 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.4791, allocations: 28.8 kB / 0.5439 GB, free: 7.438 MB / 382.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.0002522/0.4794, allocations: 152.4 kB / 0.544 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.4795, allocations: 44.8 kB / 0.5441 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.4815, allocations: 1.092 MB / 0.5451 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.4815, allocations: 6.953 kB / 0.5451 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4815, allocations: 4.484 kB / 0.5451 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4815, allocations: 4 kB / 0.5451 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00229/0.4838, allocations: 1.75 MB / 0.5468 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.4838, allocations: 3.031 kB / 0.5468 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.056e-05/0.4839, allocations: 6.547 kB / 0.5469 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/0.4858, allocations: 0.7902 MB / 0.5476 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.4858, allocations: 10.91 kB / 0.5476 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.4878, allocations: 1.548 MB / 0.5491 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4878, allocations: 0 / 0.5491 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.489, allocations: 0.9873 MB / 0.5501 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.4893, allocations: 154.2 kB / 0.5503 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.4895, allocations: 6.844 kB / 0.5503 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.4898, allocations: 8 kB / 0.5503 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.39e-05/0.4899, allocations: 16.94 kB / 0.5503 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-05/0.49, allocations: 15.78 kB / 0.5503 GB, free: 3.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002616/0.4902, allocations: 270.5 kB / 0.5506 GB, free: 3.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4902, allocations: 0 / 0.5506 GB, free: 3.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002282/0.4925, allocations: 0.58 MB / 0.5511 GB, free: 2.98 MB / 382.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.002921/0.4955, allocations: 1.066 MB / 0.5522 GB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.4978, allocations: 0.7534 MB / 0.5529 GB, free: 2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.4978, allocations: 1.859 kB / 0.5529 GB, free: 2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.4988, allocations: 482.9 kB / 0.5534 GB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.5003, allocations: 296.3 kB / 0.5537 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.5016, allocations: 0.8822 MB / 0.5545 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.5019, allocations: 0.8002 MB / 0.5553 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.5021, allocations: 43.3 kB / 0.5553 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.5021, allocations: 23.44 kB / 0.5554 GB, free: 15.46 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5021, allocations: 0 / 0.5554 GB, free: 15.46 MB / 398.1 MB Notification: Performance of Templates: time 0.03671/0.5389, allocations: 25.6 MB / 0.5804 GB, free: 6.047 MB / 414.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)