Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.conf.json 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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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) Running command: translateModel(Chemical.Examples.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") translateModel(Chemical.Examples.GasSolubility_blood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility_blood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009553/0.0009555, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007352/0.007353, allocations: 170 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2023/0.2023, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004473/0.0004476, allocations: 11.98 kB / 372.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.295, allocations: 54.63 MB / 426.7 MB, free: 40.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.005587/0.3006, allocations: 7.523 MB / 434.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.3176, allocations: 21.48 MB / 455.7 MB, free: 22.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001107/0.3188, allocations: 28.62 kB / 455.7 MB, free: 22.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.3199, allocations: 412.7 kB / 456.1 MB, free: 21.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003961/0.3239, allocations: 1.463 MB / 457.6 MB, free: 20.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006442/0.3304, allocations: 2.455 MB / 460.1 MB, free: 19.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002036/0.3324, allocations: 1.729 MB / 461.8 MB, free: 18.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009851/0.3334, allocations: 0.7611 MB / 462.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.3345, allocations: 0.7953 MB / 463.3 MB, free: 18.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001422/0.3359, allocations: 0.869 MB / 464.2 MB, free: 17.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003848/0.3363, allocations: 84.44 kB / 464.3 MB, free: 17.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007437/0.3438, allocations: 2.258 MB / 466.6 MB, free: 17.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004643/0.3443, allocations: 296.3 kB / 466.8 MB, free: 17.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.3455, allocations: 0.7343 MB / 467.6 MB, free: 16.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008568/0.3541, allocations: 3.823 MB / 471.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3541, allocations: 1.469 kB / 471.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3541, allocations: 0 / 471.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.064e-05/0.3542, allocations: 0 / 471.4 MB, free: 15.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.004705/0.3589, allocations: 1.756 MB / 473.2 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.359, allocations: 12.25 kB / 473.2 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002043/0.361, allocations: 380.6 kB / 473.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.3626, allocations: 0.7135 MB / 474.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.3627, allocations: 92.94 kB / 474.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003734/0.3631, allocations: 126.9 kB / 474.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003626/0.3667, allocations: 1.762 MB / 476.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.3668, allocations: 1.125 kB / 476.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.3669, allocations: 50.81 kB / 476.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.947e-05/0.3669, allocations: 30.61 kB / 476.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003666/0.3706, allocations: 2.48 MB / 478.8 MB, free: 11.78 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008246/0.3789, allocations: 5.052 MB / 483.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003259/0.3822, allocations: 2.245 MB / 486.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007669/0.3829, allocations: 0.5527 MB / 486.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006016/0.389, allocations: 5.202 MB / 491.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.389, allocations: 38.59 kB / 491.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.465e-06/0.389, allocations: 1.438 kB / 491.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.01438/0.4034, allocations: 3.414 MB / 495.3 MB, free: 192 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.4035, allocations: 64.41 kB / 495.4 MB, free: 112 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001619/0.4051, allocations: 1.292 MB / 496.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.018e-05/0.4052, allocations: 37.7 kB / 496.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005331/0.4057, allocations: 0.688 MB / 497.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003198/0.4061, allocations: 319.6 kB / 497.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.4063, allocations: 121.6 kB / 497.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.4064, allocations: 357.9 kB / 498.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008316/0.4073, allocations: 0.5076 MB / 498.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.4084, allocations: 1.004 MB / 499.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.4103, allocations: 1.441 MB / 0.4894 GB, free: 9.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.4103, allocations: 8 kB / 0.4894 GB, free: 9.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005339/0.4156, allocations: 1.908 MB / 0.4912 GB, free: 7.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.4157, allocations: 12 kB / 0.4913 GB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/0.4157, allocations: 12 kB / 0.4913 GB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003213/0.4189, allocations: 269.5 kB / 0.4915 GB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.4209, allocations: 351.5 kB / 0.4919 GB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008447/0.4294, allocations: 3.513 MB / 0.4953 GB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002063/0.4314, allocations: 83.88 kB / 0.4954 GB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/0.4318, allocations: 83.97 kB / 0.4954 GB, free: 3.359 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008877/0.4327, allocations: 293.5 kB / 0.4957 GB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.4331, allocations: 110.7 kB / 0.4958 GB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006382/0.4395, allocations: 1.256 MB / 0.4971 GB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.4395, allocations: 8 kB / 0.4971 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.4395, allocations: 4 kB / 0.4971 GB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.24e-05/0.4396, allocations: 11.91 kB / 0.4971 GB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.4425, allocations: 1.115 MB / 0.4982 GB, free: 484 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/0.4425, allocations: 4 kB / 0.4982 GB, free: 480 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.4436, allocations: 183.7 kB / 0.4983 GB, free: 296 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003017/0.4466, allocations: 241.6 kB / 0.4986 GB, free: 48 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.4468, allocations: 35.98 kB / 0.4986 GB, free: 12 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007246/0.454, allocations: 3.421 MB / 0.502 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4541, allocations: 0 / 0.502 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006667/0.4608, allocations: 1.607 MB / 0.5035 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006298/0.4614, allocations: 195.7 kB / 0.5037 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003306/0.4618, allocations: 16 kB / 0.5037 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4628, allocations: 35.98 kB / 0.5038 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.4631, allocations: 76.84 kB / 0.5038 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.4632, allocations: 43.91 kB / 0.5039 GB, free: 10.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001713/0.465, allocations: 0.9101 MB / 0.5048 GB, free: 9.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.465, allocations: 0 / 0.5048 GB, free: 9.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003391/0.4684, allocations: 0.8275 MB / 0.5056 GB, free: 8.551 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.logn) * 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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003054/0.4715, allocations: 1.003 MB / 0.5066 GB, free: 7.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003427/0.4749, allocations: 1.412 MB / 0.5079 GB, free: 6.102 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4749, allocations: 1.938 kB / 0.5079 GB, free: 6.102 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.4764, allocations: 0.6866 MB / 0.5086 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.4787, allocations: 215.7 kB / 0.5088 GB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005083/0.4838, allocations: 2.715 MB / 0.5115 GB, free: 2.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.4845, allocations: 1.081 MB / 0.5125 GB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001263/0.4858, allocations: 256.4 kB / 0.5128 GB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/0.4862, allocations: 178.8 kB / 0.5129 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4862, allocations: 7.875 kB / 0.5129 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of Templates: time 0.04308/0.5293, allocations: 26.87 MB / 0.5392 GB, free: 6.094 MB / 414.1 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility_blood.makefile (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & ./Chemical_Chemical.Examples.GasSolubility_blood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)