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: translateModel(Physiolibrary.Fluid.Examples.MeanRespiration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration") translateModel(Physiolibrary.Fluid.Examples.MeanRespiration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09216/0.09216, allocations: 15.27 MB / 31.54 MB, free: 4.148 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.001158/0.001158, allocations: 103.5 kB / 36.54 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.001444/0.001444, allocations: 193.1 kB / 41.65 MB, free: 7.168 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.395/1.395, allocations: 222.9 MB / 269.5 MB, free: 6.883 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.142/0.142, allocations: 23.36 MB / 347.2 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 115.8 kB / 419.7 MB, free: 29.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1125, allocations: 59.38 MB / 479 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.04484/0.1574, allocations: 34.85 MB / 0.5019 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2299/0.3873, allocations: 17.72 MB / 0.5192 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.3876, allocations: 7.688 kB / 0.5192 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.388, allocations: 113.6 kB / 0.5193 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003968/0.392, allocations: 1.782 MB / 0.521 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.3949, allocations: 1.287 MB / 0.5223 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006862/0.3956, allocations: 0.5638 MB / 0.5228 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008619/0.3964, allocations: 0.7281 MB / 0.5235 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002285/0.3987, allocations: 1.219 MB / 0.5247 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006867/0.3994, allocations: 0.5777 MB / 0.5253 GB, free: 13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.931e-05/0.3995, allocations: 65.25 kB / 0.5253 GB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005725/0.4053, allocations: 2.141 MB / 0.5274 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002471/0.4055, allocations: 240.7 kB / 0.5277 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003376/0.4059, allocations: 306 kB / 0.528 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005247/0.4111, allocations: 2.733 MB / 0.5306 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4111, allocations: 0.8438 kB / 0.5306 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4111, allocations: 0 / 0.5306 GB, free: 12.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.4112, allocations: 1.312 kB / 0.5306 GB, free: 12.85 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.001931/0.4131, allocations: 1.051 MB / 0.5317 GB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.4131, allocations: 9.344 kB / 0.5317 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.4133, allocations: 37.56 kB / 0.5317 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.4139, allocations: 419.7 kB / 0.5321 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.4139, allocations: 17.75 kB / 0.5321 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.933e-05/0.414, allocations: 28.56 kB / 0.5321 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.4149, allocations: 0.6023 MB / 0.5327 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4149, allocations: 1.438 kB / 0.5327 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.415, allocations: 10.59 kB / 0.5327 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.415, allocations: 5.719 kB / 0.5328 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.4163, allocations: 0.8698 MB / 0.5336 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.4186, allocations: 1.437 MB / 0.535 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/0.4192, allocations: 336.8 kB / 0.5353 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/0.4196, allocations: 311 kB / 0.5356 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.4198, allocations: 109.2 kB / 0.5357 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.4198, allocations: 37 kB / 0.5358 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007165/0.4205, allocations: 164.6 kB / 0.5359 GB, free: 11.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.674e-06/0.4205, allocations: 0 / 0.5359 GB, free: 11.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.008205/0.4287, allocations: 2.132 MB / 0.538 GB, free: 11.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.34e-05/0.4288, allocations: 55.56 kB / 0.5381 GB, free: 11.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.4291, allocations: 364.1 kB / 0.5384 GB, free: 10.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.4292, allocations: 30.89 kB / 0.5384 GB, free: 10.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.802e-05/0.4293, allocations: 169.5 kB / 0.5386 GB, free: 10.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.556e-05/0.4293, allocations: 106.2 kB / 0.5387 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.4295, allocations: 89.73 kB / 0.5388 GB, free: 10.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/0.4295, allocations: 345.2 kB / 0.5391 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.4299, allocations: 229 kB / 0.5393 GB, free: 10.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.4302, allocations: 232.1 kB / 0.5395 GB, free: 10.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007344/0.431, allocations: 0.5112 MB / 0.54 GB, free: 10.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.431, allocations: 3.938 kB / 0.5401 GB, free: 10.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001835/0.4328, allocations: 0.9448 MB / 0.541 GB, free: 10.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.4328, allocations: 4.844 kB / 0.541 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.4329, allocations: 2.766 kB / 0.541 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04658/0.4794, allocations: 4.175 MB / 0.5451 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.649e-05/0.4795, allocations: 6.969 kB / 0.5451 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002753/0.4823, allocations: 1.517 MB / 0.5465 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.4827, allocations: 6.969 kB / 0.5466 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/0.4827, allocations: 30.45 kB / 0.5466 GB, free: 7.617 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.0001962/0.483, allocations: 158 kB / 0.5467 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.4831, allocations: 42.31 kB / 0.5468 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.4847, allocations: 1.093 MB / 0.5478 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.4847, allocations: 3.125 kB / 0.5478 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4847, allocations: 4 kB / 0.5478 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.4848, allocations: 3.984 kB / 0.5478 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.4868, allocations: 1.75 MB / 0.5496 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.4868, allocations: 0 / 0.5496 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.03e-05/0.4868, allocations: 2.812 kB / 0.5496 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001788/0.4886, allocations: 0.7873 MB / 0.5503 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.4886, allocations: 10.72 kB / 0.5503 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.4904, allocations: 1.55 MB / 0.5519 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4905, allocations: 0 / 0.5519 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.4915, allocations: 0.9839 MB / 0.5528 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.4918, allocations: 154.5 kB / 0.553 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.762e-05/0.4918, allocations: 6.438 kB / 0.553 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.4921, allocations: 4 kB / 0.553 GB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.28e-05/0.4922, allocations: 26.66 kB / 0.553 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.4922, allocations: 19.64 kB / 0.553 GB, free: 3.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.4924, allocations: 265.9 kB / 0.5533 GB, free: 3.359 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4924, allocations: 0 / 0.5533 GB, free: 3.359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001409/0.4938, allocations: 0.5823 MB / 0.5538 GB, free: 2.82 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.00192/0.4958, allocations: 1.053 MB / 0.5549 GB, free: 1.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.4978, allocations: 0.7544 MB / 0.5556 GB, free: 1.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4978, allocations: 4 kB / 0.5556 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009766/0.4988, allocations: 480.8 kB / 0.5561 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.4999, allocations: 280.9 kB / 0.5563 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.5011, allocations: 0.8743 MB / 0.5572 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.5015, allocations: 0.808 MB / 0.558 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.5016, allocations: 43.3 kB / 0.558 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.5017, allocations: 27.44 kB / 0.558 GB, free: 14.6 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.5017, allocations: 0 / 0.558 GB, free: 14.6 MB / 398.1 MB Notification: Performance of Templates: time 0.03315/0.5348, allocations: 25.72 MB / 0.5832 GB, free: 5.07 MB / 414.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)