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.001447/0.001447, allocations: 104.4 kB / 16.36 MB, free: 6.285 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.001654/0.001654, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.478/1.478, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09058/0.09058, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 61.67 kB / 371.7 MB, free: 50.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1231, allocations: 53.61 MB / 425.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.006281/0.1294, allocations: 6.96 MB / 432.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.1518, allocations: 21.77 MB / 454.1 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.1531, allocations: 11.94 kB / 454.1 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.1543, allocations: 452.7 kB / 454.5 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004537/0.1589, allocations: 1.645 MB / 456.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01249/0.1714, allocations: 2.795 MB / 459 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00426/0.1757, allocations: 1.83 MB / 460.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.1772, allocations: 0.9175 MB / 461.7 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.1783, allocations: 0.8572 MB / 462.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.1795, allocations: 0.9538 MB / 463.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.1797, allocations: 152 kB / 463.7 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009374/0.1891, allocations: 2.313 MB / 466 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005422/0.1896, allocations: 358.9 kB / 466.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.1907, allocations: 0.7972 MB / 467.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.2041, allocations: 4.122 MB / 471.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2041, allocations: 0 / 471.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2042, allocations: 0 / 471.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.14e-05/0.2042, allocations: 0 / 471.3 MB, free: 15.21 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.003732/0.2079, allocations: 2.078 MB / 473.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.208, allocations: 8.031 kB / 473.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/0.2096, allocations: 374.5 kB / 473.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.2109, allocations: 0.7561 MB / 474.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.32e-05/0.211, allocations: 94.84 kB / 474.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002098/0.2112, allocations: 124.4 kB / 474.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.2138, allocations: 1.76 MB / 476.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.2138, allocations: 4 kB / 476.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.214, allocations: 52 kB / 476.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.214, allocations: 28 kB / 476.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003315/0.2173, allocations: 2.489 MB / 479 MB, free: 7.316 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.007832/0.2252, allocations: 5.091 MB / 484.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003298/0.2285, allocations: 2.242 MB / 486.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00077/0.2293, allocations: 0.546 MB / 486.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006976/0.2362, allocations: 5.305 MB / 492.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.2363, allocations: 43.22 kB / 492.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.214e-06/0.2363, allocations: 0 / 492.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01486/0.2512, allocations: 3.367 MB / 495.6 MB, free: 5.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.2513, allocations: 64.39 kB / 495.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001806/0.2531, allocations: 1.296 MB / 497 MB, free: 4.328 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.369e-05/0.2532, allocations: 41.7 kB / 497 MB, free: 4.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004814/0.2537, allocations: 0.6843 MB / 497.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/0.254, allocations: 323.5 kB / 498 MB, free: 3.266 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.2544, allocations: 287.2 kB / 498.3 MB, free: 2.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2546, allocations: 357.9 kB / 498.6 MB, free: 2.625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007657/0.2553, allocations: 0.5154 MB / 499.2 MB, free: 2.109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.2565, allocations: 1 MB / 0.4884 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.2584, allocations: 1.43 MB / 0.4898 GB, free: 15.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.2584, allocations: 4 kB / 0.4898 GB, free: 15.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004694/0.2631, allocations: 1.908 MB / 0.4917 GB, free: 13.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.2631, allocations: 12 kB / 0.4917 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/0.2632, allocations: 16 kB / 0.4917 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/0.2653, allocations: 249.5 kB / 0.492 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.2666, allocations: 351.4 kB / 0.4923 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005653/0.2722, allocations: 3.867 MB / 0.4961 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.2735, allocations: 48 kB / 0.4961 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/0.2737, allocations: 75.98 kB / 0.4962 GB, free: 8.438 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.000573/0.2742, allocations: 301.3 kB / 0.4965 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.2745, allocations: 106.6 kB / 0.4966 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00389/0.2784, allocations: 1.26 MB / 0.4978 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.2784, allocations: 12 kB / 0.4978 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.2784, allocations: 0 / 0.4978 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.2784, allocations: 3.984 kB / 0.4978 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.28, allocations: 1.109 MB / 0.4989 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2801, allocations: 0 / 0.4989 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006587/0.2807, allocations: 179.7 kB / 0.4991 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/0.2827, allocations: 233.6 kB / 0.4993 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.44e-05/0.2828, allocations: 31.92 kB / 0.4993 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004883/0.2877, allocations: 3.768 MB / 0.503 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.2877, allocations: 3.984 kB / 0.503 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2512/0.5389, allocations: 1.595 MB / 0.5046 GB, free: 79.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003873/0.5393, allocations: 170.7 kB / 0.5047 GB, free: 79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002694/0.5396, allocations: 17.97 kB / 0.5047 GB, free: 79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.5402, allocations: 22.97 kB / 0.5048 GB, free: 79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.5404, allocations: 75.55 kB / 0.5048 GB, free: 79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.461e-05/0.5405, allocations: 42.09 kB / 0.5049 GB, free: 79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.5416, allocations: 0.9113 MB / 0.5058 GB, free: 78.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.5417, allocations: 0 / 0.5058 GB, free: 78.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002702/0.5444, allocations: 0.8368 MB / 0.5066 GB, free: 78.89 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.002304/0.5467, allocations: 1 MB / 0.5076 GB, free: 78.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.5491, allocations: 1.417 MB / 0.509 GB, free: 78.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5492, allocations: 3.938 kB / 0.509 GB, free: 78.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008875/0.5501, allocations: 0.6908 MB / 0.5096 GB, free: 78.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.5513, allocations: 216.1 kB / 0.5098 GB, free: 78.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.5546, allocations: 2.108 MB / 0.5119 GB, free: 77.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007134/0.5553, allocations: 1.084 MB / 0.513 GB, free: 76.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009607/0.5563, allocations: 250.1 kB / 0.5132 GB, free: 76.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004125/0.5567, allocations: 176.8 kB / 0.5134 GB, free: 76.55 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.5567, allocations: 0 / 0.5134 GB, free: 76.55 MB / 382.1 MB Notification: Performance of Templates: time 0.03731/0.594, allocations: 27.92 MB / 0.5406 GB, free: 56.87 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 cvode -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)