Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.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.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane") translateModel(Chemical.Examples.AcidBase.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005378/0.005378, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001154/0.001154, allocations: 193 kB / 16.79 MB, free: 6.254 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.316/1.316, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1869/0.1869, allocations: 15.33 MB / 305.9 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 55.91 kB / 370.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09635, allocations: 53.62 MB / 423.9 MB, free: 14.73 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.Dev.RedCellMembrane): time 0.2118/0.3082, allocations: 53.98 MB / 477.9 MB, free: 29.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1193/0.4275, allocations: 120.4 MB / 0.5843 GB, free: 1.605 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007268/0.4349, allocations: 150.9 kB / 0.5845 GB, free: 1.457 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007804/0.4427, allocations: 2.17 MB / 0.5866 GB, free: 15.27 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0294/0.4721, allocations: 8.823 MB / 0.5952 GB, free: 6.395 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2577/0.7298, allocations: 13.57 MB / 0.6085 GB, free: 9.965 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01312/0.743, allocations: 10.08 MB / 0.6183 GB, free: 9.93 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007436/0.7505, allocations: 4.743 MB / 0.6229 GB, free: 9.617 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0102/0.7607, allocations: 5.238 MB / 0.6281 GB, free: 9.617 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01185/0.7726, allocations: 5.771 MB / 0.6337 GB, free: 9.055 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005087/0.7777, allocations: 0.5867 MB / 0.6343 GB, free: 9.051 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04686/0.8246, allocations: 13.5 MB / 0.6474 GB, free: 9.051 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004401/0.829, allocations: 1.874 MB / 0.6493 GB, free: 8.777 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008816/0.8379, allocations: 4.273 MB / 0.6535 GB, free: 7.676 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02643/0.8643, allocations: 17.82 MB / 0.6709 GB, free: 4.637 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8644, allocations: 0 / 0.6709 GB, free: 4.637 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.8644, allocations: 0 / 0.6709 GB, free: 4.637 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003748/0.8648, allocations: 2.656 kB / 0.6709 GB, free: 4.637 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1818 * Number of variables: 1818 Notification: Performance of Generate backend data structure: time 0.02688/0.8916, allocations: 10.46 MB / 0.6811 GB, free: 12.07 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.8917, allocations: 8.031 kB / 0.6811 GB, free: 12.06 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/0.903, allocations: 1.906 MB / 0.6829 GB, free: 10.15 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007604/0.9107, allocations: 3.455 MB / 0.6863 GB, free: 6.859 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005949/0.9113, allocations: 0.5551 MB / 0.6869 GB, free: 6.297 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002878/0.9142, allocations: 0.7304 MB / 0.6876 GB, free: 5.566 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02373/0.9379, allocations: 9.183 MB / 0.6965 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001864/0.9382, allocations: 4.562 kB / 0.6965 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001409/0.9396, allocations: 288.7 kB / 0.6968 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.9397, allocations: 172 kB / 0.697 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02472/0.9644, allocations: 12.66 MB / 0.7093 GB, free: 15.18 MB / 0.4981 GB 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.06572/1.03, allocations: 30.13 MB / 0.7388 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03645/1.067, allocations: 20.42 MB / 0.7587 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008316/1.075, allocations: 4.708 MB / 0.7633 GB, free: 7.117 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3027/1.378, allocations: 36.53 MB / 0.799 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.838e-05/1.378, allocations: 93.44 kB / 0.7991 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003481/1.381, allocations: 0.5832 MB / 0.7996 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=581): time 1.638e-05/1.381, allocations: 0 / 0.7996 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=757): time 0.1377/1.519, allocations: 35.48 MB / 0.8343 GB, free: 218.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/1.519, allocations: 131 kB / 0.8344 GB, free: 218.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005993/1.525, allocations: 3.381 MB / 0.8377 GB, free: 217.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001354/1.527, allocations: 151.1 kB / 0.8379 GB, free: 217 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002049/1.529, allocations: 3.148 MB / 0.8409 GB, free: 214.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002922/1.532, allocations: 2.58 MB / 0.8434 GB, free: 212.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002762/1.534, allocations: 1.7 MB / 0.8451 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.877e-05/1.534, allocations: 306.5 kB / 0.8454 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005742/1.54, allocations: 2.856 MB / 0.8482 GB, free: 210.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007993/1.548, allocations: 5.742 MB / 0.8538 GB, free: 205.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01574/1.564, allocations: 9.493 MB / 0.8631 GB, free: 199.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/1.564, allocations: 26.5 kB / 0.8631 GB, free: 199.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02879/1.593, allocations: 10.69 MB / 0.8735 GB, free: 195 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.866e-05/1.593, allocations: 48.78 kB / 0.8736 GB, free: 195 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.024e-05/1.593, allocations: 92.06 kB / 0.8737 GB, free: 195 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009605/1.603, allocations: 1.81 MB / 0.8754 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01057/1.613, allocations: 2.313 MB / 0.8777 GB, free: 194.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0167/1.63, allocations: 11.78 MB / 0.8892 GB, free: 184.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008047/1.638, allocations: 459.7 kB / 0.8896 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001921/1.64, allocations: 0.5187 MB / 0.8901 GB, free: 183.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * 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 (1143): * Single equations (assignments): 1137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,20,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,27), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.004487/1.645, allocations: 1.203 MB / 0.8913 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002021/1.647, allocations: 0.5786 MB / 0.8919 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02532/1.672, allocations: 10.14 MB / 0.9018 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.376e-05/1.672, allocations: 80 kB / 0.9019 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.1e-05/1.672, allocations: 5.219 kB / 0.9019 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002389/1.673, allocations: 45.97 kB / 0.9019 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03417/1.707, allocations: 16.32 MB / 0.9178 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-05/1.707, allocations: 4 kB / 0.9179 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008177/1.715, allocations: 1.525 MB / 0.9193 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008811/1.724, allocations: 1.631 MB / 0.9209 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002225/1.726, allocations: 271.9 kB / 0.9212 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01453/1.741, allocations: 11.06 MB / 0.932 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/1.741, allocations: 4 kB / 0.932 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03222/1.773, allocations: 12.93 MB / 0.9446 GB, free: 132.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004296/1.777, allocations: 1.305 MB / 0.9459 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002146/1.779, allocations: 144 kB / 0.946 GB, free: 130.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005049/1.785, allocations: 295.4 kB / 0.9463 GB, free: 130.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001497/1.786, allocations: 0.5823 MB / 0.9469 GB, free: 129.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001095/1.787, allocations: 311.9 kB / 0.9472 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00325/1.79, allocations: 2.043 MB / 0.9492 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.79, allocations: 0 / 0.9492 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01831/1.809, allocations: 4.991 MB / 0.9541 GB, free: 123 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 34 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,HCO3.logn,H2O.logn,HCO3_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,albumin.logn,permeableUncharged.logn,permeableUncharged_E.logn,chargedImpermeable_E.logn,Lac_E.logn,Lac.logn,H_E.logn,H.logn,CO2.logn,CO2_E.logn,O2.logn,O2_E.logn,K.logn,Na.logn,Na_E.logn,K_E.logn,H2PO4_E.logn,ADP_E.logn,ATP_E.logn,HPO4_E.logn,globulins.logn,Ca.logn,Mg.logn,DPG.logn,GSH.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 (761): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,20,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(4,33), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01444/1.823, allocations: 5.554 MB / 0.9595 GB, free: 118.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01825/1.842, allocations: 8.976 MB / 0.9683 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.842, allocations: 0 / 0.9683 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.008652/1.85, allocations: 4.887 MB / 0.973 GB, free: 104.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008306/1.859, allocations: 1.101 MB / 0.9741 GB, free: 103.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02397/1.883, allocations: 16.04 MB / 0.9898 GB, free: 87.26 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003415/1.886, allocations: 3.18 MB / 0.9929 GB, free: 84.04 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00506/1.891, allocations: 1.453 MB / 0.9943 GB, free: 82.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.043e-06/1.891, allocations: 0 / 0.9943 GB, free: 82.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.4645/2.356, allocations: 282.9 MB / 1.271 GB, free: 51.86 MB / 0.5762 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.makefile (rm -f Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.sim & ./Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)