Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.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.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 104 kB / 16.35 MB, free: 5.824 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.001253/0.001254, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.412/1.412, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09108/0.09108, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001544, allocations: 61.27 kB / 371.7 MB, free: 50.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.09272, allocations: 53.61 MB / 425.3 MB, free: 13.29 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInBlood): time 0.03759/0.1304, allocations: 33.6 MB / 458.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04947/0.1798, allocations: 47.4 MB / 0.4945 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003209/0.1831, allocations: 31.81 kB / 0.4945 GB, free: 12.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002847/0.186, allocations: 1.024 MB / 0.4955 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009518/0.1955, allocations: 3.701 MB / 0.4991 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01611/0.2117, allocations: 6.368 MB / 0.5053 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.192/0.4037, allocations: 4.533 MB / 0.5098 GB, free: 19.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005688/0.4094, allocations: 2.663 MB / 0.5124 GB, free: 19.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005093/0.4145, allocations: 2.231 MB / 0.5145 GB, free: 19.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005291/0.4199, allocations: 2.563 MB / 0.517 GB, free: 19.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001925/0.4218, allocations: 416.9 kB / 0.5174 GB, free: 19.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.018/0.4398, allocations: 5.283 MB / 0.5226 GB, free: 19.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002754/0.4426, allocations: 0.9792 MB / 0.5236 GB, free: 19.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004294/0.447, allocations: 2.022 MB / 0.5255 GB, free: 18.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0232/0.4702, allocations: 9.87 MB / 0.5352 GB, free: 18.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.4702, allocations: 0 / 0.5352 GB, free: 18.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4702, allocations: 3.938 kB / 0.5352 GB, free: 18.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.53e-05/0.4703, allocations: 0 / 0.5352 GB, free: 18.11 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: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01015/0.4805, allocations: 4.755 MB / 0.5398 GB, free: 15.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.4805, allocations: 8.875 kB / 0.5398 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003574/0.4841, allocations: 0.8361 MB / 0.5406 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.487, allocations: 1.659 MB / 0.5423 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.4871, allocations: 299.7 kB / 0.5426 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004859/0.4876, allocations: 329.2 kB / 0.5429 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005599/0.4932, allocations: 4.48 MB / 0.5472 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.984e-05/0.4933, allocations: 0 / 0.5472 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002916/0.4936, allocations: 134.9 kB / 0.5474 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.512e-05/0.4936, allocations: 76 kB / 0.5474 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007138/0.5008, allocations: 6.108 MB / 0.5534 GB, free: 3.715 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.02253/0.5233, allocations: 13.97 MB / 0.5671 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008979/0.5323, allocations: 6.315 MB / 0.5732 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003026/0.5354, allocations: 2.238 MB / 0.5754 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02064/0.5561, allocations: 14.78 MB / 0.5898 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.5562, allocations: 63.45 kB / 0.5899 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001679/0.5578, allocations: 370.2 kB / 0.5903 GB, free: 12.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=284): time 6.182e-06/0.5579, allocations: 4 kB / 0.5903 GB, free: 12.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=387): time 0.08829/0.6462, allocations: 23.81 MB / 0.6135 GB, free: 4.914 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.6463, allocations: 94.45 kB / 0.6136 GB, free: 4.809 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.6485, allocations: 1.714 MB / 0.6153 GB, free: 3.055 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006352/0.6492, allocations: 89.7 kB / 0.6154 GB, free: 2.961 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.6503, allocations: 1.305 MB / 0.6166 GB, free: 1.648 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/0.6517, allocations: 1.311 MB / 0.6179 GB, free: 356 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001401/0.6531, allocations: 0.7744 MB / 0.6187 GB, free: 15.56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.6532, allocations: 301.1 kB / 0.619 GB, free: 15.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/0.6563, allocations: 1.823 MB / 0.6207 GB, free: 13.44 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003871/0.6602, allocations: 2.814 MB / 0.6235 GB, free: 10.23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007346/0.6676, allocations: 4.944 MB / 0.6283 GB, free: 5.043 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.447e-05/0.6676, allocations: 14.64 kB / 0.6283 GB, free: 5.031 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01857/0.6862, allocations: 6.81 MB / 0.635 GB, free: 14.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.6863, allocations: 16 kB / 0.635 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.749e-05/0.6864, allocations: 32 kB / 0.635 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01135/0.6977, allocations: 2.281 MB / 0.6373 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00384/0.7016, allocations: 0.8928 MB / 0.6381 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02697/0.7286, allocations: 18.38 MB / 0.6561 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004085/0.7327, allocations: 140 kB / 0.6562 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007298/0.7335, allocations: 235.2 kB / 0.6564 GB, free: 7.695 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001523/0.735, allocations: 0.6014 MB / 0.657 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007492/0.7358, allocations: 280.5 kB / 0.6573 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01758/0.7533, allocations: 6.585 MB / 0.6637 GB, free: 312 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.088e-05/0.7534, allocations: 44 kB / 0.6638 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.29e-05/0.7535, allocations: 8 kB / 0.6638 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001145/0.7536, allocations: 19.92 kB / 0.6638 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02579/0.7794, allocations: 10.64 MB / 0.6742 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.593e-05/0.7794, allocations: 4 kB / 0.6742 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003205/0.7826, allocations: 0.6505 MB / 0.6748 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009762/0.7924, allocations: 2.026 MB / 0.6768 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006891/0.7931, allocations: 135.9 kB / 0.6769 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02251/0.8157, allocations: 17 MB / 0.6935 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.8157, allocations: 4 kB / 0.6935 GB, free: 0.8672 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2162/1.032, allocations: 8.479 MB / 0.7018 GB, free: 196.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/1.034, allocations: 0.6969 MB / 0.7025 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001022/1.035, allocations: 84.56 kB / 0.7026 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0029/1.038, allocations: 94.05 kB / 0.7027 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001577/1.04, allocations: 336.3 kB / 0.703 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009019/1.041, allocations: 160.8 kB / 0.7031 GB, free: 196.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002615/1.043, allocations: 1.119 MB / 0.7042 GB, free: 196.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.11e-07/1.043, allocations: 2.656 kB / 0.7042 GB, free: 196.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008778/1.052, allocations: 2.175 MB / 0.7064 GB, free: 196.2 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005743/1.058, allocations: 2.197 MB / 0.7085 GB, free: 195.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01121/1.069, allocations: 5.858 MB / 0.7142 GB, free: 193.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/1.069, allocations: 0 / 0.7142 GB, free: 193.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006566/1.076, allocations: 3.546 MB / 0.7177 GB, free: 191.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003835/1.08, allocations: 0.5473 MB / 0.7182 GB, free: 191.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/1.091, allocations: 6.638 MB / 0.7247 GB, free: 188.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001905/1.093, allocations: 1.884 MB / 0.7265 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003022/1.096, allocations: 0.6656 MB / 0.7272 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/1.098, allocations: 455.7 kB / 0.7276 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/1.098, allocations: 0 / 0.7276 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1045/1.202, allocations: 85.12 MB / 0.8107 GB, free: 108.4 MB / 0.5137 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)