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.001295/0.001295, allocations: 103.6 kB / 16.4 MB, free: 6.426 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.001355/0.001355, allocations: 192.1 kB / 17.34 MB, free: 5.703 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07835/0.07835, allocations: 15.3 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 68.12 kB / 425.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09503, allocations: 53.61 MB / 479.5 MB, free: 5.746 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.04283/0.1379, allocations: 33.8 MB / 0.5013 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2483/0.3863, allocations: 47.4 MB / 0.5475 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002411/0.3887, allocations: 35.41 kB / 0.5476 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003153/0.3919, allocations: 1.021 MB / 0.5486 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01188/0.4038, allocations: 3.701 MB / 0.5522 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01915/0.423, allocations: 6.366 MB / 0.5584 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007127/0.4301, allocations: 4.535 MB / 0.5628 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004454/0.4347, allocations: 2.667 MB / 0.5654 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004392/0.4391, allocations: 2.233 MB / 0.5676 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004811/0.4439, allocations: 2.569 MB / 0.5701 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001503/0.4455, allocations: 416 kB / 0.5705 GB, free: 9.262 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01946/0.4649, allocations: 5.281 MB / 0.5757 GB, free: 3.973 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.4667, allocations: 0.9854 MB / 0.5766 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003813/0.4706, allocations: 2.022 MB / 0.5786 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02772/0.4983, allocations: 9.892 MB / 0.5883 GB, free: 7.027 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.4984, allocations: 2.656 kB / 0.5883 GB, free: 7.027 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4984, allocations: 0 / 0.5883 GB, free: 7.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.4986, allocations: 0 / 0.5883 GB, free: 7.027 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.01293/0.5116, allocations: 4.759 MB / 0.5929 GB, free: 2.238 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.5116, allocations: 12.03 kB / 0.5929 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004478/0.5161, allocations: 0.8299 MB / 0.5937 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003618/0.5198, allocations: 1.644 MB / 0.5954 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003485/0.5201, allocations: 302.2 kB / 0.5956 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.5212, allocations: 332.1 kB / 0.596 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009703/0.5309, allocations: 4.486 MB / 0.6003 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.289e-05/0.531, allocations: 4 kB / 0.6003 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006206/0.5317, allocations: 124 kB / 0.6005 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-05/0.5317, allocations: 76 kB / 0.6005 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.5429, allocations: 6.102 MB / 0.6065 GB, free: 4.207 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.03022/0.5731, allocations: 13.98 MB / 0.6201 GB, free: 5.859 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.5846, allocations: 6.317 MB / 0.6263 GB, free: 15.38 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004323/0.5889, allocations: 2.243 MB / 0.6285 GB, free: 13.12 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02497/0.6139, allocations: 14.77 MB / 0.6429 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.614, allocations: 62.67 kB / 0.643 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00221/0.6163, allocations: 382.3 kB / 0.6433 GB, free: 12.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=284): time 1.691e-05/0.6163, allocations: 0 / 0.6433 GB, free: 12.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=387): time 0.09725/0.7135, allocations: 23.84 MB / 0.6666 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.7137, allocations: 98.39 kB / 0.6667 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002374/0.716, allocations: 1.704 MB / 0.6684 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007765/0.7168, allocations: 89.7 kB / 0.6685 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009436/0.7178, allocations: 1.301 MB / 0.6697 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001675/0.7195, allocations: 1.305 MB / 0.671 GB, free: 60 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001952/0.7214, allocations: 0.7758 MB / 0.6718 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.7216, allocations: 305.1 kB / 0.6721 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003439/0.725, allocations: 1.82 MB / 0.6738 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004231/0.7293, allocations: 2.819 MB / 0.6766 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008532/0.7378, allocations: 4.94 MB / 0.6814 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-05/0.7379, allocations: 8 kB / 0.6814 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.02194/0.7599, allocations: 6.808 MB / 0.6881 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.267e-05/0.76, allocations: 16 kB / 0.6881 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.078e-05/0.76, allocations: 38.58 kB / 0.6881 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/0.772, allocations: 2.284 MB / 0.6904 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00401/0.776, allocations: 0.901 MB / 0.6912 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02893/0.805, allocations: 18.39 MB / 0.7092 GB, free: 6.973 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003515/0.8085, allocations: 144 kB / 0.7093 GB, free: 6.832 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000934/0.8095, allocations: 227.9 kB / 0.7095 GB, free: 6.609 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.002142/0.8117, allocations: 0.6061 MB / 0.7101 GB, free: 5.996 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001219/0.8129, allocations: 276.5 kB / 0.7104 GB, free: 5.723 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2311/1.044, allocations: 6.581 MB / 0.7168 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.372e-05/1.044, allocations: 41.34 kB / 0.7169 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.961e-05/1.044, allocations: 5.641 kB / 0.7169 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001244/1.044, allocations: 20.69 kB / 0.7169 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02689/1.071, allocations: 10.65 MB / 0.7273 GB, free: 182 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.978e-05/1.071, allocations: 4.609 kB / 0.7273 GB, free: 182 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003313/1.075, allocations: 0.652 MB / 0.7279 GB, free: 182 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009842/1.084, allocations: 2.015 MB / 0.7299 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008671/1.085, allocations: 140.2 kB / 0.73 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01961/1.105, allocations: 17.02 MB / 0.7467 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/1.105, allocations: 11.31 kB / 0.7467 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01881/1.124, allocations: 8.476 MB / 0.7549 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/1.126, allocations: 0.6952 MB / 0.7556 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005505/1.126, allocations: 78.94 kB / 0.7557 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002071/1.128, allocations: 95.23 kB / 0.7558 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006807/1.129, allocations: 337 kB / 0.7561 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002864/1.129, allocations: 161.8 kB / 0.7563 GB, free: 163.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00125/1.131, allocations: 1.117 MB / 0.7574 GB, free: 163.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.131, allocations: 0 / 0.7574 GB, free: 163.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005851/1.136, allocations: 2.178 MB / 0.7595 GB, free: 163 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.004026/1.14, allocations: 2.197 MB / 0.7616 GB, free: 162.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00953/1.15, allocations: 5.857 MB / 0.7674 GB, free: 159.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/1.15, allocations: 2.719 kB / 0.7674 GB, free: 159.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005571/1.156, allocations: 3.544 MB / 0.7708 GB, free: 156.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00287/1.159, allocations: 0.5491 MB / 0.7713 GB, free: 156.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009539/1.168, allocations: 6.699 MB / 0.7779 GB, free: 149.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009843/1.169, allocations: 1.879 MB / 0.7797 GB, free: 147.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/1.171, allocations: 0.5527 MB / 0.7803 GB, free: 147.1 MB / 0.545 GB Notification: Performance of SimCode: time 7.11e-07/1.171, allocations: 0 / 0.7803 GB, free: 147.1 MB / 0.545 GB Notification: Performance of Templates: time 0.342/1.513, allocations: 168.8 MB / 0.9451 GB, free: 171.2 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)