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.001537/0.001537, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00184/0.00184, allocations: 195.3 kB / 16.14 MB, free: 6.703 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.366/1.366, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2379/0.2379, allocations: 15.32 MB / 305.3 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.89 kB / 369.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 53.6 MB / 423.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008298/0.1209, allocations: 7.975 MB / 431.2 MB, free: 6.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2275/0.3485, allocations: 21.71 MB / 452.9 MB, free: 38.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.3502, allocations: 31.38 kB / 453 MB, free: 38.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.3522, allocations: 409.2 kB / 453.4 MB, free: 38.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006057/0.3583, allocations: 1.473 MB / 454.8 MB, free: 37.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01009/0.3684, allocations: 2.452 MB / 457.3 MB, free: 36.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002927/0.3714, allocations: 1.738 MB / 459 MB, free: 36.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.373, allocations: 0.7879 MB / 459.8 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.3746, allocations: 0.8302 MB / 460.6 MB, free: 35.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.3762, allocations: 0.9203 MB / 461.6 MB, free: 35.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005393/0.3768, allocations: 94.97 kB / 461.7 MB, free: 35.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009233/0.386, allocations: 2.28 MB / 463.9 MB, free: 35.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006451/0.3867, allocations: 311.3 kB / 464.2 MB, free: 34.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.3886, allocations: 0.742 MB / 465 MB, free: 34.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.3999, allocations: 3.866 MB / 468.8 MB, free: 32.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.3999, allocations: 0 / 468.8 MB, free: 32.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3999, allocations: 3.938 kB / 468.9 MB, free: 32.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001023/0.4001, allocations: 0 / 468.9 MB, free: 32.86 MB / 366.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.005603/0.4057, allocations: 2.073 MB / 470.9 MB, free: 31.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4057, allocations: 11.56 kB / 470.9 MB, free: 31.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002172/0.4079, allocations: 378 kB / 471.3 MB, free: 31.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.4094, allocations: 0.7302 MB / 472 MB, free: 30.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.814e-05/0.4095, allocations: 93.22 kB / 472.1 MB, free: 30.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003602/0.4099, allocations: 133.9 kB / 472.3 MB, free: 30.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003599/0.4135, allocations: 1.75 MB / 474 MB, free: 30.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.809e-05/0.4136, allocations: 9.094 kB / 474 MB, free: 30.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/0.4137, allocations: 53.62 kB / 474.1 MB, free: 30.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/0.4138, allocations: 33.94 kB / 474.1 MB, free: 30.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004329/0.4181, allocations: 2.48 MB / 476.6 MB, free: 29.36 MB / 366.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.009478/0.4276, allocations: 5.1 MB / 481.7 MB, free: 26.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003868/0.4315, allocations: 2.244 MB / 483.9 MB, free: 25.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008662/0.4324, allocations: 0.5491 MB / 484.5 MB, free: 25.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007602/0.44, allocations: 5.328 MB / 489.8 MB, free: 21.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.4401, allocations: 43.22 kB / 489.8 MB, free: 21.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.685e-06/0.4401, allocations: 1.875 kB / 489.8 MB, free: 21.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01643/0.4565, allocations: 3.36 MB / 493.2 MB, free: 19.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.4566, allocations: 65.28 kB / 493.3 MB, free: 19.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002125/0.4588, allocations: 1.295 MB / 494.6 MB, free: 18.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.647e-05/0.4589, allocations: 41.83 kB / 494.6 MB, free: 18.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006102/0.4595, allocations: 0.681 MB / 495.3 MB, free: 18.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.4598, allocations: 321.9 kB / 495.6 MB, free: 18.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005833/0.4604, allocations: 295.5 kB / 495.9 MB, free: 17.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.4606, allocations: 358.6 kB / 496.2 MB, free: 17.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.4618, allocations: 0.5115 MB / 496.8 MB, free: 17.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.4634, allocations: 1.003 MB / 497.8 MB, free: 16.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002383/0.4658, allocations: 1.429 MB / 499.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.597e-05/0.4659, allocations: 5.812 kB / 499.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005407/0.4713, allocations: 1.908 MB / 0.4894 GB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.4713, allocations: 11.58 kB / 0.4894 GB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.482e-05/0.4714, allocations: 20.88 kB / 0.4894 GB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002171/0.4736, allocations: 250.2 kB / 0.4896 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.4747, allocations: 347.8 kB / 0.49 GB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005013/0.4797, allocations: 3.496 MB / 0.4934 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.4812, allocations: 76.14 kB / 0.4934 GB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.4814, allocations: 84.22 kB / 0.4935 GB, free: 11.5 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.0005992/0.482, allocations: 289.1 kB / 0.4938 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002365/0.4823, allocations: 108.2 kB / 0.4939 GB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/0.4863, allocations: 1.251 MB / 0.4951 GB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.4863, allocations: 8 kB / 0.4951 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4863, allocations: 2.578 kB / 0.4951 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.4863, allocations: 4.5 kB / 0.4951 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.488, allocations: 1.115 MB / 0.4962 GB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.488, allocations: 0 / 0.4962 GB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006192/0.4886, allocations: 181.5 kB / 0.4964 GB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001945/0.4906, allocations: 231.6 kB / 0.4966 GB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.3e-05/0.4907, allocations: 32.17 kB / 0.4967 GB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/0.4948, allocations: 3.402 MB / 0.5 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4948, allocations: 0 / 0.5 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004041/0.4989, allocations: 1.6 MB / 0.5015 GB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003718/0.4993, allocations: 179.2 kB / 0.5017 GB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.4994, allocations: 17.38 kB / 0.5017 GB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006065/0.5001, allocations: 40.81 kB / 0.5018 GB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.5003, allocations: 77.27 kB / 0.5018 GB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.754e-05/0.5003, allocations: 43.91 kB / 0.5019 GB, free: 3.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008559/0.5012, allocations: 0.9101 MB / 0.5028 GB, free: 2.648 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5012, allocations: 0 / 0.5028 GB, free: 2.648 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002645/0.5039, allocations: 0.8275 MB / 0.5036 GB, free: 1.82 MB / 366.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.001845/0.5057, allocations: 0.9991 MB / 0.5045 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002452/0.5082, allocations: 1.414 MB / 0.5059 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5082, allocations: 0 / 0.5059 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.5093, allocations: 0.6871 MB / 0.5066 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.5106, allocations: 212.4 kB / 0.5068 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.5144, allocations: 2.634 MB / 0.5094 GB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.5151, allocations: 1.085 MB / 0.5104 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001179/0.5163, allocations: 272 kB / 0.5107 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/0.5167, allocations: 169.9 kB / 0.5109 GB, free: 10.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.173e-06/0.5167, allocations: 4 kB / 0.5109 GB, free: 10.24 MB / 382.1 MB Notification: Performance of Templates: time 0.04322/0.5599, allocations: 26.97 MB / 0.5372 GB, free: 15.36 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)