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.001387/0.001387, allocations: 105.5 kB / 16.35 MB, free: 5.824 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.001504/0.001504, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07996/0.07996, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 61.8 kB / 371.7 MB, free: 50.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09689, allocations: 53.61 MB / 425.4 MB, free: 13.3 MB / 302.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.05776/0.1547, allocations: 49.48 MB / 474.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3255/0.4802, allocations: 120.8 MB / 0.5816 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005317/0.4855, allocations: 73.66 kB / 0.5817 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007122/0.4927, allocations: 2.39 MB / 0.584 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03124/0.5239, allocations: 10.11 MB / 0.5939 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04488/0.5689, allocations: 15.48 MB / 0.609 GB, free: 15.92 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01602/0.5849, allocations: 10.53 MB / 0.6193 GB, free: 5.359 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007865/0.5928, allocations: 5.516 MB / 0.6247 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009699/0.6026, allocations: 5.336 MB / 0.6299 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/0.6138, allocations: 5.88 MB / 0.6357 GB, free: 4.578 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00517/0.619, allocations: 0.8828 MB / 0.6365 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05125/0.6703, allocations: 13.73 MB / 0.6499 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003664/0.674, allocations: 2.119 MB / 0.652 GB, free: 3.812 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007745/0.6818, allocations: 4.539 MB / 0.6564 GB, free: 15.25 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06348/0.7453, allocations: 24.18 MB / 0.68 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.7453, allocations: 0 / 0.68 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.7454, allocations: 4 kB / 0.68 GB, free: 6.988 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0002882/0.7457, allocations: 0 / 0.68 GB, free: 6.988 MB / 494.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.3822/1.128, allocations: 10.44 MB / 0.6902 GB, free: 162.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/1.128, allocations: 10.48 kB / 0.6903 GB, free: 162.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/1.139, allocations: 1.913 MB / 0.6921 GB, free: 162.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008594/1.147, allocations: 3.556 MB / 0.6956 GB, free: 160.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005797/1.148, allocations: 0.5513 MB / 0.6961 GB, free: 160.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002562/1.151, allocations: 0.7335 MB / 0.6968 GB, free: 160.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/1.171, allocations: 9.176 MB / 0.7058 GB, free: 156.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002415/1.172, allocations: 11.78 kB / 0.7058 GB, free: 156.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001556/1.173, allocations: 286.7 kB / 0.7061 GB, free: 156.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.905e-05/1.173, allocations: 172.5 kB / 0.7063 GB, free: 156.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02152/1.195, allocations: 12.66 MB / 0.7186 GB, free: 151.8 MB / 494.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.05454/1.25, allocations: 30.09 MB / 0.748 GB, free: 125.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03343/1.283, allocations: 20.41 MB / 0.7679 GB, free: 104.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007719/1.291, allocations: 4.71 MB / 0.7725 GB, free: 99.55 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05177/1.343, allocations: 36.45 MB / 0.8081 GB, free: 59.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/1.343, allocations: 87.12 kB / 0.8082 GB, free: 59.46 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002687/1.345, allocations: 0.5768 MB / 0.8088 GB, free: 58.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=581): time 1.816e-05/1.345, allocations: 0 / 0.8088 GB, free: 58.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=757): time 0.1213/1.467, allocations: 35.5 MB / 0.8435 GB, free: 23.45 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/1.467, allocations: 129.3 kB / 0.8436 GB, free: 23.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004681/1.471, allocations: 3.376 MB / 0.8469 GB, free: 19.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00137/1.473, allocations: 149.7 kB / 0.847 GB, free: 19.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/1.474, allocations: 3.154 MB / 0.8501 GB, free: 16.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002882/1.477, allocations: 2.577 MB / 0.8526 GB, free: 14.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003714/1.481, allocations: 1.698 MB / 0.8543 GB, free: 12.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.271e-05/1.481, allocations: 309.1 kB / 0.8546 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004953/1.486, allocations: 2.849 MB / 0.8573 GB, free: 9.188 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006357/1.492, allocations: 5.742 MB / 0.863 GB, free: 2.168 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2226/1.715, allocations: 9.492 MB / 0.8722 GB, free: 141.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.916e-05/1.715, allocations: 23.62 kB / 0.8722 GB, free: 141.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.0316/1.747, allocations: 10.7 MB / 0.8827 GB, free: 138.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.747, allocations: 43.59 kB / 0.8827 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/1.747, allocations: 90.19 kB / 0.8828 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/1.757, allocations: 1.814 MB / 0.8846 GB, free: 138.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01062/1.768, allocations: 2.315 MB / 0.8869 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01681/1.785, allocations: 12.79 MB / 0.8993 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006719/1.791, allocations: 291.7 kB / 0.8996 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001853/1.793, allocations: 0.518 MB / 0.9001 GB, free: 127.4 MB / 494.1 MB 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.005058/1.798, allocations: 1.202 MB / 0.9013 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00275/1.801, allocations: 0.5711 MB / 0.9019 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02655/1.828, allocations: 10.13 MB / 0.9118 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.259e-05/1.828, allocations: 78.77 kB / 0.9118 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.018e-05/1.828, allocations: 3.75 kB / 0.9118 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001776/1.828, allocations: 37.69 kB / 0.9119 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03868/1.867, allocations: 16.34 MB / 0.9278 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.913e-05/1.867, allocations: 0 / 0.9278 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007906/1.875, allocations: 1.53 MB / 0.9293 GB, free: 113.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008273/1.883, allocations: 1.603 MB / 0.9309 GB, free: 111.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002489/1.886, allocations: 267.8 kB / 0.9311 GB, free: 111.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/1.9, allocations: 12.05 MB / 0.9429 GB, free: 98.98 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.9, allocations: 7.938 kB / 0.9429 GB, free: 98.97 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02841/1.929, allocations: 12.95 MB / 0.9556 GB, free: 85.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004077/1.933, allocations: 1.3 MB / 0.9568 GB, free: 84.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002137/1.935, allocations: 155.9 kB / 0.957 GB, free: 84.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004725/1.94, allocations: 152 kB / 0.9571 GB, free: 84.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001663/1.942, allocations: 0.5757 MB / 0.9577 GB, free: 83.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001197/1.943, allocations: 315.9 kB / 0.958 GB, free: 83.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003639/1.946, allocations: 2.039 MB / 0.96 GB, free: 81.35 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.52e-07/1.946, allocations: 0 / 0.96 GB, free: 81.35 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01611/1.963, allocations: 5.04 MB / 0.9649 GB, free: 76.92 MB / 494.1 MB 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.01552/1.978, allocations: 5.535 MB / 0.9703 GB, free: 72.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01868/1.997, allocations: 8.994 MB / 0.9791 GB, free: 63.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.997, allocations: 8 kB / 0.9791 GB, free: 63.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009381/2.006, allocations: 4.894 MB / 0.9839 GB, free: 58.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008733/2.015, allocations: 1.192 MB / 0.985 GB, free: 57.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/2.042, allocations: 12.67 MB / 0.9974 GB, free: 44.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004134/2.046, allocations: 3.187 MB / 1.001 GB, free: 41.58 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008732/2.055, allocations: 1.661 MB / 1.002 GB, free: 40 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003862/2.059, allocations: 1.147 MB / 1.003 GB, free: 38.86 MB / 494.1 MB Notification: Performance of SimCode: time 1.994e-06/2.059, allocations: 0 / 1.003 GB, free: 38.86 MB / 494.1 MB Notification: Performance of Templates: time 0.423/2.482, allocations: 161.2 MB / 1.161 GB, free: 67.2 MB / 0.4982 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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)