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.08604/0.08605, allocations: 15.28 MB / 30.86 MB, free: 4.164 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.0009971/0.0009971, allocations: 114.7 kB / 35.87 MB, free: 3.199 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.001133/0.001133, allocations: 193.1 kB / 40.97 MB, free: 7.16 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.35/1.35, allocations: 222.9 MB / 268.8 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.1418/0.1418, allocations: 23.35 MB / 346.5 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 107.8 kB / 418.5 MB, free: 30.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1071, allocations: 59.36 MB / 477.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03549/0.1427, allocations: 34.88 MB / 0.5007 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2494/0.3921, allocations: 17.72 MB / 0.518 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003391/0.3925, allocations: 7.719 kB / 0.518 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004602/0.393, allocations: 110.8 kB / 0.5181 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005449/0.3985, allocations: 1.784 MB / 0.5199 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003668/0.4022, allocations: 1.293 MB / 0.5211 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008953/0.4031, allocations: 0.5661 MB / 0.5217 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008816/0.404, allocations: 0.7247 MB / 0.5224 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.4065, allocations: 1.213 MB / 0.5236 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008637/0.4074, allocations: 0.5665 MB / 0.5241 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.4075, allocations: 66.22 kB / 0.5242 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007128/0.4147, allocations: 2.148 MB / 0.5263 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004041/0.4151, allocations: 243.7 kB / 0.5265 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005771/0.4157, allocations: 305.1 kB / 0.5268 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009954/0.4257, allocations: 2.729 MB / 0.5295 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.4257, allocations: 0.5938 kB / 0.5295 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4257, allocations: 0 / 0.5295 GB, free: 11.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.4257, allocations: 0.5625 kB / 0.5295 GB, free: 11.73 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.002612/0.4284, allocations: 1.057 MB / 0.5305 GB, free: 11.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.4284, allocations: 9.625 kB / 0.5305 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.028e-05/0.4285, allocations: 57.72 kB / 0.5306 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.4287, allocations: 37.66 kB / 0.5306 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006269/0.4293, allocations: 421.7 kB / 0.531 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.4293, allocations: 20.09 kB / 0.531 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.52e-05/0.4294, allocations: 23.62 kB / 0.531 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009474/0.4304, allocations: 0.6032 MB / 0.5316 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.4304, allocations: 0 / 0.5316 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/0.4305, allocations: 9.703 kB / 0.5316 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.4305, allocations: 9.375 kB / 0.5317 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.4318, allocations: 0.8692 MB / 0.5325 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.4341, allocations: 1.447 MB / 0.5339 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005986/0.4347, allocations: 341.5 kB / 0.5342 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004398/0.4352, allocations: 298.4 kB / 0.5345 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002137/0.4354, allocations: 114.7 kB / 0.5346 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.4354, allocations: 38.06 kB / 0.5347 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007379/0.4362, allocations: 162.3 kB / 0.5348 GB, free: 10.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.004e-06/0.4362, allocations: 0 / 0.5348 GB, free: 10.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.00854/0.4447, allocations: 2.131 MB / 0.5369 GB, free: 9.898 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.4448, allocations: 59.38 kB / 0.537 GB, free: 9.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.4452, allocations: 362.6 kB / 0.5373 GB, free: 9.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.4452, allocations: 32.2 kB / 0.5373 GB, free: 9.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.4453, allocations: 162.6 kB / 0.5375 GB, free: 9.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.165e-05/0.4454, allocations: 104 kB / 0.5376 GB, free: 9.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.4456, allocations: 90.22 kB / 0.5377 GB, free: 9.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.4457, allocations: 346 kB / 0.538 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.446, allocations: 231.4 kB / 0.5382 GB, free: 9.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.4464, allocations: 233.8 kB / 0.5385 GB, free: 9.199 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007885/0.4472, allocations: 0.5133 MB / 0.539 GB, free: 9.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4472, allocations: 1.375 kB / 0.539 GB, free: 9.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002016/0.4493, allocations: 0.95 MB / 0.5399 GB, free: 9.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4493, allocations: 8.656 kB / 0.5399 GB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4493, allocations: 0 / 0.5399 GB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04713/0.4964, allocations: 4.168 MB / 0.544 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.417e-05/0.4965, allocations: 2.969 kB / 0.544 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003019/0.4995, allocations: 1.518 MB / 0.5454 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004967/0.5001, allocations: 6.219 kB / 0.5455 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.057e-05/0.5002, allocations: 26.11 kB / 0.5455 GB, free: 6.941 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.0002532/0.5004, allocations: 157.8 kB / 0.5456 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.5006, allocations: 40.84 kB / 0.5457 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/0.5024, allocations: 1.095 MB / 0.5467 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.5025, allocations: 6.891 kB / 0.5467 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5025, allocations: 2.875 kB / 0.5467 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5025, allocations: 7.922 kB / 0.5468 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.5048, allocations: 1.751 MB / 0.5485 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5048, allocations: 0 / 0.5485 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.692e-05/0.5048, allocations: 6.969 kB / 0.5485 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001862/0.5067, allocations: 0.779 MB / 0.5492 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.5067, allocations: 10.83 kB / 0.5492 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.5086, allocations: 1.549 MB / 0.5508 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5087, allocations: 0 / 0.5508 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.5098, allocations: 0.9898 MB / 0.5517 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.5101, allocations: 152.3 kB / 0.5519 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.89e-05/0.5102, allocations: 11 kB / 0.5519 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.5104, allocations: 7.25 kB / 0.5519 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.5105, allocations: 20.2 kB / 0.5519 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.5106, allocations: 12.88 kB / 0.5519 GB, free: 2.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.5108, allocations: 266.9 kB / 0.5522 GB, free: 2.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5108, allocations: 4 kB / 0.5522 GB, free: 2.676 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001937/0.5128, allocations: 0.5814 MB / 0.5527 GB, free: 2.371 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.003986/0.5168, allocations: 2.518 MB / 0.5552 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.5192, allocations: 0.7511 MB / 0.5559 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5192, allocations: 0 / 0.5559 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.5203, allocations: 488.7 kB / 0.5564 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.5217, allocations: 283.9 kB / 0.5567 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008781/0.5305, allocations: 5.274 MB / 0.5618 GB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.5309, allocations: 0.7963 MB / 0.5626 GB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.5312, allocations: 51.28 kB / 0.5626 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.5313, allocations: 103.4 kB / 0.5627 GB, free: 8.156 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5313, allocations: 0 / 0.5627 GB, free: 8.156 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06046/0.5918, allocations: 30.44 MB / 0.5925 GB, free: 9.988 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.5, allocations: 6.75 kB / 0.5925 GB, free: 9.984 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)