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.1359/0.1359, allocations: 15.29 MB / 30.41 MB, free: 4.395 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.00133/0.00133, allocations: 108.2 kB / 35.38 MB, free: 3.453 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.0016/0.0016, allocations: 193.1 kB / 40.47 MB, free: 7.531 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.554/1.554, allocations: 222.9 MB / 268.3 MB, free: 6.453 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.2181/0.2181, allocations: 23.35 MB / 346 MB, free: 500 kB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001909/0.00191, allocations: 111.8 kB / 417.6 MB, free: 30.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1365, allocations: 59.36 MB / 476.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03881/0.1754, allocations: 35.19 MB / 0.5001 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3352/0.5106, allocations: 17.7 MB / 0.5174 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007223/0.5114, allocations: 16.22 kB / 0.5174 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005451/0.5119, allocations: 87.86 kB / 0.5175 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00638/0.5184, allocations: 1.656 MB / 0.5191 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004406/0.5228, allocations: 1.155 MB / 0.5202 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.5245, allocations: 0.8279 MB / 0.5211 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.5257, allocations: 0.696 MB / 0.5217 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003362/0.529, allocations: 1.198 MB / 0.5229 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.5301, allocations: 0.5853 MB / 0.5235 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001444/0.5303, allocations: 61.62 kB / 0.5235 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009854/0.5401, allocations: 2.515 MB / 0.526 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005031/0.5407, allocations: 238.6 kB / 0.5262 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006686/0.5414, allocations: 303.1 kB / 0.5265 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01251/0.5539, allocations: 2.72 MB / 0.5292 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.554, allocations: 0 / 0.5292 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.554, allocations: 0 / 0.5292 GB, free: 14.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.554, allocations: 1.062 kB / 0.5292 GB, free: 14.05 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.00371/0.5577, allocations: 1.053 MB / 0.5302 GB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.202e-05/0.5578, allocations: 11.28 kB / 0.5302 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.5579, allocations: 63.77 kB / 0.5303 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.5581, allocations: 34.75 kB / 0.5303 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.5588, allocations: 403.7 kB / 0.5307 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.5588, allocations: 16.41 kB / 0.5307 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.5589, allocations: 23.69 kB / 0.5307 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.5602, allocations: 0.6039 MB / 0.5313 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.5602, allocations: 0 / 0.5313 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.757e-05/0.5603, allocations: 8.688 kB / 0.5313 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.5603, allocations: 10.06 kB / 0.5313 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001942/0.5623, allocations: 0.8696 MB / 0.5322 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003185/0.5655, allocations: 1.448 MB / 0.5336 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008783/0.5664, allocations: 343.5 kB / 0.5339 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006619/0.567, allocations: 303.2 kB / 0.5342 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004207/0.5675, allocations: 133.8 kB / 0.5343 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.5675, allocations: 42.78 kB / 0.5344 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001005/0.5685, allocations: 169.2 kB / 0.5345 GB, free: 12.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 3.667e-06/0.5686, allocations: 0 / 0.5345 GB, free: 12.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.01053/0.5791, allocations: 2.131 MB / 0.5366 GB, free: 12.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.5792, allocations: 53.75 kB / 0.5367 GB, free: 12.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007039/0.5799, allocations: 368.2 kB / 0.537 GB, free: 12.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/0.58, allocations: 32.83 kB / 0.537 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.5801, allocations: 162 kB / 0.5372 GB, free: 11.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.5803, allocations: 107.6 kB / 0.5373 GB, free: 11.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.5805, allocations: 89.53 kB / 0.5374 GB, free: 11.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.5806, allocations: 344.6 kB / 0.5377 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000432/0.5811, allocations: 226.9 kB / 0.5379 GB, free: 11.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004976/0.5816, allocations: 234.6 kB / 0.5382 GB, free: 11.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009928/0.5826, allocations: 0.5145 MB / 0.5387 GB, free: 11.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.5826, allocations: 0 / 0.5387 GB, free: 11.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.00245/0.585, allocations: 0.9447 MB / 0.5396 GB, free: 11.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.5851, allocations: 6.625 kB / 0.5396 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.5851, allocations: 0 / 0.5396 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01803/0.6031, allocations: 2.699 MB / 0.5422 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.633e-05/0.6033, allocations: 2.969 kB / 0.5422 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003353/0.6066, allocations: 1.521 MB / 0.5437 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.6071, allocations: 7.375 kB / 0.5437 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.801e-05/0.6072, allocations: 30.05 kB / 0.5438 GB, free: 9.793 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.000289/0.6075, allocations: 156.1 kB / 0.5439 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.6076, allocations: 36.38 kB / 0.5439 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.6097, allocations: 1.094 MB / 0.545 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.6097, allocations: 9.922 kB / 0.545 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.6098, allocations: 4.703 kB / 0.545 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.6098, allocations: 1.859 kB / 0.545 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.6123, allocations: 1.747 MB / 0.5467 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.6123, allocations: 0 / 0.5467 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.002e-05/0.6124, allocations: 6.641 kB / 0.5467 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005646/0.6181, allocations: 1.388 MB / 0.5481 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.03e-05/0.6181, allocations: 8.172 kB / 0.5481 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/0.6205, allocations: 1.55 MB / 0.5496 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.6205, allocations: 0 / 0.5496 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.622, allocations: 0.9882 MB / 0.5506 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.6223, allocations: 156.8 kB / 0.5507 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.6224, allocations: 6.969 kB / 0.5507 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002761/0.6226, allocations: 10.94 kB / 0.5507 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.6228, allocations: 20.31 kB / 0.5508 GB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.542e-05/0.6228, allocations: 15.86 kB / 0.5508 GB, free: 5.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003651/0.6232, allocations: 266.6 kB / 0.551 GB, free: 5.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6232, allocations: 0 / 0.551 GB, free: 5.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002878/0.6261, allocations: 0.5808 MB / 0.5516 GB, free: 5.102 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.004637/0.6307, allocations: 2.516 MB / 0.5541 GB, free: 2.688 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.6332, allocations: 0.7318 MB / 0.5548 GB, free: 1.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.6332, allocations: 7.938 kB / 0.5548 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.6343, allocations: 460.5 kB / 0.5552 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.6358, allocations: 280.5 kB / 0.5555 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.646, allocations: 5.414 MB / 0.5608 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.6466, allocations: 0.8108 MB / 0.5616 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004193/0.6471, allocations: 51.23 kB / 0.5616 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.6473, allocations: 103.4 kB / 0.5617 GB, free: 10.8 MB / 398.1 MB Notification: Performance of SimCode: time 2.615e-06/0.6473, allocations: 4 kB / 0.5617 GB, free: 10.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07338/0.7207, allocations: 29.34 MB / 0.5904 GB, free: 13.73 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.7209, allocations: 227.2 kB / 0.5906 GB, free: 13.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.85/3.571, allocations: 4.062 kB / 0.5906 GB, free: 13.46 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)