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.006915/0.006915, allocations: 107 kB / 15.74 MB, free: 5.582 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.001211/0.001211, allocations: 197.4 kB / 16.67 MB, free: 5.508 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.472/1.472, allocations: 222.9 MB / 240.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1188/0.1188, allocations: 15.31 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 60.11 kB / 425.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1392, allocations: 53.61 MB / 478.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008928/0.1482, allocations: 6.948 MB / 485.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02613/0.1744, allocations: 21.77 MB / 0.4956 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001543/0.176, allocations: 15.94 kB / 0.4956 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001528/0.1775, allocations: 448.7 kB / 0.4961 GB, free: 8.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006042/0.1836, allocations: 1.645 MB / 0.4977 GB, free: 6.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009453/0.1931, allocations: 2.799 MB / 0.5004 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003864/0.197, allocations: 1.822 MB / 0.5022 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.1987, allocations: 0.9254 MB / 0.5031 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.2001, allocations: 0.8572 MB / 0.5039 GB, free: 392 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.302/0.5021, allocations: 0.9425 MB / 0.5048 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005859/0.5027, allocations: 152.4 kB / 0.505 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009472/0.5122, allocations: 2.316 MB / 0.5072 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009523/0.5132, allocations: 361.1 kB / 0.5076 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001423/0.5146, allocations: 0.7915 MB / 0.5084 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01487/0.5295, allocations: 4.14 MB / 0.5124 GB, free: 7.254 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.5295, allocations: 1.031 kB / 0.5124 GB, free: 7.254 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5295, allocations: 0 / 0.5124 GB, free: 7.254 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.385e-05/0.5296, allocations: 0 / 0.5124 GB, free: 7.254 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.006014/0.5356, allocations: 2.071 MB / 0.5144 GB, free: 6.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.786e-05/0.5357, allocations: 8.594 kB / 0.5144 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002184/0.5379, allocations: 382.7 kB / 0.5148 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/0.5398, allocations: 0.7511 MB / 0.5155 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.253e-05/0.5399, allocations: 95.08 kB / 0.5156 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.5401, allocations: 128.1 kB / 0.5157 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003427/0.5436, allocations: 1.76 MB / 0.5175 GB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.073e-05/0.5436, allocations: 8.344 kB / 0.5175 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.5437, allocations: 51.59 kB / 0.5175 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.5438, allocations: 29.66 kB / 0.5175 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/0.548, allocations: 2.481 MB / 0.52 GB, free: 5.672 MB / 382.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.009563/0.5576, allocations: 5.085 MB / 0.5249 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003404/0.561, allocations: 2.252 MB / 0.5271 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007885/0.5618, allocations: 0.5469 MB / 0.5277 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007378/0.5692, allocations: 5.31 MB / 0.5329 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.5693, allocations: 44.19 kB / 0.5329 GB, free: 13.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.705e-06/0.5693, allocations: 0 / 0.5329 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.01468/0.584, allocations: 3.368 MB / 0.5362 GB, free: 12.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/0.5842, allocations: 63.78 kB / 0.5362 GB, free: 12.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.5862, allocations: 1.293 MB / 0.5375 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/0.5864, allocations: 40.36 kB / 0.5375 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000704/0.5871, allocations: 0.6821 MB / 0.5382 GB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.5875, allocations: 316 kB / 0.5385 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005269/0.588, allocations: 300.5 kB / 0.5388 GB, free: 10.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.5883, allocations: 362.9 kB / 0.5391 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008633/0.5891, allocations: 0.5077 MB / 0.5396 GB, free: 9.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.5906, allocations: 1 MB / 0.5406 GB, free: 9.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/0.5927, allocations: 1.437 MB / 0.542 GB, free: 7.949 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.5927, allocations: 3.125 kB / 0.542 GB, free: 7.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004618/0.5974, allocations: 1.907 MB / 0.5439 GB, free: 6.195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.5974, allocations: 12.09 kB / 0.5439 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.261e-05/0.5975, allocations: 16 kB / 0.5439 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001893/0.5994, allocations: 245.5 kB / 0.5441 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.6005, allocations: 355.5 kB / 0.5445 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006207/0.6067, allocations: 3.86 MB / 0.5483 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.6082, allocations: 51.98 kB / 0.5483 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/0.6083, allocations: 79.98 kB / 0.5484 GB, free: 1.367 MB / 398.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.0007654/0.6091, allocations: 287.2 kB / 0.5487 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003067/0.6094, allocations: 106.7 kB / 0.5488 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.6132, allocations: 1.256 MB / 0.55 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.6133, allocations: 8.562 kB / 0.55 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.6133, allocations: 0 / 0.55 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.6133, allocations: 3.984 kB / 0.55 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/0.6152, allocations: 1.109 MB / 0.5511 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.6152, allocations: 2.562 kB / 0.5511 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000645/0.6159, allocations: 183.5 kB / 0.5513 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/0.6177, allocations: 232.9 kB / 0.5515 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.929e-05/0.6178, allocations: 35.92 kB / 0.5515 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00488/0.6226, allocations: 3.762 MB / 0.5552 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6227, allocations: 0 / 0.5552 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004356/0.627, allocations: 1.598 MB / 0.5567 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000501/0.6276, allocations: 167.8 kB / 0.5569 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.6277, allocations: 23.98 kB / 0.5569 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005245/0.6282, allocations: 26.62 kB / 0.557 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.6284, allocations: 76.22 kB / 0.557 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-05/0.6285, allocations: 39.98 kB / 0.5571 GB, free: 8.148 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001103/0.6296, allocations: 0.9101 MB / 0.558 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6296, allocations: 0 / 0.558 GB, free: 7.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003552/0.6332, allocations: 0.8353 MB / 0.5588 GB, free: 6.391 MB / 414.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.002524/0.6357, allocations: 1.016 MB / 0.5598 GB, free: 5.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.6384, allocations: 1.415 MB / 0.5611 GB, free: 4.113 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.748e-06/0.6385, allocations: 1.938 kB / 0.5611 GB, free: 4.113 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.6395, allocations: 0.6914 MB / 0.5618 GB, free: 3.418 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.641, allocations: 236.5 kB / 0.562 GB, free: 3.199 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003831/0.6448, allocations: 2.089 MB / 0.5641 GB, free: 1.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000771/0.6456, allocations: 1.089 MB / 0.5652 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000939/0.6465, allocations: 254.6 kB / 0.5654 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/0.6469, allocations: 166.8 kB / 0.5656 GB, free: 15.55 MB / 430.1 MB Notification: Performance of SimCode: time 8.91e-07/0.6469, allocations: 4 kB / 0.5656 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Templates: time 0.04814/0.6951, allocations: 28.61 MB / 0.5935 GB, free: 3.137 MB / 446.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)