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.155/0.155, allocations: 15.28 MB / 30.51 MB, free: 4.34 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.001769/0.001769, allocations: 110.5 kB / 35.49 MB, free: 3.383 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.00225/0.00225, allocations: 200.5 kB / 40.59 MB, free: 7.445 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.641/1.641, allocations: 222.9 MB / 268.4 MB, free: 7.566 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1929/0.1929, allocations: 23.36 MB / 346.1 MB, free: 0.7734 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.003688/0.003688, allocations: 111.8 kB / 417.8 MB, free: 30.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1502, allocations: 59.36 MB / 477.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.04279/0.193, allocations: 35.02 MB / 0.5001 GB, free: 76 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3866/0.5797, allocations: 17.53 MB / 0.5173 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007806/0.5805, allocations: 18.47 kB / 0.5173 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005877/0.5811, allocations: 87.31 kB / 0.5174 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007253/0.5884, allocations: 1.661 MB / 0.519 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005158/0.5936, allocations: 1.178 MB / 0.5201 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001705/0.5954, allocations: 0.5651 MB / 0.5207 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.5968, allocations: 0.718 MB / 0.5214 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004091/0.6009, allocations: 1.209 MB / 0.5226 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.6021, allocations: 0.5866 MB / 0.5231 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.6022, allocations: 66.66 kB / 0.5232 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01008/0.6123, allocations: 2.394 MB / 0.5255 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004494/0.6128, allocations: 250.4 kB / 0.5258 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006104/0.6134, allocations: 300.7 kB / 0.5261 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.6244, allocations: 2.735 MB / 0.5287 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.6244, allocations: 0.8438 kB / 0.5287 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.6244, allocations: 0 / 0.5287 GB, free: 14.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.661e-05/0.6245, allocations: 1.5 kB / 0.5287 GB, free: 14.11 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.003179/0.6277, allocations: 1.056 MB / 0.5298 GB, free: 13.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.6277, allocations: 14.27 kB / 0.5298 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.6279, allocations: 58.42 kB / 0.5298 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.628, allocations: 33.25 kB / 0.5299 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.6287, allocations: 408.5 kB / 0.5303 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.6287, allocations: 15.31 kB / 0.5303 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.784e-05/0.6288, allocations: 24.62 kB / 0.5303 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.63, allocations: 0.6028 MB / 0.5309 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.63, allocations: 7.188 kB / 0.5309 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-05/0.6301, allocations: 11.56 kB / 0.5309 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.6301, allocations: 9.938 kB / 0.5309 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.6317, allocations: 0.8665 MB / 0.5318 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/0.6347, allocations: 1.434 MB / 0.5332 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007271/0.6354, allocations: 349.1 kB / 0.5335 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004966/0.636, allocations: 297.8 kB / 0.5338 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003246/0.6363, allocations: 144.3 kB / 0.5339 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.6363, allocations: 35.62 kB / 0.5339 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009497/0.6373, allocations: 182.3 kB / 0.5341 GB, free: 12.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.414e-06/0.6373, allocations: 0 / 0.5341 GB, free: 12.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.009331/0.6466, allocations: 2.128 MB / 0.5362 GB, free: 12.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.6467, allocations: 60.5 kB / 0.5363 GB, free: 12.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004573/0.6472, allocations: 361.9 kB / 0.5366 GB, free: 12.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.6472, allocations: 30.58 kB / 0.5366 GB, free: 12.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.6473, allocations: 168.8 kB / 0.5368 GB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.6475, allocations: 104.7 kB / 0.5369 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.6477, allocations: 89.69 kB / 0.537 GB, free: 11.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/0.6478, allocations: 345.7 kB / 0.5373 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.6482, allocations: 229.8 kB / 0.5375 GB, free: 11.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.6486, allocations: 231.1 kB / 0.5377 GB, free: 11.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008962/0.6495, allocations: 0.5143 MB / 0.5382 GB, free: 11.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.6495, allocations: 0 / 0.5382 GB, free: 11.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002113/0.6516, allocations: 0.9405 MB / 0.5392 GB, free: 11.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.6516, allocations: 5.875 kB / 0.5392 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.6517, allocations: 0 / 0.5392 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01734/0.669, allocations: 2.707 MB / 0.5418 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.841e-05/0.6691, allocations: 2.812 kB / 0.5418 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.6723, allocations: 1.53 MB / 0.5433 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.6728, allocations: 4 kB / 0.5433 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.499e-05/0.6728, allocations: 27.92 kB / 0.5433 GB, free: 10.11 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.0003066/0.6732, allocations: 163.2 kB / 0.5435 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.6733, allocations: 36.94 kB / 0.5435 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.6752, allocations: 1.097 MB / 0.5446 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.6752, allocations: 2.875 kB / 0.5446 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.6753, allocations: 4 kB / 0.5446 GB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.6753, allocations: 2.969 kB / 0.5446 GB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.6776, allocations: 1.754 MB / 0.5463 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.371e-06/0.6776, allocations: 3.938 kB / 0.5463 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.691e-05/0.6776, allocations: 2.781 kB / 0.5463 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001942/0.6796, allocations: 0.7862 MB / 0.5471 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.6796, allocations: 11.03 kB / 0.5471 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.6817, allocations: 1.548 MB / 0.5486 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6817, allocations: 0 / 0.5486 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.683, allocations: 0.9841 MB / 0.5496 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.6832, allocations: 155.2 kB / 0.5497 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.322e-05/0.6833, allocations: 6.531 kB / 0.5497 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.6836, allocations: 15.05 kB / 0.5498 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.933e-05/0.6837, allocations: 18.73 kB / 0.5498 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.376e-05/0.6837, allocations: 19.33 kB / 0.5498 GB, free: 6.016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00028/0.684, allocations: 265.6 kB / 0.55 GB, free: 5.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.684, allocations: 0 / 0.55 GB, free: 5.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002386/0.6864, allocations: 0.5843 MB / 0.5506 GB, free: 5.648 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.003972/0.6904, allocations: 2.508 MB / 0.5531 GB, free: 3.625 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002222/0.6926, allocations: 0.7493 MB / 0.5538 GB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6926, allocations: 4 kB / 0.5538 GB, free: 2.871 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009978/0.6936, allocations: 480.3 kB / 0.5543 GB, free: 2.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.695, allocations: 289.1 kB / 0.5545 GB, free: 2.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008034/0.703, allocations: 5.419 MB / 0.5598 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.7035, allocations: 0.8107 MB / 0.5606 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002578/0.7037, allocations: 39.31 kB / 0.5607 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.7039, allocations: 115.4 kB / 0.5608 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7039, allocations: 0 / 0.5608 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05587/0.7598, allocations: 30.11 MB / 0.5902 GB, free: 13.89 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/0.76, allocations: 228 kB / 0.5904 GB, free: 13.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.983/3.743, allocations: 0 / 0.5904 GB, free: 13.63 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)