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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001234/0.001234, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001051/0.001051, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2024/0.2024, allocations: 15.25 MB / 306.2 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003022, allocations: 11.94 kB / 371.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2726, allocations: 54.62 MB / 426 MB, free: 39.98 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65: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.0-master/package.mo:3011:6-3011:65: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.01034/0.283, allocations: 13.11 MB / 439.1 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03405/0.317, allocations: 39.93 MB / 479 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002929/0.32, allocations: 63.62 kB / 479.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002683/0.3227, allocations: 0.9464 MB / 480 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.3341, allocations: 3.733 MB / 483.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02279/0.3569, allocations: 5.699 MB / 489.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008017/0.365, allocations: 2.971 MB / 492.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00379/0.3688, allocations: 2.11 MB / 494.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004159/0.373, allocations: 1.658 MB / 496.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004927/0.3779, allocations: 2.226 MB / 498.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.379, allocations: 227.8 kB / 498.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01933/0.3983, allocations: 5.791 MB / 0.4926 GB, free: 7.477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.4002, allocations: 0.7648 MB / 0.4934 GB, free: 6.832 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001556/0.4018, allocations: 0.6289 MB / 0.494 GB, free: 6.195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.4152, allocations: 5.867 MB / 0.4997 GB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4153, allocations: 0 / 0.4997 GB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4153, allocations: 0 / 0.4997 GB, free: 324 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000159/0.4154, allocations: 0 / 0.4997 GB, free: 324 kB / 366.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.009168/0.4246, allocations: 3.939 MB / 0.5036 GB, free: 12.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.4247, allocations: 8.031 kB / 0.5036 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003918/0.4286, allocations: 0.8276 MB / 0.5044 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002941/0.4316, allocations: 1.448 MB / 0.5058 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002468/0.4318, allocations: 297.7 kB / 0.5061 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006084/0.4324, allocations: 331.8 kB / 0.5064 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006929/0.4394, allocations: 4.431 MB / 0.5107 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.468e-05/0.4395, allocations: 11.94 kB / 0.5107 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.4398, allocations: 124 kB / 0.5108 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.572e-05/0.4399, allocations: 76 kB / 0.5109 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008928/0.4488, allocations: 6.083 MB / 0.5169 GB, free: 14.54 MB / 398.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.0238/0.4726, allocations: 13.77 MB / 0.5303 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009088/0.4818, allocations: 6.296 MB / 0.5365 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02126/0.5031, allocations: 14.39 MB / 0.5505 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.5031, allocations: 64.75 kB / 0.5506 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00174/0.5049, allocations: 369 kB / 0.5509 GB, free: 9.707 MB / 430.1 MB Notification: Performance of pre-optimization done (n=284): time 6.442e-06/0.5049, allocations: 0 / 0.5509 GB, free: 9.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=387): time 0.08674/0.5917, allocations: 24.08 MB / 0.5744 GB, free: 1.285 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.5918, allocations: 94.39 kB / 0.5745 GB, free: 1.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/0.5938, allocations: 1.688 MB / 0.5762 GB, free: 15.44 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005573/0.5944, allocations: 85.7 kB / 0.5763 GB, free: 15.35 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009855/0.5954, allocations: 1.308 MB / 0.5775 GB, free: 14.03 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001536/0.5969, allocations: 1.309 MB / 0.5788 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.5972, allocations: 88 kB / 0.5789 GB, free: 12.61 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002343/0.5974, allocations: 467.1 kB / 0.5793 GB, free: 12.15 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00275/0.6002, allocations: 1.8 MB / 0.5811 GB, free: 10.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003339/0.6035, allocations: 2.792 MB / 0.5838 GB, free: 7.117 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003483/0.607, allocations: 2.139 MB / 0.5859 GB, free: 4.969 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.766e-05/0.6071, allocations: 12 kB / 0.5859 GB, free: 4.957 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.2051/0.8122, allocations: 6.804 MB / 0.5926 GB, free: 130.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.8122, allocations: 20.94 kB / 0.5926 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.095e-05/0.8123, allocations: 29.31 kB / 0.5926 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01047/0.8228, allocations: 2.308 MB / 0.5949 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003772/0.8266, allocations: 0.8997 MB / 0.5958 GB, free: 130.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02242/0.849, allocations: 17.33 MB / 0.6127 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003937/0.853, allocations: 209.3 kB / 0.6129 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004976/0.8535, allocations: 229.2 kB / 0.6131 GB, free: 119.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 16,(1,100.0%) 3,(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 5 {3 26,1 3,1 6,1 2,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001363/0.8549, allocations: 0.61 MB / 0.6137 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005008/0.8554, allocations: 268.2 kB / 0.614 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01613/0.8715, allocations: 6.614 MB / 0.6204 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/0.8716, allocations: 42.22 kB / 0.6205 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/0.8716, allocations: 6.469 kB / 0.6205 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.747e-05/0.8717, allocations: 23.55 kB / 0.6205 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02461/0.8963, allocations: 10.59 MB / 0.6308 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-05/0.8964, allocations: 13.19 kB / 0.6308 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003125/0.8996, allocations: 0.6544 MB / 0.6315 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009937/0.9095, allocations: 2.096 MB / 0.6335 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007691/0.9103, allocations: 137.1 kB / 0.6337 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01966/0.93, allocations: 15.92 MB / 0.6492 GB, free: 98.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.93, allocations: 5.031 kB / 0.6492 GB, free: 98.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01762/0.9477, allocations: 8.746 MB / 0.6577 GB, free: 94.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/0.9492, allocations: 0.6731 MB / 0.6584 GB, free: 94.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004829/0.9497, allocations: 81.78 kB / 0.6585 GB, free: 94.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001949/0.9517, allocations: 149.1 kB / 0.6586 GB, free: 94.17 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006658/0.9523, allocations: 354.2 kB / 0.659 GB, free: 94.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/0.9526, allocations: 159.3 kB / 0.6591 GB, free: 94.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001185/0.9538, allocations: 1.1 MB / 0.6602 GB, free: 93.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9538, allocations: 0 / 0.6602 GB, free: 93.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005763/0.9596, allocations: 2.125 MB / 0.6623 GB, free: 93.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 16,(1,100.0%) 3,(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 5 {2 8,4 30,1 3,1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003427/0.963, allocations: 2.142 MB / 0.6644 GB, free: 92.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009179/0.9722, allocations: 5.844 MB / 0.6701 GB, free: 86.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.9723, allocations: 0 / 0.6701 GB, free: 86.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005333/0.9776, allocations: 3.529 MB / 0.6735 GB, free: 83.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002359/0.98, allocations: 459.1 kB / 0.6739 GB, free: 82.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009869/0.9899, allocations: 7.976 MB / 0.6817 GB, free: 74.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.991, allocations: 1.944 MB / 0.6836 GB, free: 72.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003351/0.9944, allocations: 0.6741 MB / 0.6843 GB, free: 72.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.9954, allocations: 451.1 kB / 0.6847 GB, free: 71.61 MB / 462.1 MB Notification: Performance of SimCode: time 1.733e-06/0.9954, allocations: 0 / 0.6847 GB, free: 71.61 MB / 462.1 MB Notification: Performance of Templates: time 0.09529/1.091, allocations: 77.7 MB / 0.7606 GB, free: 10.15 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: