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.0007941/0.0007944, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008309/0.000831, allocations: 168.7 kB / 15.95 MB, free: 204 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.311/1.311, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.189/0.189, allocations: 15.28 MB / 306.4 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.0002951, allocations: 8 kB / 371.5 MB, free: 3.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2708, allocations: 54.62 MB / 426.1 MB, free: 40.09 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.01096/0.2818, allocations: 14.71 MB / 440.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03777/0.3195, allocations: 43.57 MB / 484.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003163/0.3227, allocations: 65.16 kB / 484.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003006/0.3258, allocations: 0.9107 MB / 485.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01238/0.3382, allocations: 3.358 MB / 488.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01851/0.3567, allocations: 5.181 MB / 493.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008449/0.3652, allocations: 4.126 MB / 498 MB, free: 9.531 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004156/0.3694, allocations: 2.134 MB / 0.4884 GB, free: 8.664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004435/0.3738, allocations: 1.799 MB / 0.4902 GB, free: 8.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00445/0.3783, allocations: 2.298 MB / 0.4924 GB, free: 6.781 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000709/0.379, allocations: 231.2 kB / 0.4927 GB, free: 6.777 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01737/0.3964, allocations: 4.963 MB / 0.4975 GB, free: 2.613 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001396/0.3978, allocations: 0.7631 MB / 0.4983 GB, free: 1.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001514/0.3994, allocations: 0.6289 MB / 0.4989 GB, free: 1.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.4115, allocations: 7.407 MB / 0.5061 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4115, allocations: 0 / 0.5061 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4115, allocations: 4 kB / 0.5061 GB, free: 9.773 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001723/0.4117, allocations: 0 / 0.5061 GB, free: 9.773 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.008907/0.4206, allocations: 3.974 MB / 0.51 GB, free: 5.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.4207, allocations: 8.031 kB / 0.51 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003953/0.4246, allocations: 0.8315 MB / 0.5108 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003357/0.428, allocations: 1.507 MB / 0.5123 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003668/0.4284, allocations: 293.7 kB / 0.5126 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/0.4296, allocations: 335.7 kB / 0.5129 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009551/0.4391, allocations: 4.449 MB / 0.5172 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.959e-05/0.4392, allocations: 3.953 kB / 0.5172 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005092/0.4398, allocations: 128 kB / 0.5173 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.867e-05/0.4398, allocations: 76 kB / 0.5174 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009337/0.4492, allocations: 6.091 MB / 0.5234 GB, free: 7.867 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.02322/0.4724, allocations: 13.89 MB / 0.5369 GB, free: 9.574 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008829/0.4813, allocations: 6.3 MB / 0.5431 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003398/0.4847, allocations: 2.231 MB / 0.5453 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02048/0.5052, allocations: 14.52 MB / 0.5594 GB, free: 1.004 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/0.5053, allocations: 64.73 kB / 0.5595 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001625/0.5069, allocations: 377 kB / 0.5599 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of pre-optimization done (n=284): time 1.29e-05/0.5069, allocations: 3.938 kB / 0.5599 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of matching and sorting (n=387): time 0.2761/0.783, allocations: 24.08 MB / 0.5834 GB, free: 117.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.7831, allocations: 94.11 kB / 0.5835 GB, free: 117.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/0.7858, allocations: 1.691 MB / 0.5851 GB, free: 116.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00063/0.7865, allocations: 86.77 kB / 0.5852 GB, free: 116.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008577/0.7874, allocations: 1.307 MB / 0.5865 GB, free: 115.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001413/0.7888, allocations: 1.304 MB / 0.5878 GB, free: 114.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004303/0.7892, allocations: 83.84 kB / 0.5878 GB, free: 114.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.7895, allocations: 468.5 kB / 0.5883 GB, free: 114.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/0.7932, allocations: 1.801 MB / 0.59 GB, free: 113.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004202/0.7974, allocations: 2.813 MB / 0.5928 GB, free: 111.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004444/0.8019, allocations: 2.144 MB / 0.5949 GB, free: 110.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.435e-05/0.8019, allocations: 8.969 kB / 0.5949 GB, free: 110.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01772/0.8196, allocations: 6.794 MB / 0.6015 GB, free: 108 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.487e-05/0.8197, allocations: 21.09 kB / 0.6015 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.366e-05/0.8198, allocations: 28.88 kB / 0.6016 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009925/0.8297, allocations: 2.317 MB / 0.6038 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003329/0.8331, allocations: 0.8967 MB / 0.6047 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02153/0.8546, allocations: 17.08 MB / 0.6214 GB, free: 94.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003163/0.8578, allocations: 215.1 kB / 0.6216 GB, free: 94.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007291/0.8585, allocations: 233.7 kB / 0.6218 GB, free: 94.14 MB / 446.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.001819/0.8604, allocations: 0.6065 MB / 0.6224 GB, free: 93.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006861/0.8611, allocations: 270.8 kB / 0.6227 GB, free: 93.56 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01728/0.8784, allocations: 6.61 MB / 0.6291 GB, free: 91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.945e-05/0.8784, allocations: 40.25 kB / 0.6292 GB, free: 91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.245e-05/0.8785, allocations: 5.812 kB / 0.6292 GB, free: 91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.746e-05/0.8786, allocations: 24 kB / 0.6292 GB, free: 90.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02077/0.8993, allocations: 10.63 MB / 0.6396 GB, free: 86.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/0.8994, allocations: 3.75 kB / 0.6396 GB, free: 86.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002412/0.9018, allocations: 0.6595 MB / 0.6402 GB, free: 86.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008859/0.9107, allocations: 2.105 MB / 0.6423 GB, free: 85.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007223/0.9115, allocations: 134.3 kB / 0.6424 GB, free: 85.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01735/0.9288, allocations: 15.7 MB / 0.6577 GB, free: 69.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.9289, allocations: 7.938 kB / 0.6577 GB, free: 69.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01685/0.9457, allocations: 8.466 MB / 0.666 GB, free: 60.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/0.9473, allocations: 0.6884 MB / 0.6667 GB, free: 59.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000718/0.9481, allocations: 84 kB / 0.6668 GB, free: 59.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/0.9504, allocations: 152 kB / 0.6669 GB, free: 59.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006384/0.9511, allocations: 338.7 kB / 0.6672 GB, free: 59.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003277/0.9514, allocations: 159.9 kB / 0.6674 GB, free: 59.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001239/0.9527, allocations: 1.105 MB / 0.6685 GB, free: 58.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.9527, allocations: 0 / 0.6685 GB, free: 58.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005981/0.9587, allocations: 2.177 MB / 0.6706 GB, free: 56.16 MB / 446.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.003892/0.9626, allocations: 2.177 MB / 0.6727 GB, free: 54.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008945/0.9715, allocations: 5.848 MB / 0.6784 GB, free: 48.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.9716, allocations: 3.938 kB / 0.6784 GB, free: 48.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005116/0.9767, allocations: 3.531 MB / 0.6819 GB, free: 44.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/0.9798, allocations: 0.5186 MB / 0.6824 GB, free: 44.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.9905, allocations: 7.983 MB / 0.6902 GB, free: 36.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001426/0.9919, allocations: 1.883 MB / 0.692 GB, free: 34.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003317/0.9953, allocations: 0.6806 MB / 0.6927 GB, free: 33.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/0.9964, allocations: 447.1 kB / 0.6931 GB, free: 33.28 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.9964, allocations: 0 / 0.6931 GB, free: 33.28 MB / 446.1 MB Notification: Performance of Templates: time 0.2928/1.289, allocations: 78.56 MB / 0.7698 GB, free: 134.5 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)