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.001143/0.001143, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.154/1.154, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1602/0.1602, allocations: 15.32 MB / 305.7 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 67.89 kB / 370.3 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07929/0.08041, allocations: 53.61 MB / 423.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007004/0.08744, allocations: 6.958 MB / 430.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1509/0.2383, allocations: 21.75 MB / 452.6 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005644/0.2389, allocations: 17.66 kB / 452.7 MB, free: 39.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008113/0.2397, allocations: 457.8 kB / 453.1 MB, free: 39.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002629/0.2424, allocations: 1.642 MB / 454.7 MB, free: 38.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004497/0.2469, allocations: 2.8 MB / 457.5 MB, free: 37.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.248, allocations: 1.816 MB / 459.4 MB, free: 36.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006322/0.2487, allocations: 0.9167 MB / 460.3 MB, free: 36.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.2492, allocations: 0.8501 MB / 461.1 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007301/0.2499, allocations: 0.9407 MB / 462.1 MB, free: 35.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.2501, allocations: 155.2 kB / 462.2 MB, free: 35.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004415/0.2545, allocations: 2.315 MB / 464.5 MB, free: 35.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.2547, allocations: 370.5 kB / 464.9 MB, free: 35.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004659/0.2552, allocations: 0.7926 MB / 465.7 MB, free: 34.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00403/0.2593, allocations: 4.102 MB / 469.8 MB, free: 32.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2593, allocations: 3.234 kB / 469.8 MB, free: 32.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2593, allocations: 0 / 469.8 MB, free: 32.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.2593, allocations: 0 / 469.8 MB, free: 32.85 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.002591/0.2619, allocations: 2.077 MB / 471.9 MB, free: 31.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.772e-05/0.2619, allocations: 10.69 kB / 471.9 MB, free: 31.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.2632, allocations: 373.5 kB / 472.2 MB, free: 31.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007689/0.264, allocations: 0.7348 MB / 473 MB, free: 30.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.505e-05/0.2641, allocations: 92.28 kB / 473.1 MB, free: 30.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.2643, allocations: 131.1 kB / 473.2 MB, free: 30.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002037/0.2663, allocations: 1.751 MB / 475 MB, free: 30.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.2663, allocations: 3.938 kB / 475 MB, free: 30.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.2665, allocations: 51.16 kB / 475 MB, free: 30.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.2665, allocations: 30.62 kB / 475 MB, free: 30.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.2694, allocations: 2.489 MB / 477.5 MB, free: 29.35 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.006307/0.2757, allocations: 5.124 MB / 482.6 MB, free: 26.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/0.2786, allocations: 2.247 MB / 484.9 MB, free: 25.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006593/0.2793, allocations: 0.5492 MB / 485.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005212/0.2845, allocations: 5.31 MB / 490.8 MB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.2845, allocations: 44.89 kB / 490.8 MB, free: 21.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 1.894e-06/0.2846, allocations: 0 / 490.8 MB, free: 21.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01255/0.2971, allocations: 3.368 MB / 494.2 MB, free: 19.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/0.2971, allocations: 65.19 kB / 494.2 MB, free: 19.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.2984, allocations: 1.292 MB / 495.5 MB, free: 18.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.916e-05/0.2985, allocations: 41.2 kB / 495.6 MB, free: 18.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003025/0.2988, allocations: 0.6842 MB / 496.2 MB, free: 18.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.299, allocations: 322.9 kB / 496.6 MB, free: 18.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000333/0.2993, allocations: 286.8 kB / 496.8 MB, free: 17.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.052e-05/0.2994, allocations: 363.5 kB / 497.2 MB, free: 17.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006926/0.3001, allocations: 0.5119 MB / 497.7 MB, free: 17.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008758/0.301, allocations: 0.9982 MB / 498.7 MB, free: 16.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.3024, allocations: 1.433 MB / 0.4884 GB, free: 15.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/0.3025, allocations: 5.719 kB / 0.4884 GB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003835/0.3063, allocations: 1.905 MB / 0.4903 GB, free: 14.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3063, allocations: 15.69 kB / 0.4903 GB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.3064, allocations: 18.91 kB / 0.4903 GB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001782/0.3082, allocations: 250.4 kB / 0.4906 GB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009063/0.3091, allocations: 347.8 kB / 0.4909 GB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004084/0.3132, allocations: 3.87 MB / 0.4947 GB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008003/0.314, allocations: 48 kB / 0.4947 GB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.282e-05/0.3141, allocations: 84.83 kB / 0.4948 GB, free: 11.04 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.0003221/0.3144, allocations: 296.2 kB / 0.4951 GB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.3146, allocations: 106.4 kB / 0.4952 GB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/0.3178, allocations: 1.247 MB / 0.4964 GB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3179, allocations: 12 kB / 0.4964 GB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3179, allocations: 4.766 kB / 0.4964 GB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.3179, allocations: 3.703 kB / 0.4964 GB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.319, allocations: 1.108 MB / 0.4975 GB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.319, allocations: 4 kB / 0.4975 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005554/0.3195, allocations: 179.9 kB / 0.4977 GB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001647/0.3212, allocations: 233.5 kB / 0.4979 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.3213, allocations: 31.92 kB / 0.4979 GB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003536/0.3248, allocations: 3.765 MB / 0.5016 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3248, allocations: 4 kB / 0.5016 GB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.328, allocations: 1.611 MB / 0.5032 GB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.3282, allocations: 171.8 kB / 0.5033 GB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.3283, allocations: 22.19 kB / 0.5034 GB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000482/0.3288, allocations: 20 kB / 0.5034 GB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.3289, allocations: 76.83 kB / 0.5035 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.268e-05/0.329, allocations: 39.98 kB / 0.5035 GB, free: 2.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006868/0.3297, allocations: 0.9101 MB / 0.5044 GB, free: 1.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3297, allocations: 0 / 0.5044 GB, free: 1.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001679/0.3314, allocations: 0.8353 MB / 0.5052 GB, free: 380 kB / 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.001618/0.333, allocations: 0.9982 MB / 0.5062 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.3354, allocations: 1.453 MB / 0.5076 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3354, allocations: 12.06 kB / 0.5076 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.3363, allocations: 0.6825 MB / 0.5083 GB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009552/0.3373, allocations: 228.4 kB / 0.5085 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.3401, allocations: 2.135 MB / 0.5106 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.3406, allocations: 1.077 MB / 0.5116 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009127/0.3416, allocations: 259.5 kB / 0.5119 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.3419, allocations: 178 kB / 0.512 GB, free: 9.258 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.3419, allocations: 0 / 0.512 GB, free: 9.258 MB / 382.1 MB Notification: Performance of Templates: time 0.03483/0.3767, allocations: 27.9 MB / 0.5393 GB, free: 13.45 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)