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.001101/0.001101, allocations: 109.3 kB / 16.37 MB, free: 6.477 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.00101/0.00101, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.463/1.463, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07838/0.07838, allocations: 15.31 MB / 306.5 MB, free: 15.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 64.28 kB / 371.7 MB, free: 50.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09815, allocations: 53.62 MB / 425.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.006165/0.1043, allocations: 6.952 MB / 432.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.1251, allocations: 21.77 MB / 454.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.1262, allocations: 15.88 kB / 454.1 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.1273, allocations: 452.6 kB / 454.5 MB, free: 60 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004159/0.1316, allocations: 1.653 MB / 456.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007503/0.1391, allocations: 2.784 MB / 459 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002993/0.1421, allocations: 1.83 MB / 460.8 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.1433, allocations: 0.9138 MB / 461.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009576/0.1443, allocations: 0.8611 MB / 462.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.1455, allocations: 0.946 MB / 463.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.1457, allocations: 156 kB / 463.7 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007597/0.1533, allocations: 2.317 MB / 466 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004449/0.1538, allocations: 362.8 kB / 466.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009416/0.1547, allocations: 0.7934 MB / 467.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.1664, allocations: 4.122 MB / 471.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1665, allocations: 3.984 kB / 471.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1665, allocations: 0 / 471.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.1665, allocations: 0 / 471.3 MB, free: 15.25 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.003776/0.1703, allocations: 2.074 MB / 473.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1704, allocations: 8.031 kB / 473.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/0.172, allocations: 374.5 kB / 473.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.1733, allocations: 0.7522 MB / 474.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.515e-05/0.1734, allocations: 106.7 kB / 474.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002131/0.1736, allocations: 128.4 kB / 474.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/0.1762, allocations: 1.756 MB / 476.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.1762, allocations: 0 / 476.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001521/0.1764, allocations: 56 kB / 476.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.1764, allocations: 28 kB / 476.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003562/0.18, allocations: 2.481 MB / 479 MB, free: 7.352 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.009438/0.1895, allocations: 5.091 MB / 484.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003503/0.193, allocations: 2.242 MB / 486.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008191/0.1938, allocations: 0.5499 MB / 486.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00709/0.2009, allocations: 5.305 MB / 492.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.201, allocations: 47.22 kB / 492.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.474e-06/0.201, allocations: 4 kB / 492.3 MB, free: 9.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01471/0.2157, allocations: 3.359 MB / 495.6 MB, free: 5.754 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.2158, allocations: 64.41 kB / 495.7 MB, free: 5.676 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.2173, allocations: 1.288 MB / 497 MB, free: 4.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.2174, allocations: 45.69 kB / 497 MB, free: 4.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004028/0.2178, allocations: 0.6765 MB / 497.7 MB, free: 3.625 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/0.218, allocations: 335.4 kB / 498 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000368/0.2184, allocations: 287.2 kB / 498.3 MB, free: 3.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2185, allocations: 357.9 kB / 498.6 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007548/0.2193, allocations: 0.5154 MB / 499.2 MB, free: 2.133 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.2204, allocations: 0.9963 MB / 0.4884 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.2221, allocations: 1.437 MB / 0.4898 GB, free: 15.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.2221, allocations: 4 kB / 0.4898 GB, free: 15.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004501/0.2266, allocations: 1.908 MB / 0.4917 GB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.2267, allocations: 12 kB / 0.4917 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.2267, allocations: 16 kB / 0.4917 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002023/0.2287, allocations: 249.5 kB / 0.492 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.2298, allocations: 347.5 kB / 0.4923 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005313/0.2351, allocations: 3.863 MB / 0.4961 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.2362, allocations: 48 kB / 0.4961 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.2364, allocations: 83.91 kB / 0.4962 GB, free: 8.457 MB / 382.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.000498/0.2369, allocations: 293.3 kB / 0.4965 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/0.2371, allocations: 110.7 kB / 0.4966 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003808/0.2409, allocations: 1.252 MB / 0.4978 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.2409, allocations: 8.141 kB / 0.4978 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2409, allocations: 3.984 kB / 0.4978 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.241, allocations: 7.969 kB / 0.4978 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.2424, allocations: 1.105 MB / 0.4989 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.2424, allocations: 4.031 kB / 0.4989 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006548/0.2431, allocations: 179.7 kB / 0.4991 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00193/0.245, allocations: 233.5 kB / 0.4993 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-05/0.2451, allocations: 35.92 kB / 0.4993 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004932/0.2501, allocations: 3.768 MB / 0.503 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.2501, allocations: 0 / 0.503 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1974/0.4475, allocations: 1.593 MB / 0.5046 GB, free: 79.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.4479, allocations: 175.5 kB / 0.5047 GB, free: 79.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.448, allocations: 15.03 kB / 0.5048 GB, free: 79.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005466/0.4486, allocations: 24.86 kB / 0.5048 GB, free: 79.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.4488, allocations: 75.69 kB / 0.5049 GB, free: 79.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.786e-05/0.4489, allocations: 36.41 kB / 0.5049 GB, free: 79.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009406/0.4498, allocations: 0.9163 MB / 0.5058 GB, free: 78.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4498, allocations: 0 / 0.5058 GB, free: 78.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002374/0.4522, allocations: 0.8314 MB / 0.5066 GB, free: 78.95 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.001738/0.4539, allocations: 1.007 MB / 0.5076 GB, free: 78.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.4563, allocations: 1.416 MB / 0.509 GB, free: 78.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4563, allocations: 0 / 0.509 GB, free: 78.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009025/0.4572, allocations: 0.6904 MB / 0.5096 GB, free: 78.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.4585, allocations: 229.3 kB / 0.5099 GB, free: 78.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.4619, allocations: 2.096 MB / 0.5119 GB, free: 77.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.4629, allocations: 1.082 MB / 0.513 GB, free: 76.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001116/0.4641, allocations: 253.2 kB / 0.5132 GB, free: 76.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004551/0.4645, allocations: 167.5 kB / 0.5134 GB, free: 76.7 MB / 382.1 MB Notification: Performance of SimCode: time 2.415e-06/0.4645, allocations: 0 / 0.5134 GB, free: 76.7 MB / 382.1 MB Notification: Performance of Templates: time 0.03517/0.4997, allocations: 27.93 MB / 0.5406 GB, free: 57.02 MB / 382.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)