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.004614/0.004614, allocations: 102.4 kB / 15.73 MB, free: 6.031 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: 196.9 kB / 16.67 MB, free: 5.969 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2617/0.2617, allocations: 15.31 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.89 kB / 425.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.275, allocations: 53.6 MB / 478.8 MB, free: 25.82 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.05198/0.327, allocations: 49.69 MB / 0.5161 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4943/0.8214, allocations: 120.7 MB / 0.6341 GB, free: 13.37 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008447/0.8299, allocations: 75.97 kB / 0.6341 GB, free: 13.37 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007992/0.8379, allocations: 2.395 MB / 0.6365 GB, free: 13.35 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03114/0.8691, allocations: 10.1 MB / 0.6463 GB, free: 13.22 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04527/0.9144, allocations: 15.49 MB / 0.6615 GB, free: 7.695 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01705/0.9314, allocations: 10.53 MB / 0.6717 GB, free: 4.543 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007754/0.9392, allocations: 5.503 MB / 0.6771 GB, free: 1.543 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008183/0.9475, allocations: 5.353 MB / 0.6823 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01115/0.9586, allocations: 5.878 MB / 0.6881 GB, free: 11.92 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004405/0.9631, allocations: 0.8828 MB / 0.6889 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0504/1.013, allocations: 13.73 MB / 0.7024 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.005082/1.019, allocations: 2.132 MB / 0.7044 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.009953/1.029, allocations: 4.533 MB / 0.7089 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.08377/1.112, allocations: 24.26 MB / 0.7326 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/1.112, allocations: 0 / 0.7326 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd: time 3.246e-06/1.112, allocations: 0 / 0.7326 GB, free: 264 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0006475/1.113, allocations: 0 / 0.7326 GB, free: 264 kB / 0.5137 GB 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.03727/1.15, allocations: 10.44 MB / 0.7427 GB, free: 5.848 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/1.15, allocations: 12.03 kB / 0.7428 GB, free: 5.836 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/1.163, allocations: 1.911 MB / 0.7446 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/1.174, allocations: 3.544 MB / 0.7481 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000932/1.175, allocations: 0.5583 MB / 0.7486 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004126/1.179, allocations: 0.7303 MB / 0.7493 GB, free: 15.09 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03573/1.215, allocations: 9.178 MB / 0.7583 GB, free: 5.785 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005091/1.215, allocations: 7.938 kB / 0.7583 GB, free: 5.777 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003754/1.219, allocations: 290.7 kB / 0.7586 GB, free: 5.496 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002971/1.219, allocations: 175.9 kB / 0.7588 GB, free: 5.324 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03422/1.253, allocations: 12.65 MB / 0.7711 GB, free: 8.652 MB / 0.5606 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.08197/1.335, allocations: 30.09 MB / 0.8005 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04052/1.376, allocations: 20.4 MB / 0.8204 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01033/1.386, allocations: 4.72 MB / 0.825 GB, free: 312 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6962/2.083, allocations: 36.44 MB / 0.8606 GB, free: 234.7 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.232e-05/2.083, allocations: 96.69 kB / 0.8607 GB, free: 234.7 MB / 0.6232 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003056/2.086, allocations: 0.5825 MB / 0.8613 GB, free: 234.4 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=581): time 2.219e-05/2.086, allocations: 0 / 0.8613 GB, free: 234.4 MB / 0.6232 GB Notification: Performance of matching and sorting (n=757): time 0.1211/2.207, allocations: 35.53 MB / 0.896 GB, free: 221 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/2.207, allocations: 129.3 kB / 0.8961 GB, free: 221 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005253/2.213, allocations: 3.376 MB / 0.8994 GB, free: 219.1 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001522/2.214, allocations: 152.3 kB / 0.8995 GB, free: 219 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.002133/2.216, allocations: 3.152 MB / 0.9026 GB, free: 216.2 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.003028/2.219, allocations: 2.586 MB / 0.9051 GB, free: 214 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002551/2.222, allocations: 1.697 MB / 0.9068 GB, free: 213 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 7.864e-05/2.222, allocations: 304.1 kB / 0.9071 GB, free: 212.7 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004906/2.227, allocations: 2.864 MB / 0.9099 GB, free: 210.6 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007112/2.234, allocations: 5.728 MB / 0.9155 GB, free: 203.7 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01496/2.249, allocations: 9.497 MB / 0.9248 GB, free: 193.1 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001197/2.249, allocations: 24 kB / 0.9248 GB, free: 193.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02403/2.273, allocations: 10.7 MB / 0.9352 GB, free: 182.4 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 7.304e-05/2.273, allocations: 44 kB / 0.9353 GB, free: 182.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/2.273, allocations: 88 kB / 0.9354 GB, free: 182.3 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008479/2.282, allocations: 1.82 MB / 0.9371 GB, free: 180.4 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01092/2.293, allocations: 2.32 MB / 0.9394 GB, free: 178.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01646/2.309, allocations: 12.81 MB / 0.9519 GB, free: 164.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009687/2.319, allocations: 296 kB / 0.9522 GB, free: 164.3 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002282/2.321, allocations: 0.5116 MB / 0.9527 GB, free: 163.8 MB / 0.6232 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.00464/2.326, allocations: 1.202 MB / 0.9539 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002142/2.328, allocations: 0.5748 MB / 0.9544 GB, free: 162 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02044/2.349, allocations: 10.12 MB / 0.9643 GB, free: 151.9 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.725e-05/2.349, allocations: 80 kB / 0.9644 GB, free: 151.8 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.208e-05/2.349, allocations: 4 kB / 0.9644 GB, free: 151.8 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001242/2.349, allocations: 47.78 kB / 0.9644 GB, free: 151.8 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03247/2.381, allocations: 16.32 MB / 0.9804 GB, free: 135.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/2.382, allocations: 4 kB / 0.9804 GB, free: 135.5 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007578/2.389, allocations: 1.53 MB / 0.9819 GB, free: 134 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0077/2.397, allocations: 1.601 MB / 0.9834 GB, free: 132.3 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001662/2.399, allocations: 270.4 kB / 0.9837 GB, free: 132.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/2.412, allocations: 12.08 MB / 0.9955 GB, free: 119.3 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/2.412, allocations: 4 kB / 0.9955 GB, free: 119.3 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02436/2.437, allocations: 12.96 MB / 1.008 GB, free: 106.2 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003996/2.441, allocations: 1.297 MB / 1.009 GB, free: 104.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001293/2.442, allocations: 152 kB / 1.01 GB, free: 104.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003968/2.446, allocations: 156 kB / 1.01 GB, free: 104.6 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001018/2.447, allocations: 0.5717 MB / 1.01 GB, free: 104 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005641/2.448, allocations: 315.9 kB / 1.011 GB, free: 103.7 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.002685/2.45, allocations: 2.039 MB / 1.013 GB, free: 101.7 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.6e-07/2.45, allocations: 4 kB / 1.013 GB, free: 101.6 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01739/2.468, allocations: 5.036 MB / 1.017 GB, free: 97.2 MB / 0.6232 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.0154/2.483, allocations: 5.535 MB / 1.023 GB, free: 92.93 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01946/2.503, allocations: 8.993 MB / 1.032 GB, free: 83.88 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/2.503, allocations: 12 kB / 1.032 GB, free: 83.86 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.007904/2.511, allocations: 4.892 MB / 1.036 GB, free: 78.91 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007047/2.518, allocations: 1.185 MB / 1.038 GB, free: 77.8 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/2.538, allocations: 12.68 MB / 1.05 GB, free: 65.07 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002219/2.54, allocations: 3.176 MB / 1.053 GB, free: 61.86 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.006917/2.547, allocations: 1.674 MB / 1.055 GB, free: 60.29 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002472/2.55, allocations: 1.142 MB / 1.056 GB, free: 59.15 MB / 0.6232 GB Notification: Performance of SimCode: time 1.694e-06/2.55, allocations: 0 / 1.056 GB, free: 59.15 MB / 0.6232 GB Notification: Performance of Templates: time 0.5941/3.144, allocations: 165.5 MB / 1.217 GB, free: 162 MB / 0.6232 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)