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.00114/0.00114, allocations: 108 kB / 15.6 MB, free: 132 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.001155/0.001155, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.185/1.185, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1608/0.1608, allocations: 15.33 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.89 kB / 370.3 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07963/0.08095, allocations: 53.6 MB / 423.9 MB, free: 14.31 MB / 366.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.1635/0.2445, allocations: 33.8 MB / 457.7 MB, free: 37.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0344/0.2789, allocations: 47.39 MB / 0.4933 GB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.2806, allocations: 40.56 kB / 0.4933 GB, free: 10.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.2826, allocations: 1.015 MB / 0.4943 GB, free: 9.488 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007658/0.2903, allocations: 3.705 MB / 0.4979 GB, free: 6.668 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01338/0.3037, allocations: 6.375 MB / 0.5042 GB, free: 1.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005283/0.309, allocations: 4.51 MB / 0.5086 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003729/0.3127, allocations: 2.666 MB / 0.5112 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003361/0.3161, allocations: 2.23 MB / 0.5133 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003946/0.3201, allocations: 2.561 MB / 0.5158 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.3211, allocations: 416 kB / 0.5162 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01622/0.3373, allocations: 5.285 MB / 0.5214 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.3389, allocations: 0.9816 MB / 0.5224 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003067/0.342, allocations: 2.026 MB / 0.5243 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0207/0.3627, allocations: 9.822 MB / 0.5339 GB, free: 4.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3627, allocations: 0 / 0.5339 GB, free: 4.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3628, allocations: 3.938 kB / 0.5339 GB, free: 4.902 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001381/0.3629, allocations: 0 / 0.5339 GB, free: 4.902 MB / 398.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.009707/0.3726, allocations: 4.758 MB / 0.5386 GB, free: 80 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.3727, allocations: 8.031 kB / 0.5386 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003696/0.3764, allocations: 0.8312 MB / 0.5394 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002363/0.3787, allocations: 1.601 MB / 0.541 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.3789, allocations: 302.2 kB / 0.5413 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004557/0.3794, allocations: 332.2 kB / 0.5416 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00597/0.3854, allocations: 4.48 MB / 0.5459 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/0.3854, allocations: 4 kB / 0.5459 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002942/0.3857, allocations: 124 kB / 0.5461 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.3858, allocations: 76 kB / 0.5461 GB, free: 8.199 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007765/0.3936, allocations: 6.107 MB / 0.5521 GB, free: 2.082 MB / 414.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.01966/0.4132, allocations: 14.06 MB / 0.5658 GB, free: 3.609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008056/0.4213, allocations: 6.316 MB / 0.572 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002723/0.424, allocations: 2.243 MB / 0.5742 GB, free: 10.87 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01874/0.4428, allocations: 14.78 MB / 0.5886 GB, free: 10.74 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.4429, allocations: 60.8 kB / 0.5887 GB, free: 10.67 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001497/0.4444, allocations: 377 kB / 0.589 GB, free: 10.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 8.115e-06/0.4444, allocations: 0 / 0.589 GB, free: 10.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.2198/0.6642, allocations: 23.82 MB / 0.6123 GB, free: 127.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.6643, allocations: 94.86 kB / 0.6124 GB, free: 127.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.6659, allocations: 1.707 MB / 0.6141 GB, free: 126.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001937/0.6661, allocations: 89.77 kB / 0.6141 GB, free: 126.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004951/0.6666, allocations: 1.302 MB / 0.6154 GB, free: 125.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006742/0.6673, allocations: 1.304 MB / 0.6167 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009739/0.6683, allocations: 0.7816 MB / 0.6175 GB, free: 124 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.19e-05/0.6683, allocations: 307.3 kB / 0.6178 GB, free: 123.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/0.6706, allocations: 1.814 MB / 0.6195 GB, free: 123 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00267/0.6733, allocations: 2.823 MB / 0.6223 GB, free: 121.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006262/0.6796, allocations: 4.932 MB / 0.6271 GB, free: 118.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.101e-05/0.6796, allocations: 13.14 kB / 0.6271 GB, free: 118.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01596/0.6956, allocations: 6.815 MB / 0.6338 GB, free: 115.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.6956, allocations: 17.09 kB / 0.6338 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.541e-05/0.6957, allocations: 29.69 kB / 0.6338 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009791/0.7055, allocations: 2.293 MB / 0.636 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002969/0.7085, allocations: 0.8866 MB / 0.6369 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02054/0.729, allocations: 18.39 MB / 0.6549 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002444/0.7315, allocations: 138.6 kB / 0.655 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003534/0.7318, allocations: 232 kB / 0.6552 GB, free: 100.9 MB / 462.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.001086/0.7329, allocations: 0.6062 MB / 0.6558 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005443/0.7335, allocations: 273.2 kB / 0.6561 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01509/0.7486, allocations: 6.574 MB / 0.6625 GB, free: 97.94 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/0.7486, allocations: 45.75 kB / 0.6625 GB, free: 97.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/0.7486, allocations: 9.469 kB / 0.6626 GB, free: 97.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/0.7487, allocations: 20.11 kB / 0.6626 GB, free: 97.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01765/0.7663, allocations: 10.68 MB / 0.673 GB, free: 91.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.7664, allocations: 6.688 kB / 0.673 GB, free: 91.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002255/0.7686, allocations: 0.6476 MB / 0.6736 GB, free: 90.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007877/0.7765, allocations: 2.023 MB / 0.6756 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002704/0.7768, allocations: 142.5 kB / 0.6757 GB, free: 88.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/0.7928, allocations: 17.01 MB / 0.6924 GB, free: 70.65 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.7928, allocations: 9.109 kB / 0.6924 GB, free: 70.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01479/0.8076, allocations: 8.481 MB / 0.7007 GB, free: 62.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009692/0.8086, allocations: 0.6911 MB / 0.7013 GB, free: 61.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004217/0.809, allocations: 84 kB / 0.7014 GB, free: 61.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001717/0.8107, allocations: 91.88 kB / 0.7015 GB, free: 61.19 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005079/0.8112, allocations: 346.8 kB / 0.7018 GB, free: 60.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002365/0.8115, allocations: 159.9 kB / 0.702 GB, free: 60.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009631/0.8125, allocations: 1.113 MB / 0.7031 GB, free: 59.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8125, allocations: 2.656 kB / 0.7031 GB, free: 59.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004438/0.8169, allocations: 2.173 MB / 0.7052 GB, free: 57.61 MB / 462.1 MB 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.003195/0.8201, allocations: 2.2 MB / 0.7073 GB, free: 56.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01562/0.8357, allocations: 6.467 MB / 0.7137 GB, free: 49.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.8358, allocations: 0 / 0.7137 GB, free: 49.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004339/0.8401, allocations: 3.547 MB / 0.7171 GB, free: 45.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.8421, allocations: 0.564 MB / 0.7177 GB, free: 45.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008213/0.8503, allocations: 6.716 MB / 0.7242 GB, free: 38.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009799/0.8513, allocations: 1.884 MB / 0.7261 GB, free: 36.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002439/0.8538, allocations: 0.6631 MB / 0.7267 GB, free: 36.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008981/0.8547, allocations: 459 kB / 0.7272 GB, free: 35.98 MB / 462.1 MB Notification: Performance of SimCode: time 2.71e-07/0.8547, allocations: 0 / 0.7272 GB, free: 35.98 MB / 462.1 MB Notification: Performance of Templates: time 0.2331/1.088, allocations: 85.07 MB / 0.8102 GB, free: 128.2 MB / 478.1 MB 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)