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.001132/0.001132, allocations: 108 kB / 15.61 MB, free: 148 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.001142/0.001142, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.168/1.168, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1612/0.1612, allocations: 15.32 MB / 305.7 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 63.91 kB / 370.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07937/0.08051, allocations: 53.6 MB / 423.9 MB, free: 14.3 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.1889/0.2695, allocations: 49.69 MB / 473.6 MB, free: 32.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.09817/0.3676, allocations: 120.7 MB / 0.5804 GB, free: 5.148 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004089/0.3718, allocations: 75.62 kB / 0.5805 GB, free: 5.074 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005224/0.377, allocations: 2.397 MB / 0.5829 GB, free: 2.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02399/0.401, allocations: 10.1 MB / 0.5927 GB, free: 8.492 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.204/0.6051, allocations: 15.49 MB / 0.6078 GB, free: 11.33 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.009259/0.6143, allocations: 10.48 MB / 0.6181 GB, free: 11.3 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005646/0.62, allocations: 5.505 MB / 0.6235 GB, free: 10.9 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006137/0.6261, allocations: 5.325 MB / 0.6287 GB, free: 10.9 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008658/0.6348, allocations: 5.881 MB / 0.6344 GB, free: 10.31 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002978/0.6378, allocations: 0.8827 MB / 0.6353 GB, free: 10.31 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03607/0.6739, allocations: 13.73 MB / 0.6487 GB, free: 10.31 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003249/0.6772, allocations: 2.125 MB / 0.6507 GB, free: 10.03 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006983/0.6842, allocations: 4.539 MB / 0.6552 GB, free: 8.121 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04194/0.7261, allocations: 24.1 MB / 0.6787 GB, free: 14.56 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.7262, allocations: 0 / 0.6787 GB, free: 14.56 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.7262, allocations: 0 / 0.6787 GB, free: 14.56 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003134/0.7265, allocations: 2.625 kB / 0.6787 GB, free: 14.56 MB / 478.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.02065/0.7471, allocations: 10.46 MB / 0.6889 GB, free: 4.137 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.7472, allocations: 8.031 kB / 0.6889 GB, free: 4.129 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008501/0.7557, allocations: 1.913 MB / 0.6908 GB, free: 2.215 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004883/0.7606, allocations: 3.448 MB / 0.6942 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/0.761, allocations: 0.5552 MB / 0.6947 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.762, allocations: 0.7343 MB / 0.6954 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/0.7745, allocations: 9.176 MB / 0.7044 GB, free: 4.348 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.555e-05/0.7746, allocations: 7.562 kB / 0.7044 GB, free: 4.344 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006649/0.7753, allocations: 288 kB / 0.7047 GB, free: 4.062 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/0.7754, allocations: 172 kB / 0.7048 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01679/0.7922, allocations: 12.65 MB / 0.7172 GB, free: 7.258 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.04048/0.8327, allocations: 30.26 MB / 0.7467 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02969/0.8624, allocations: 20.45 MB / 0.7667 GB, free: 3.906 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005761/0.8682, allocations: 4.708 MB / 0.7713 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3219/1.19, allocations: 36.47 MB / 0.8069 GB, free: 224.6 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/1.19, allocations: 96.34 kB / 0.807 GB, free: 224.6 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001644/1.192, allocations: 0.5798 MB / 0.8076 GB, free: 224.5 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 6.823e-06/1.192, allocations: 0 / 0.8076 GB, free: 224.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.09306/1.285, allocations: 35.51 MB / 0.8422 GB, free: 212.5 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/1.285, allocations: 134.8 kB / 0.8424 GB, free: 212.5 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004065/1.289, allocations: 3.377 MB / 0.8457 GB, free: 211.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0003674/1.289, allocations: 149.4 kB / 0.8458 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001431/1.291, allocations: 3.145 MB / 0.8489 GB, free: 208.6 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001499/1.292, allocations: 2.583 MB / 0.8514 GB, free: 206.6 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002095/1.295, allocations: 1.7 MB / 0.8531 GB, free: 205.9 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.243e-05/1.295, allocations: 305.9 kB / 0.8534 GB, free: 205.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003977/1.299, allocations: 2.859 MB / 0.8562 GB, free: 204.4 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005071/1.304, allocations: 5.736 MB / 0.8618 GB, free: 199.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/1.314, allocations: 9.487 MB / 0.871 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.224e-05/1.314, allocations: 30.38 kB / 0.871 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.01836/1.332, allocations: 10.7 MB / 0.8815 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 4.998e-05/1.332, allocations: 44.16 kB / 0.8815 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.363e-05/1.333, allocations: 91 kB / 0.8816 GB, free: 189.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007689/1.34, allocations: 1.826 MB / 0.8834 GB, free: 188.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007804/1.348, allocations: 2.317 MB / 0.8857 GB, free: 187.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/1.362, allocations: 12.79 MB / 0.8982 GB, free: 174.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004729/1.366, allocations: 290 kB / 0.8984 GB, free: 174.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000741/1.367, allocations: 0.5142 MB / 0.8989 GB, free: 174.1 MB / 0.5763 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.002241/1.369, allocations: 1.201 MB / 0.9001 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/1.371, allocations: 0.5762 MB / 0.9007 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01896/1.389, allocations: 10.13 MB / 0.9106 GB, free: 163.8 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/1.39, allocations: 79.94 kB / 0.9106 GB, free: 163.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.889e-05/1.39, allocations: 7.938 kB / 0.9107 GB, free: 163.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.897e-05/1.39, allocations: 42.84 kB / 0.9107 GB, free: 163.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/1.413, allocations: 16.34 MB / 0.9267 GB, free: 150.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/1.413, allocations: 7.938 kB / 0.9267 GB, free: 150.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006138/1.42, allocations: 1.523 MB / 0.9281 GB, free: 148.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006888/1.426, allocations: 1.613 MB / 0.9297 GB, free: 147 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005319/1.427, allocations: 267.8 kB / 0.93 GB, free: 146.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/1.439, allocations: 12.06 MB / 0.9418 GB, free: 134 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.439, allocations: 4 kB / 0.9418 GB, free: 134 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01858/1.457, allocations: 12.94 MB / 0.9544 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002046/1.459, allocations: 1.297 MB / 0.9557 GB, free: 119.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009205/1.46, allocations: 150.7 kB / 0.9558 GB, free: 119.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/1.463, allocations: 156 kB / 0.956 GB, free: 119.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007905/1.464, allocations: 0.5717 MB / 0.9565 GB, free: 118.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004678/1.465, allocations: 319.9 kB / 0.9568 GB, free: 118.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002234/1.467, allocations: 2.039 MB / 0.9588 GB, free: 116.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.4e-07/1.467, allocations: 0 / 0.9588 GB, free: 116.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01038/1.477, allocations: 5.032 MB / 0.9637 GB, free: 111.9 MB / 0.5763 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.009106/1.486, allocations: 5.544 MB / 0.9691 GB, free: 107.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.04661/1.533, allocations: 9.781 MB / 0.9787 GB, free: 97.88 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.533, allocations: 0 / 0.9787 GB, free: 97.88 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005681/1.539, allocations: 4.887 MB / 0.9835 GB, free: 92.93 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005246/1.544, allocations: 1.207 MB / 0.9846 GB, free: 91.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/1.559, allocations: 12.84 MB / 0.9972 GB, free: 78.92 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002097/1.562, allocations: 3.18 MB / 1 GB, free: 75.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006378/1.568, allocations: 1.669 MB / 1.002 GB, free: 74.12 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002097/1.57, allocations: 1.137 MB / 1.003 GB, free: 72.98 MB / 0.5763 GB Notification: Performance of SimCode: time 8.82e-07/1.57, allocations: 4 kB / 1.003 GB, free: 72.98 MB / 0.5763 GB Notification: Performance of Templates: time 0.3302/1.9, allocations: 166.9 MB / 1.166 GB, free: 162.1 MB / 0.5763 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)