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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001134/0.001134, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001488/0.001488, allocations: 177.3 kB / 15.95 MB, free: 216 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.386/1.386, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2199/0.2199, allocations: 15.26 MB / 306.2 MB, free: 15.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004109, allocations: 8 kB / 371.4 MB, free: 4.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.286, allocations: 54.63 MB / 426 MB, free: 40.14 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.Dev.RedCellMembrane): time 0.02/0.3061, allocations: 27.75 MB / 453.7 MB, free: 23.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1092/0.4153, allocations: 101.2 MB / 0.5419 GB, free: 4.969 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006275/0.4216, allocations: 134.9 kB / 0.5421 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007939/0.4296, allocations: 2.269 MB / 0.5443 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03293/0.4626, allocations: 9.793 MB / 0.5538 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04524/0.5079, allocations: 13.89 MB / 0.5674 GB, free: 10.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01495/0.5228, allocations: 6.913 MB / 0.5742 GB, free: 3.883 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2918/0.8146, allocations: 4.347 MB / 0.5784 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009104/0.8238, allocations: 3.801 MB / 0.5821 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01187/0.8357, allocations: 5.147 MB / 0.5871 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00413/0.8399, allocations: 476.1 kB / 0.5876 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05679/0.8967, allocations: 15 MB / 0.6023 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005223/0.902, allocations: 1.632 MB / 0.6038 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004426/0.9064, allocations: 1.389 MB / 0.6052 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03432/0.9408, allocations: 14.14 MB / 0.619 GB, free: 9.164 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.9408, allocations: 0 / 0.619 GB, free: 9.164 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.9408, allocations: 0.9062 kB / 0.619 GB, free: 9.164 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000462/0.9413, allocations: 1.969 kB / 0.619 GB, free: 9.164 MB / 446.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.02858/0.9699, allocations: 8.602 MB / 0.6274 GB, free: 3.438 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.487e-05/0.97, allocations: 8.688 kB / 0.6274 GB, free: 3.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.9821, allocations: 1.909 MB / 0.6293 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009385/0.9915, allocations: 3.012 MB / 0.6322 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006176/0.9922, allocations: 0.5495 MB / 0.6328 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004312/0.9965, allocations: 0.752 MB / 0.6335 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02539/1.022, allocations: 9.068 MB / 0.6424 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004853/1.022, allocations: 4.484 kB / 0.6424 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002958/1.025, allocations: 289.4 kB / 0.6426 GB, free: 9.426 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001728/1.026, allocations: 174.1 kB / 0.6428 GB, free: 9.258 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02629/1.052, allocations: 12.62 MB / 0.6551 GB, free: 248 kB / 462.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.06378/1.116, allocations: 29.41 MB / 0.6838 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03572/1.152, allocations: 20.38 MB / 0.7037 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06106/1.213, allocations: 35.32 MB / 0.7382 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.885e-05/1.213, allocations: 92.94 kB / 0.7383 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003724/1.216, allocations: 0.5731 MB / 0.7389 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=581): time 2.634e-05/1.217, allocations: 10.08 kB / 0.7389 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of matching and sorting (n=757): time 0.1359/1.353, allocations: 35.81 MB / 0.7739 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/1.353, allocations: 129.3 kB / 0.774 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005836/1.359, allocations: 3.347 MB / 0.7772 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001519/1.36, allocations: 149.7 kB / 0.7774 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002476/1.363, allocations: 3.147 MB / 0.7805 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003933/1.367, allocations: 2.58 MB / 0.783 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/1.368, allocations: 192 kB / 0.7832 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0006926/1.369, allocations: 0.6517 MB / 0.7838 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2653/1.634, allocations: 2.812 MB / 0.7865 GB, free: 220.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007674/1.642, allocations: 5.67 MB / 0.7921 GB, free: 217.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007095/1.649, allocations: 3.631 MB / 0.7956 GB, free: 217.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.341e-05/1.649, allocations: 28.64 kB / 0.7957 GB, free: 217.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02867/1.678, allocations: 10.67 MB / 0.8061 GB, free: 214.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002301/1.678, allocations: 44.47 kB / 0.8061 GB, free: 214.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002532/1.678, allocations: 90.66 kB / 0.8062 GB, free: 214.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009777/1.688, allocations: 1.858 MB / 0.808 GB, free: 214.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01275/1.701, allocations: 2.318 MB / 0.8103 GB, free: 214.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01853/1.719, allocations: 11.93 MB / 0.8219 GB, free: 204.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008965/1.728, allocations: 469.4 kB / 0.8224 GB, free: 204.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002781/1.731, allocations: 0.5161 MB / 0.8229 GB, free: 204.6 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 20,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 3 {3 27,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.006123/1.737, allocations: 1.202 MB / 0.8241 GB, free: 203.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002138/1.74, allocations: 0.574 MB / 0.8246 GB, free: 203.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03341/1.773, allocations: 10.15 MB / 0.8345 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001425/1.773, allocations: 81.97 kB / 0.8346 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001022/1.773, allocations: 8.531 kB / 0.8346 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003306/1.774, allocations: 40.12 kB / 0.8347 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04488/1.819, allocations: 16.16 MB / 0.8504 GB, free: 193.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-05/1.819, allocations: 6.875 kB / 0.8504 GB, free: 193.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008461/1.827, allocations: 1.536 MB / 0.8519 GB, free: 193 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008938/1.836, allocations: 1.668 MB / 0.8536 GB, free: 192.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002174/1.838, allocations: 262.2 kB / 0.8538 GB, free: 192.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01469/1.853, allocations: 11.21 MB / 0.8648 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.853, allocations: 3.844 kB / 0.8648 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03291/1.886, allocations: 13.35 MB / 0.8778 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005529/1.892, allocations: 1.207 MB / 0.879 GB, free: 173.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002586/1.894, allocations: 144 kB / 0.8791 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005609/1.9, allocations: 295.8 kB / 0.8794 GB, free: 173 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001878/1.902, allocations: 0.5776 MB / 0.88 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001513/1.903, allocations: 315.9 kB / 0.8803 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004231/1.908, allocations: 2.008 MB / 0.8822 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.31e-07/1.908, allocations: 0 / 0.8822 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.02156/1.929, allocations: 4.858 MB / 0.887 GB, free: 165.8 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 20,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 3 {4 33,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01534/1.944, allocations: 5.417 MB / 0.8923 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02004/1.965, allocations: 8.931 MB / 0.901 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.965, allocations: 0 / 0.901 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009668/1.974, allocations: 4.854 MB / 0.9057 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006864/1.981, allocations: 0.9892 MB / 0.9067 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02872/2.01, allocations: 15.37 MB / 0.9217 GB, free: 131 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002481/2.012, allocations: 3.324 MB / 0.925 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008628/2.021, allocations: 1.669 MB / 0.9266 GB, free: 126 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00276/2.024, allocations: 1.129 MB / 0.9277 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.493e-06/2.024, allocations: 4 kB / 0.9277 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.4597/2.484, allocations: 153.4 MB / 1.077 GB, free: 192.5 MB / 0.5606 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: