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.001382/0.001382, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001159/0.001159, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.302/1.302, 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.09259/0.09259, allocations: 15.32 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.89 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1046, allocations: 53.61 MB / 479.5 MB, free: 5.793 MB / 350.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.04084/0.1454, allocations: 33.8 MB / 0.5012 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2849/0.4304, allocations: 47.41 MB / 0.5475 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002837/0.4333, allocations: 36.47 kB / 0.5476 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003791/0.4371, allocations: 1.028 MB / 0.5486 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01358/0.4507, allocations: 3.695 MB / 0.5522 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02093/0.4716, allocations: 6.366 MB / 0.5584 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007149/0.4788, allocations: 4.542 MB / 0.5628 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003726/0.4826, allocations: 2.658 MB / 0.5654 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003845/0.4864, allocations: 2.233 MB / 0.5676 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004587/0.491, allocations: 2.558 MB / 0.5701 GB, free: 9.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001092/0.4922, allocations: 418.7 kB / 0.5705 GB, free: 9.324 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02012/0.5123, allocations: 5.289 MB / 0.5757 GB, free: 4.027 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001707/0.514, allocations: 0.9815 MB / 0.5766 GB, free: 3.043 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003239/0.5173, allocations: 2.026 MB / 0.5786 GB, free: 1.008 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02882/0.5461, allocations: 9.892 MB / 0.5883 GB, free: 7.082 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.5462, allocations: 0 / 0.5883 GB, free: 7.082 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5462, allocations: 0 / 0.5883 GB, free: 7.082 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.835e-05/0.5463, allocations: 2.656 kB / 0.5883 GB, free: 7.082 MB / 430.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.01116/0.5575, allocations: 4.756 MB / 0.5929 GB, free: 2.293 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.5575, allocations: 15.97 kB / 0.5929 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00386/0.5614, allocations: 0.8363 MB / 0.5937 GB, free: 1.441 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/0.5643, allocations: 1.648 MB / 0.5954 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/0.5646, allocations: 300.9 kB / 0.5956 GB, free: 15.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005303/0.5651, allocations: 328.1 kB / 0.596 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007294/0.5724, allocations: 4.49 MB / 0.6003 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.843e-05/0.5725, allocations: 0 / 0.6003 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003538/0.5728, allocations: 128 kB / 0.6005 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-05/0.5729, allocations: 76 kB / 0.6005 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009411/0.5823, allocations: 6.095 MB / 0.6065 GB, free: 4.258 MB / 446.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.02472/0.6071, allocations: 13.98 MB / 0.6201 GB, free: 5.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009231/0.6163, allocations: 6.319 MB / 0.6263 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00349/0.6199, allocations: 2.239 MB / 0.6285 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02119/0.6411, allocations: 14.77 MB / 0.6429 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.597e-05/0.6412, allocations: 64.72 kB / 0.643 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001612/0.6428, allocations: 375.7 kB / 0.6433 GB, free: 12.65 MB / 494.1 MB Notification: Performance of pre-optimization done (n=284): time 5.781e-06/0.6428, allocations: 2.656 kB / 0.6433 GB, free: 12.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=387): time 0.08738/0.7302, allocations: 23.84 MB / 0.6666 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.712e-05/0.7303, allocations: 90.45 kB / 0.6667 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.7325, allocations: 1.712 MB / 0.6684 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006718/0.7331, allocations: 89.7 kB / 0.6685 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008243/0.734, allocations: 1.305 MB / 0.6697 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001307/0.7353, allocations: 1.301 MB / 0.671 GB, free: 112 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/0.7364, allocations: 0.7797 MB / 0.6718 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.7366, allocations: 305.1 kB / 0.6721 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/0.7394, allocations: 1.812 MB / 0.6738 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003673/0.7431, allocations: 2.823 MB / 0.6766 GB, free: 9.938 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007317/0.7504, allocations: 4.936 MB / 0.6814 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.612e-05/0.7505, allocations: 12 kB / 0.6814 GB, free: 4.562 MB / 0.5137 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01812/0.7686, allocations: 6.816 MB / 0.6881 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.7687, allocations: 19.94 kB / 0.6881 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.928e-05/0.7687, allocations: 28 kB / 0.6881 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01077/0.7795, allocations: 2.28 MB / 0.6904 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003765/0.7833, allocations: 0.8893 MB / 0.6912 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02571/0.8091, allocations: 18.4 MB / 0.7092 GB, free: 7.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003437/0.8125, allocations: 136 kB / 0.7093 GB, free: 6.887 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006463/0.8132, allocations: 231.9 kB / 0.7095 GB, free: 6.66 MB / 0.545 GB 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.00151/0.8147, allocations: 0.6069 MB / 0.7101 GB, free: 6.043 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008029/0.8155, allocations: 276.5 kB / 0.7104 GB, free: 5.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2725/1.088, allocations: 6.573 MB / 0.7168 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-05/1.088, allocations: 41.98 kB / 0.7169 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.651e-05/1.088, allocations: 5.312 kB / 0.7169 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001468/1.088, allocations: 20.44 kB / 0.7169 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0259/1.114, allocations: 10.65 MB / 0.7273 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.194e-05/1.114, allocations: 7.625 kB / 0.7273 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003174/1.117, allocations: 0.6514 MB / 0.7279 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009536/1.127, allocations: 2.016 MB / 0.7299 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008787/1.128, allocations: 134.2 kB / 0.73 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01954/1.147, allocations: 17.03 MB / 0.7467 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/1.148, allocations: 9.656 kB / 0.7467 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01928/1.167, allocations: 8.474 MB / 0.7549 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001812/1.169, allocations: 0.6948 MB / 0.7556 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005333/1.169, allocations: 86.41 kB / 0.7557 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/1.171, allocations: 90.91 kB / 0.7558 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007423/1.172, allocations: 349.3 kB / 0.7561 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002966/1.172, allocations: 157.4 kB / 0.7563 GB, free: 163.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001335/1.174, allocations: 1.113 MB / 0.7574 GB, free: 162.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/1.174, allocations: 3.531 kB / 0.7574 GB, free: 162.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005819/1.179, allocations: 2.179 MB / 0.7595 GB, free: 162.5 MB / 0.545 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.003832/1.183, allocations: 2.194 MB / 0.7616 GB, free: 162.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009377/1.193, allocations: 5.855 MB / 0.7673 GB, free: 159.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/1.193, allocations: 3.781 kB / 0.7674 GB, free: 159.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005571/1.198, allocations: 3.54 MB / 0.7708 GB, free: 156.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/1.201, allocations: 0.5529 MB / 0.7713 GB, free: 155.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009813/1.211, allocations: 6.704 MB / 0.7779 GB, free: 149 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/1.212, allocations: 1.877 MB / 0.7797 GB, free: 147.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001595/1.214, allocations: 0.5599 MB / 0.7803 GB, free: 146.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.613e-06/1.214, allocations: 0 / 0.7803 GB, free: 146.6 MB / 0.545 GB Notification: Performance of Templates: time 0.3796/1.593, allocations: 168.3 MB / 0.9447 GB, free: 170.3 MB / 0.545 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 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)