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.09481/0.09481, allocations: 15.28 MB / 30.78 MB, free: 4.215 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.001046/0.001046, allocations: 107.2 kB / 35.78 MB, free: 3.234 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.001156/0.001156, allocations: 197 kB / 40.88 MB, free: 7.223 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.38/1.38, allocations: 222.9 MB / 268.7 MB, free: 6.879 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1349/0.1349, allocations: 23.36 MB / 346.4 MB, free: 0.7188 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 119.8 kB / 418.3 MB, free: 30.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09737, allocations: 59.37 MB / 477.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03584/0.1332, allocations: 34.87 MB / 0.5005 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2212/0.3544, allocations: 17.71 MB / 0.5178 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.3547, allocations: 7 kB / 0.5178 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004147/0.3552, allocations: 116.9 kB / 0.518 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00424/0.3595, allocations: 1.785 MB / 0.5197 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.3625, allocations: 1.293 MB / 0.521 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000738/0.3633, allocations: 0.5572 MB / 0.5215 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008558/0.3641, allocations: 0.7299 MB / 0.5222 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.3665, allocations: 1.209 MB / 0.5234 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007271/0.3672, allocations: 0.5727 MB / 0.524 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.3674, allocations: 66.25 kB / 0.524 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005424/0.3728, allocations: 2.246 MB / 0.5262 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.373, allocations: 241.6 kB / 0.5265 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000352/0.3734, allocations: 304.4 kB / 0.5267 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004973/0.3784, allocations: 2.769 MB / 0.5294 GB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3784, allocations: 0 / 0.5294 GB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3784, allocations: 0.5 kB / 0.5294 GB, free: 11.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3784, allocations: 0 / 0.5294 GB, free: 11.66 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.002219/0.3806, allocations: 1.053 MB / 0.5305 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3807, allocations: 10.09 kB / 0.5305 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.895e-05/0.3808, allocations: 59.73 kB / 0.5305 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.3809, allocations: 42.64 kB / 0.5306 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.3814, allocations: 408 kB / 0.531 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.3815, allocations: 18.73 kB / 0.531 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.227e-05/0.3815, allocations: 26.14 kB / 0.531 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009261/0.3825, allocations: 0.6009 MB / 0.5316 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.3825, allocations: 0 / 0.5316 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.394e-05/0.3826, allocations: 12.53 kB / 0.5316 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.3826, allocations: 9.688 kB / 0.5316 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.384, allocations: 0.8677 MB / 0.5325 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.3863, allocations: 1.447 MB / 0.5339 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.3869, allocations: 340.7 kB / 0.5342 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004489/0.3874, allocations: 303.8 kB / 0.5345 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002491/0.3876, allocations: 129.5 kB / 0.5346 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.3877, allocations: 35.12 kB / 0.5347 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007794/0.3884, allocations: 174.5 kB / 0.5348 GB, free: 10.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.3885, allocations: 0 / 0.5348 GB, free: 10.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.008994/0.3975, allocations: 2.129 MB / 0.5369 GB, free: 9.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.3975, allocations: 55.83 kB / 0.537 GB, free: 9.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.3978, allocations: 368.1 kB / 0.5373 GB, free: 9.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.3979, allocations: 29.86 kB / 0.5373 GB, free: 9.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.85e-05/0.398, allocations: 168.8 kB / 0.5375 GB, free: 9.535 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.001e-05/0.3981, allocations: 106.6 kB / 0.5376 GB, free: 9.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.3982, allocations: 88.64 kB / 0.5377 GB, free: 9.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.3983, allocations: 343.1 kB / 0.538 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/0.3986, allocations: 231.4 kB / 0.5382 GB, free: 9.137 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.399, allocations: 231.6 kB / 0.5384 GB, free: 9.137 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007743/0.3998, allocations: 0.5101 MB / 0.5389 GB, free: 9.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3998, allocations: 0 / 0.5389 GB, free: 9.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001976/0.4018, allocations: 0.951 MB / 0.5399 GB, free: 9.051 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.4018, allocations: 4.406 kB / 0.5399 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.4018, allocations: 4 kB / 0.5399 GB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0162/0.418, allocations: 2.702 MB / 0.5425 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.183e-05/0.4181, allocations: 6.891 kB / 0.5425 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.4209, allocations: 1.519 MB / 0.544 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.4213, allocations: 4 kB / 0.544 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/0.4213, allocations: 26.19 kB / 0.544 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.0001947/0.4215, allocations: 158.6 kB / 0.5442 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.4216, allocations: 45.53 kB / 0.5442 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.4235, allocations: 1.087 MB / 0.5453 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.4235, allocations: 7.031 kB / 0.5453 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.4235, allocations: 2.969 kB / 0.5453 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.4235, allocations: 3.984 kB / 0.5453 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.4255, allocations: 1.756 MB / 0.547 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.4255, allocations: 0 / 0.547 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.952e-05/0.4256, allocations: 2.844 kB / 0.547 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/0.4274, allocations: 0.7896 MB / 0.5478 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.4275, allocations: 10.8 kB / 0.5478 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.4294, allocations: 1.545 MB / 0.5493 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4294, allocations: 2.969 kB / 0.5493 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.4305, allocations: 0.9834 MB / 0.5503 GB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.4307, allocations: 152.5 kB / 0.5504 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.387e-05/0.4308, allocations: 17.89 kB / 0.5504 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00027/0.4311, allocations: 4 kB / 0.5504 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.08e-05/0.4312, allocations: 21.38 kB / 0.5505 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/0.4312, allocations: 12.12 kB / 0.5505 GB, free: 3.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002322/0.4314, allocations: 266.2 kB / 0.5507 GB, free: 3.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4315, allocations: 0 / 0.5507 GB, free: 3.184 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001909/0.4334, allocations: 0.5847 MB / 0.5513 GB, free: 2.984 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.003138/0.4365, allocations: 2.521 MB / 0.5538 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002139/0.4387, allocations: 0.757 MB / 0.5545 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4387, allocations: 0 / 0.5545 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.4397, allocations: 481.5 kB / 0.555 GB, free: 36 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4411, allocations: 288.6 kB / 0.5552 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007653/0.4488, allocations: 5.306 MB / 0.5604 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.4491, allocations: 0.8118 MB / 0.5612 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.4493, allocations: 43.3 kB / 0.5613 GB, free: 9.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.4495, allocations: 111.4 kB / 0.5614 GB, free: 9.422 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4495, allocations: 0 / 0.5614 GB, free: 9.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05251/0.502, allocations: 30.28 MB / 0.5909 GB, free: 11.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.88, allocations: 6.594 kB / 0.5909 GB, free: 11.39 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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)