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.001588/0.001588, allocations: 183.3 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 102.3 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3646/0.3646, allocations: 36.67 MB / 376.7 MB, free: 41.33 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.91 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1259, allocations: 58.92 MB / 0.4935 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.2592/0.3851, allocations: 26.18 MB / 0.519 GB, free: 25.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01625/0.4014, allocations: 19.33 MB / 0.5379 GB, free: 11.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007566/0.4022, allocations: 16.78 kB / 0.5379 GB, free: 11.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002729/0.405, allocations: 0.7711 MB / 0.5387 GB, free: 10.98 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005006/0.41, allocations: 1.59 MB / 0.5402 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003895/0.414, allocations: 0.9748 MB / 0.5412 GB, free: 9.598 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.4152, allocations: 1.048 MB / 0.5422 GB, free: 9.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007955/0.416, allocations: 0.7437 MB / 0.5429 GB, free: 8.957 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.4187, allocations: 1.21 MB / 0.5441 GB, free: 8.484 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007722/0.4195, allocations: 0.6368 MB / 0.5448 GB, free: 8.258 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.4196, allocations: 66.5 kB / 0.5448 GB, free: 8.258 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008555/0.4282, allocations: 2.75 MB / 0.5475 GB, free: 7.449 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.4285, allocations: 255.2 kB / 0.5477 GB, free: 7.344 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004707/0.429, allocations: 320.7 kB / 0.5481 GB, free: 7.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009382/0.4384, allocations: 2.979 MB / 0.551 GB, free: 6.082 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4384, allocations: 0 / 0.551 GB, free: 6.082 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4384, allocations: 0 / 0.551 GB, free: 6.082 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.4385, allocations: 0 / 0.551 GB, free: 6.082 MB / 378.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.002963/0.4414, allocations: 1.176 MB / 0.5521 GB, free: 5.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.4415, allocations: 9.094 kB / 0.5521 GB, free: 5.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.4417, allocations: 39.53 kB / 0.5522 GB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00077/0.4424, allocations: 488.4 kB / 0.5526 GB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.4425, allocations: 17.81 kB / 0.5526 GB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.269e-05/0.4426, allocations: 25.72 kB / 0.5527 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.4437, allocations: 0.5979 MB / 0.5532 GB, free: 4.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.4437, allocations: 3.938 kB / 0.5532 GB, free: 4.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.043e-05/0.4438, allocations: 15.17 kB / 0.5533 GB, free: 4.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.4438, allocations: 9.344 kB / 0.5533 GB, free: 4.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.4454, allocations: 0.8667 MB / 0.5541 GB, free: 4.391 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003139/0.4486, allocations: 1.505 MB / 0.5556 GB, free: 3.562 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007346/0.4493, allocations: 340.7 kB / 0.5559 GB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005712/0.4499, allocations: 299.5 kB / 0.5562 GB, free: 3.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003084/0.4502, allocations: 136.1 kB / 0.5563 GB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.4503, allocations: 36.39 kB / 0.5564 GB, free: 3.133 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008382/0.4511, allocations: 169.8 kB / 0.5565 GB, free: 3.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.878e-06/0.4511, allocations: 0 / 0.5565 GB, free: 3.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.009411/0.4606, allocations: 2.129 MB / 0.5586 GB, free: 2.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.4606, allocations: 59.78 kB / 0.5587 GB, free: 2.387 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007068/0.4613, allocations: 473.1 kB / 0.5591 GB, free: 2.152 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.769e-05/0.4614, allocations: 34.8 kB / 0.5591 GB, free: 2.113 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.4615, allocations: 168.4 kB / 0.5593 GB, free: 1.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.701e-05/0.4616, allocations: 111.1 kB / 0.5594 GB, free: 1.863 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.4618, allocations: 83.56 kB / 0.5595 GB, free: 1.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4619, allocations: 348.4 kB / 0.5598 GB, free: 1.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004201/0.4623, allocations: 228.8 kB / 0.56 GB, free: 1.348 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.4628, allocations: 239 kB / 0.5603 GB, free: 1.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009407/0.4637, allocations: 0.5097 MB / 0.5608 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4637, allocations: 1.094 kB / 0.5608 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002353/0.4661, allocations: 0.9493 MB / 0.5617 GB, free: 412 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.4661, allocations: 8.906 kB / 0.5617 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.4661, allocations: 1.375 kB / 0.5617 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01607/0.4822, allocations: 2.697 MB / 0.5643 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.156e-05/0.4823, allocations: 3.531 kB / 0.5643 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003589/0.4859, allocations: 1.51 MB / 0.5658 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.4865, allocations: 11.28 kB / 0.5658 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.784e-05/0.4866, allocations: 31.7 kB / 0.5659 GB, free: 14.1 MB / 394.7 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.000319/0.4869, allocations: 172.7 kB / 0.566 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.4871, allocations: 33.41 kB / 0.5661 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.4894, allocations: 1.107 MB / 0.5671 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4894, allocations: 4.812 kB / 0.5671 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4894, allocations: 0 / 0.5671 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4894, allocations: 3.984 kB / 0.5671 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.4924, allocations: 1.788 MB / 0.5689 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.4924, allocations: 0 / 0.5689 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.644e-05/0.4924, allocations: 2.75 kB / 0.5689 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005641/0.4981, allocations: 1.397 MB / 0.5703 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.4981, allocations: 6.531 kB / 0.5703 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002357/0.5005, allocations: 1.549 MB / 0.5718 GB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5005, allocations: 0 / 0.5718 GB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/0.5029, allocations: 1.966 MB / 0.5737 GB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/0.5033, allocations: 180.5 kB / 0.5739 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.622e-05/0.5033, allocations: 7.938 kB / 0.5739 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.5037, allocations: 15.89 kB / 0.5739 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.581e-05/0.5038, allocations: 27.72 kB / 0.5739 GB, free: 7.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/0.5038, allocations: 15.94 kB / 0.5739 GB, free: 7.703 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003987/0.5042, allocations: 343.1 kB / 0.5743 GB, free: 7.371 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5042, allocations: 0 / 0.5743 GB, free: 7.371 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002123/0.5063, allocations: 0.6674 MB / 0.5749 GB, free: 6.703 MB / 394.7 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.002149/0.5085, allocations: 1.168 MB / 0.5761 GB, free: 5.543 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.5108, allocations: 0.7283 MB / 0.5768 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5108, allocations: 4 kB / 0.5768 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.5119, allocations: 459.2 kB / 0.5772 GB, free: 4.367 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.5133, allocations: 280.7 kB / 0.5775 GB, free: 4.098 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.5151, allocations: 1.306 MB / 0.5788 GB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.5155, allocations: 0.8278 MB / 0.5796 GB, free: 1.895 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.5158, allocations: 55.09 kB / 0.5796 GB, free: 1.844 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.765e-05/0.5159, allocations: 35.36 kB / 0.5796 GB, free: 1.812 MB / 394.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5159, allocations: 3.938 kB / 0.5796 GB, free: 1.809 MB / 394.7 MB Notification: Performance of Templates: time 0.03853/0.5544, allocations: 27.38 MB / 0.6064 GB, free: 6.551 MB / 426.7 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)