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.001483/0.001483, allocations: 100.1 kB / 15.88 MB, free: 12 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.001725/0.001725, allocations: 195.7 kB / 16.79 MB, free: 6.809 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.447/1.447, allocations: 222.9 MB / 240.5 MB, free: 4.652 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2106/0.2106, allocations: 15.32 MB / 305.9 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001272, allocations: 63.91 kB / 370.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1112, allocations: 53.61 MB / 423.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008778/0.12, allocations: 7.969 MB / 431.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2232/0.3433, allocations: 21.71 MB / 453.6 MB, free: 39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001765/0.3451, allocations: 30.78 kB / 453.6 MB, free: 39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.3465, allocations: 409.5 kB / 454 MB, free: 38.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005167/0.3518, allocations: 1.472 MB / 455.5 MB, free: 38.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008698/0.3605, allocations: 2.45 MB / 457.9 MB, free: 36.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00257/0.3631, allocations: 1.74 MB / 459.7 MB, free: 36.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009531/0.364, allocations: 0.7822 MB / 460.5 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009352/0.365, allocations: 0.8306 MB / 461.3 MB, free: 36.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009085/0.3659, allocations: 0.925 MB / 462.2 MB, free: 35.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.3661, allocations: 98.31 kB / 462.3 MB, free: 35.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007372/0.3734, allocations: 2.269 MB / 464.6 MB, free: 35.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004316/0.3739, allocations: 317.2 kB / 464.9 MB, free: 35.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009262/0.3748, allocations: 0.7391 MB / 465.6 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004261/0.3791, allocations: 3.03 MB / 468.7 MB, free: 33.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3791, allocations: 0 / 468.7 MB, free: 33.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3791, allocations: 0 / 468.7 MB, free: 33.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.3792, allocations: 1.5 kB / 468.7 MB, free: 33.54 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.003372/0.3825, allocations: 2.078 MB / 470.7 MB, free: 32.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.3826, allocations: 8.906 kB / 470.7 MB, free: 32.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.3842, allocations: 379.7 kB / 471.1 MB, free: 32.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009252/0.3851, allocations: 0.7286 MB / 471.8 MB, free: 31.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.732e-05/0.3852, allocations: 94.19 kB / 471.9 MB, free: 31.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.3854, allocations: 133 kB / 472.1 MB, free: 31.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.388, allocations: 1.754 MB / 473.8 MB, free: 30.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.388, allocations: 8.938 kB / 473.8 MB, free: 30.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.3881, allocations: 49.75 kB / 473.9 MB, free: 30.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.783e-05/0.3882, allocations: 30.78 kB / 473.9 MB, free: 30.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003617/0.3918, allocations: 2.482 MB / 476.4 MB, free: 30.05 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.01095/0.4028, allocations: 5.104 MB / 481.5 MB, free: 27.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004801/0.4076, allocations: 2.242 MB / 483.7 MB, free: 26.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009138/0.4085, allocations: 0.5574 MB / 484.3 MB, free: 25.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008167/0.4167, allocations: 5.32 MB / 489.6 MB, free: 21.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.4168, allocations: 42 kB / 489.7 MB, free: 21.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.535e-06/0.4168, allocations: 0 / 489.7 MB, free: 21.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01701/0.4338, allocations: 3.367 MB / 493 MB, free: 20.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.4339, allocations: 65.03 kB / 493.1 MB, free: 20.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.436, allocations: 1.298 MB / 494.4 MB, free: 19.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.73e-05/0.4361, allocations: 42.17 kB / 494.4 MB, free: 19.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004916/0.4366, allocations: 0.6803 MB / 495.1 MB, free: 19.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.437, allocations: 322.2 kB / 495.4 MB, free: 18.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005128/0.4375, allocations: 292.7 kB / 495.7 MB, free: 18.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4376, allocations: 357.2 kB / 496.1 MB, free: 18.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009362/0.4386, allocations: 0.5123 MB / 496.6 MB, free: 18.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.4399, allocations: 1.003 MB / 497.6 MB, free: 17.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002005/0.4419, allocations: 1.429 MB / 499 MB, free: 16.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.802e-05/0.442, allocations: 4.156 kB / 499 MB, free: 16.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005467/0.4475, allocations: 1.909 MB / 0.4892 GB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.4475, allocations: 9.562 kB / 0.4892 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-05/0.4476, allocations: 17.59 kB / 0.4892 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/0.4498, allocations: 244.9 kB / 0.4894 GB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.4512, allocations: 349.7 kB / 0.4898 GB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005337/0.4565, allocations: 3.501 MB / 0.4932 GB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.4582, allocations: 76.58 kB / 0.4933 GB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/0.4585, allocations: 81.02 kB / 0.4933 GB, free: 12.18 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.0007285/0.4593, allocations: 292.4 kB / 0.4936 GB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/0.4597, allocations: 104.3 kB / 0.4937 GB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/0.4642, allocations: 1.261 MB / 0.4949 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.4642, allocations: 8 kB / 0.495 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.4642, allocations: 3.938 kB / 0.495 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.4643, allocations: 3.047 kB / 0.495 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001849/0.4661, allocations: 1.121 MB / 0.4961 GB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.4661, allocations: 4 kB / 0.4961 GB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006699/0.4668, allocations: 172.6 kB / 0.4962 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/0.4689, allocations: 230.4 kB / 0.4964 GB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.787e-05/0.469, allocations: 30.86 kB / 0.4965 GB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004406/0.4734, allocations: 3.404 MB / 0.4998 GB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.4734, allocations: 4.031 kB / 0.4998 GB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004324/0.4778, allocations: 1.592 MB / 0.5014 GB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004242/0.4782, allocations: 175.8 kB / 0.5015 GB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.4786, allocations: 19.98 kB / 0.5015 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007982/0.4794, allocations: 35.94 kB / 0.5016 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.4796, allocations: 84.77 kB / 0.5017 GB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.421e-05/0.4797, allocations: 35.98 kB / 0.5017 GB, free: 4.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.4808, allocations: 0.9179 MB / 0.5026 GB, free: 3.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4808, allocations: 0 / 0.5026 GB, free: 3.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002859/0.4837, allocations: 0.8353 MB / 0.5034 GB, free: 2.715 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.002422/0.4861, allocations: 0.9949 MB / 0.5044 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.4888, allocations: 1.406 MB / 0.5057 GB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.4888, allocations: 0 / 0.5057 GB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.49, allocations: 0.6944 MB / 0.5064 GB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.4918, allocations: 204.4 kB / 0.5066 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004931/0.4967, allocations: 2.68 MB / 0.5092 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4978, allocations: 1.089 MB / 0.5103 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006686/0.4985, allocations: 218.7 kB / 0.5105 GB, free: 11.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4985, allocations: 0 / 0.5105 GB, free: 11.31 MB / 382.1 MB Notification: Performance of Templates: time 0.04188/0.5404, allocations: 31.02 MB / 0.5408 GB, free: 12.34 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)