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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1197/0.1197, allocations: 15.27 MB / 30.54 MB, free: 5.719 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.0008184/0.0008184, allocations: 114 kB / 35.57 MB, free: 1.133 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.001184/0.001184, allocations: 172.5 kB / 40.68 MB, free: 4.746 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.428/1.428, allocations: 223.3 MB / 268.9 MB, free: 2.027 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1292/0.1292, allocations: 23.4 MB / 347.7 MB, free: 6.746 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0005857/0.0005858, allocations: 23.98 kB / 420.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3181, allocations: 60.47 MB / 480.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.02696/0.3451, allocations: 34.57 MB / 0.5033 GB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01937/0.3645, allocations: 17.5 MB / 0.5204 GB, free: 136 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006024/0.3652, allocations: 11.88 kB / 0.5204 GB, free: 124 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005068/0.3657, allocations: 87.42 kB / 0.5205 GB, free: 36 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006072/0.3718, allocations: 1.65 MB / 0.5221 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004332/0.3762, allocations: 1.162 MB / 0.5232 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.3775, allocations: 0.8215 MB / 0.524 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009789/0.3785, allocations: 0.6932 MB / 0.5247 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003231/0.3817, allocations: 1.196 MB / 0.5259 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009541/0.3827, allocations: 0.5806 MB / 0.5264 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001524/0.3829, allocations: 63.94 kB / 0.5265 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007664/0.3905, allocations: 2.522 MB / 0.529 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002991/0.3909, allocations: 235.4 kB / 0.5292 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004415/0.3913, allocations: 316.7 kB / 0.5295 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008429/0.3998, allocations: 2.714 MB / 0.5321 GB, free: 4.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3998, allocations: 0 / 0.5321 GB, free: 4.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3998, allocations: 0 / 0.5321 GB, free: 4.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3998, allocations: 0 / 0.5321 GB, free: 4.043 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.002485/0.4023, allocations: 0.9311 MB / 0.533 GB, free: 3.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.4024, allocations: 12.03 kB / 0.5331 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/0.4025, allocations: 62.53 kB / 0.5331 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.4026, allocations: 39.53 kB / 0.5332 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006003/0.4033, allocations: 409.8 kB / 0.5335 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.4033, allocations: 20.56 kB / 0.5336 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.4034, allocations: 23.94 kB / 0.5336 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.4044, allocations: 0.6019 MB / 0.5342 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.4044, allocations: 0 / 0.5342 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-05/0.4045, allocations: 8 kB / 0.5342 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.4045, allocations: 11.94 kB / 0.5342 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.406, allocations: 0.8649 MB / 0.535 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.4088, allocations: 1.465 MB / 0.5365 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006662/0.4095, allocations: 334.6 kB / 0.5368 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005132/0.41, allocations: 304.7 kB / 0.5371 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002543/0.4102, allocations: 129.6 kB / 0.5372 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.4103, allocations: 30.56 kB / 0.5372 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008334/0.4111, allocations: 171.6 kB / 0.5374 GB, free: 14.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.4111, allocations: 0 / 0.5374 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00952/0.4207, allocations: 2.153 MB / 0.5395 GB, free: 12.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.4208, allocations: 59.34 kB / 0.5396 GB, free: 12.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004848/0.4213, allocations: 368.5 kB / 0.5399 GB, free: 11.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/0.4213, allocations: 29.7 kB / 0.5399 GB, free: 11.78 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.4215, allocations: 164.5 kB / 0.5401 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4216, allocations: 106.5 kB / 0.5402 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.936e-05/0.4217, allocations: 29.7 kB / 0.5402 GB, free: 11.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4218, allocations: 346.8 kB / 0.5406 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004096/0.4223, allocations: 227.9 kB / 0.5408 GB, free: 10.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.4227, allocations: 231.9 kB / 0.541 GB, free: 10.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009124/0.4236, allocations: 0.5061 MB / 0.5415 GB, free: 10.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4236, allocations: 0 / 0.5415 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002238/0.4259, allocations: 0.9544 MB / 0.5424 GB, free: 9.203 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.128e-05/0.4259, allocations: 7.984 kB / 0.5424 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.426, allocations: 4 kB / 0.5424 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01725/0.4432, allocations: 2.728 MB / 0.5451 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.184e-05/0.4433, allocations: 4 kB / 0.5451 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.4469, allocations: 1.524 MB / 0.5466 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.4473, allocations: 8 kB / 0.5466 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.933e-05/0.4474, allocations: 31.95 kB / 0.5466 GB, free: 4.863 MB / 398.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.000276/0.4477, allocations: 168.1 kB / 0.5468 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4478, allocations: 35.53 kB / 0.5468 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/0.4502, allocations: 1.088 MB / 0.5479 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.4502, allocations: 4 kB / 0.5479 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.4502, allocations: 3.938 kB / 0.5479 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.4502, allocations: 3.984 kB / 0.5479 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.4531, allocations: 1.744 MB / 0.5496 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4531, allocations: 0 / 0.5496 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.243e-05/0.4531, allocations: 7.938 kB / 0.5496 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005604/0.4587, allocations: 1.432 MB / 0.551 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.4588, allocations: 11.98 kB / 0.551 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.4615, allocations: 1.545 MB / 0.5525 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4615, allocations: 0 / 0.5525 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.4631, allocations: 0.9912 MB / 0.5535 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/0.4634, allocations: 164.5 kB / 0.5536 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.486e-05/0.4635, allocations: 8 kB / 0.5537 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.4638, allocations: 4 kB / 0.5537 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4639, allocations: 27.91 kB / 0.5537 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.464, allocations: 16 kB / 0.5537 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000346/0.4644, allocations: 271 kB / 0.554 GB, free: 13.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4644, allocations: 0 / 0.554 GB, free: 13.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001901/0.4663, allocations: 0.5737 MB / 0.5545 GB, free: 12.62 MB / 414.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.005424/0.4717, allocations: 2.507 MB / 0.557 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002754/0.4745, allocations: 0.7437 MB / 0.5577 GB, free: 9.344 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.4745, allocations: 0 / 0.5577 GB, free: 9.344 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.4757, allocations: 462.5 kB / 0.5581 GB, free: 8.898 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.4776, allocations: 266.9 kB / 0.5584 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.4878, allocations: 5.466 MB / 0.5637 GB, free: 3.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005094/0.4884, allocations: 0.808 MB / 0.5645 GB, free: 2.266 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.4887, allocations: 43.3 kB / 0.5646 GB, free: 2.223 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.4889, allocations: 107.4 kB / 0.5647 GB, free: 2.117 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4889, allocations: 0 / 0.5647 GB, free: 2.117 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3287/0.8177, allocations: 29.11 MB / 0.5931 GB, free: 103.1 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.8179, allocations: 226.5 kB / 0.5933 GB, free: 102.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.516, allocations: 0 / 0.5933 GB, free: 102.8 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)