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.08153/0.08153, allocations: 15.29 MB / 30.79 MB, free: 4.074 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.0009378/0.0009379, allocations: 100.6 kB / 35.77 MB, free: 3.27 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.001043/0.001043, allocations: 193.1 kB / 40.88 MB, free: 7.203 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.223/1.223, 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.1148/0.1148, allocations: 23.36 MB / 346.4 MB, free: 0.7461 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 111.8 kB / 418.3 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.08147, allocations: 59.36 MB / 477.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.02968/0.1112, allocations: 34.88 MB / 0.5006 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1764/0.2876, allocations: 17.71 MB / 0.5178 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.2879, allocations: 8.688 kB / 0.5179 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003448/0.2883, allocations: 117.6 kB / 0.518 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003464/0.2918, allocations: 1.784 MB / 0.5197 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002569/0.2943, allocations: 1.293 MB / 0.521 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.2948, allocations: 0.5642 MB / 0.5215 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007229/0.2956, allocations: 0.7275 MB / 0.5222 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.2974, allocations: 1.208 MB / 0.5234 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005889/0.298, allocations: 0.5725 MB / 0.524 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-05/0.2981, allocations: 66.03 kB / 0.524 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004186/0.3023, allocations: 2.247 MB / 0.5262 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.3025, allocations: 241.2 kB / 0.5265 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.3028, allocations: 304.2 kB / 0.5267 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003667/0.3065, allocations: 2.773 MB / 0.5295 GB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3065, allocations: 0.5312 kB / 0.5295 GB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3065, allocations: 0.5 kB / 0.5295 GB, free: 11.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.3065, allocations: 0 / 0.5295 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.001821/0.3083, allocations: 1.051 MB / 0.5305 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.3084, allocations: 9.781 kB / 0.5305 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.43e-05/0.3085, allocations: 61.73 kB / 0.5306 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.3086, allocations: 38.91 kB / 0.5306 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.309, allocations: 406.8 kB / 0.531 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.3091, allocations: 18.66 kB / 0.531 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.058e-05/0.3091, allocations: 24.75 kB / 0.531 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000822/0.31, allocations: 0.5987 MB / 0.5316 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.31, allocations: 0 / 0.5316 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.3101, allocations: 12.88 kB / 0.5316 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.3101, allocations: 9.656 kB / 0.5316 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.3113, allocations: 0.8697 MB / 0.5325 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.3133, allocations: 1.441 MB / 0.5339 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.3139, allocations: 338 kB / 0.5342 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004045/0.3143, allocations: 301.1 kB / 0.5345 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/0.3145, allocations: 135.1 kB / 0.5346 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.383e-05/0.3146, allocations: 40.81 kB / 0.5347 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000691/0.3152, allocations: 168.9 kB / 0.5348 GB, free: 10.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.884e-06/0.3153, allocations: 3.984 kB / 0.5348 GB, free: 10.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.00787/0.3231, allocations: 2.127 MB / 0.5369 GB, free: 9.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/0.3232, allocations: 54.22 kB / 0.537 GB, free: 9.777 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.3235, allocations: 369.3 kB / 0.5373 GB, free: 9.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.3235, allocations: 31.52 kB / 0.5373 GB, free: 9.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.24e-05/0.3236, allocations: 162.6 kB / 0.5375 GB, free: 9.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.235e-05/0.3237, allocations: 110 kB / 0.5376 GB, free: 9.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.3238, allocations: 93.61 kB / 0.5377 GB, free: 9.453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.236e-05/0.3239, allocations: 343.7 kB / 0.538 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003119/0.3242, allocations: 229.8 kB / 0.5382 GB, free: 9.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.3245, allocations: 233.9 kB / 0.5385 GB, free: 9.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006843/0.3252, allocations: 0.5092 MB / 0.5389 GB, free: 9.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3252, allocations: 4 kB / 0.539 GB, free: 9.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001755/0.327, allocations: 0.9454 MB / 0.5399 GB, free: 9.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.327, allocations: 9.062 kB / 0.5399 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.327, allocations: 0 / 0.5399 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01476/0.3418, allocations: 2.693 MB / 0.5425 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.357e-05/0.3418, allocations: 6.812 kB / 0.5425 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/0.3442, allocations: 1.516 MB / 0.544 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003085/0.3445, allocations: 8.125 kB / 0.544 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.684e-05/0.3446, allocations: 35.67 kB / 0.544 GB, free: 7.449 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.0001427/0.3447, allocations: 156.4 kB / 0.5442 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.375e-05/0.3448, allocations: 40.91 kB / 0.5442 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.3464, allocations: 1.095 MB / 0.5453 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3464, allocations: 7 kB / 0.5453 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3464, allocations: 2.812 kB / 0.5453 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3464, allocations: 3.984 kB / 0.5453 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.3482, allocations: 1.746 MB / 0.547 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3482, allocations: 0 / 0.547 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.881e-05/0.3483, allocations: 2.906 kB / 0.547 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/0.3499, allocations: 0.7981 MB / 0.5478 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.3499, allocations: 7.594 kB / 0.5478 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.3516, allocations: 1.546 MB / 0.5493 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3516, allocations: 0 / 0.5493 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.3526, allocations: 0.9835 MB / 0.5503 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.3528, allocations: 163.1 kB / 0.5504 GB, free: 3.379 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.282e-05/0.3529, allocations: 4 kB / 0.5504 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3531, allocations: 6.969 kB / 0.5504 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.3532, allocations: 20.22 kB / 0.5505 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.3532, allocations: 13.72 kB / 0.5505 GB, free: 3.355 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.3534, allocations: 266.3 kB / 0.5507 GB, free: 3.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3534, allocations: 0 / 0.5507 GB, free: 3.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001416/0.3548, allocations: 0.5834 MB / 0.5513 GB, free: 2.996 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.00251/0.3573, allocations: 2.525 MB / 0.5538 GB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.3592, allocations: 0.7615 MB / 0.5545 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3592, allocations: 0 / 0.5545 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009102/0.3601, allocations: 481.2 kB / 0.555 GB, free: 72 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.3613, allocations: 281.3 kB / 0.5552 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006926/0.3683, allocations: 5.313 MB / 0.5604 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.3686, allocations: 0.8079 MB / 0.5612 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.3688, allocations: 43.3 kB / 0.5613 GB, free: 9.562 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3689, allocations: 103.4 kB / 0.5614 GB, free: 9.461 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3689, allocations: 0 / 0.5614 GB, free: 9.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05033/0.4193, allocations: 30.27 MB / 0.5909 GB, free: 11.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.73, allocations: 8 kB / 0.5909 GB, free: 11.43 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)