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.0007984/0.0007981, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008862/0.0008862, allocations: 168.7 kB / 15.95 MB, free: 204 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.302/1.302, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1885/0.1885, allocations: 15.28 MB / 306.4 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 8 kB / 371.5 MB, free: 3.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2468, allocations: 54.62 MB / 426.1 MB, free: 39.89 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.02156/0.2684, allocations: 31.49 MB / 457.6 MB, free: 20.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1162/0.3846, allocations: 110.8 MB / 0.5551 GB, free: 7.492 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008414/0.3931, allocations: 146.8 kB / 0.5553 GB, free: 7.348 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007421/0.4006, allocations: 2.165 MB / 0.5574 GB, free: 5.168 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02985/0.4304, allocations: 8.927 MB / 0.5661 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2432/0.6737, allocations: 12.6 MB / 0.5784 GB, free: 9.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.6848, allocations: 9.599 MB / 0.5878 GB, free: 9.191 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005873/0.6907, allocations: 4.372 MB / 0.592 GB, free: 8.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008013/0.6987, allocations: 4.191 MB / 0.5961 GB, free: 8.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00978/0.7085, allocations: 5.336 MB / 0.6013 GB, free: 8.727 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003167/0.7117, allocations: 476.4 kB / 0.6018 GB, free: 8.727 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04115/0.7529, allocations: 12.93 MB / 0.6144 GB, free: 8.723 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004118/0.757, allocations: 1.643 MB / 0.616 GB, free: 8.723 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004283/0.7613, allocations: 1.382 MB / 0.6174 GB, free: 8.691 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02531/0.7867, allocations: 18.27 MB / 0.6352 GB, free: 3.871 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.7867, allocations: 2.062 kB / 0.6352 GB, free: 3.871 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7867, allocations: 0 / 0.6352 GB, free: 3.871 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003003/0.787, allocations: 0 / 0.6352 GB, free: 3.871 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.02057/0.8076, allocations: 8.686 MB / 0.6437 GB, free: 11.68 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.8077, allocations: 8.031 kB / 0.6437 GB, free: 11.67 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01026/0.8179, allocations: 1.91 MB / 0.6456 GB, free: 9.859 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006946/0.8249, allocations: 3.188 MB / 0.6487 GB, free: 7.637 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005515/0.8255, allocations: 0.5586 MB / 0.6492 GB, free: 7.297 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002428/0.8279, allocations: 0.7307 MB / 0.6499 GB, free: 6.809 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01972/0.8477, allocations: 9.128 MB / 0.6588 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/0.8479, allocations: 3.188 kB / 0.6589 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00142/0.8493, allocations: 288.7 kB / 0.6591 GB, free: 476 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.8495, allocations: 172 kB / 0.6593 GB, free: 304 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0224/0.8719, allocations: 12.61 MB / 0.6716 GB, free: 7.277 MB / 478.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.05043/0.9224, allocations: 29.78 MB / 0.7007 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03326/0.9557, allocations: 20.38 MB / 0.7206 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008373/0.9641, allocations: 4.686 MB / 0.7252 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05346/1.018, allocations: 35.7 MB / 0.76 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.442e-05/1.018, allocations: 100.3 kB / 0.7601 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00317/1.021, allocations: 0.5716 MB / 0.7607 GB, free: 11.62 MB / 0.545 GB Notification: Performance of pre-optimization done (n=581): time 1.941e-05/1.021, allocations: 0 / 0.7607 GB, free: 11.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=754): time 0.4684/1.489, allocations: 36.26 MB / 0.7961 GB, free: 198.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.151e-05/1.489, allocations: 129.6 kB / 0.7962 GB, free: 198.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004307/1.494, allocations: 3.339 MB / 0.7995 GB, free: 197 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009074/1.495, allocations: 149.6 kB / 0.7996 GB, free: 196.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001518/1.496, allocations: 3.145 MB / 0.8027 GB, free: 194.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002141/1.498, allocations: 2.572 MB / 0.8052 GB, free: 192.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004894/1.499, allocations: 189.8 kB / 0.8054 GB, free: 192.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0003276/1.499, allocations: 0.6499 MB / 0.806 GB, free: 191.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00491/1.504, allocations: 2.851 MB / 0.8088 GB, free: 190.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006268/1.51, allocations: 5.737 MB / 0.8144 GB, free: 186 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006275/1.517, allocations: 3.669 MB / 0.818 GB, free: 184.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.615e-05/1.517, allocations: 28.91 kB / 0.818 GB, free: 184.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.02199/1.539, allocations: 10.71 MB / 0.8285 GB, free: 179.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.857e-05/1.539, allocations: 47.03 kB / 0.8285 GB, free: 179.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/1.539, allocations: 91.84 kB / 0.8286 GB, free: 179.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008688/1.548, allocations: 1.876 MB / 0.8304 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009499/1.557, allocations: 2.312 MB / 0.8327 GB, free: 179.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01527/1.573, allocations: 11.82 MB / 0.8442 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007371/1.58, allocations: 465.5 kB / 0.8447 GB, free: 169.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001779/1.582, allocations: 0.5184 MB / 0.8452 GB, free: 169.7 MB / 0.545 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 (1140): * Single equations (assignments): 1134 * 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.004105/1.586, allocations: 1.201 MB / 0.8464 GB, free: 168.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/1.588, allocations: 0.572 MB / 0.8469 GB, free: 168.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02357/1.611, allocations: 10.21 MB / 0.8569 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.2e-05/1.611, allocations: 80 kB / 0.857 GB, free: 162.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.097e-05/1.611, allocations: 4 kB / 0.857 GB, free: 162.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001662/1.611, allocations: 40.17 kB / 0.857 GB, free: 162.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0356/1.647, allocations: 16.42 MB / 0.873 GB, free: 149.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.993e-05/1.647, allocations: 7.953 kB / 0.8731 GB, free: 149.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007047/1.654, allocations: 1.522 MB / 0.8745 GB, free: 147.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007854/1.662, allocations: 1.696 MB / 0.8762 GB, free: 146.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001486/1.664, allocations: 259.9 kB / 0.8764 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0131/1.677, allocations: 11.09 MB / 0.8873 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/1.677, allocations: 7.938 kB / 0.8873 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02527/1.702, allocations: 13.02 MB / 0.9 GB, free: 121.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003435/1.706, allocations: 1.258 MB / 0.9012 GB, free: 119.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/1.707, allocations: 152 kB / 0.9014 GB, free: 119.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004356/1.712, allocations: 297.7 kB / 0.9017 GB, free: 119.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001306/1.713, allocations: 0.5795 MB / 0.9022 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001042/1.714, allocations: 311.9 kB / 0.9025 GB, free: 118.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003075/1.717, allocations: 2.008 MB / 0.9045 GB, free: 116.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.01e-07/1.717, allocations: 0 / 0.9045 GB, free: 116.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01665/1.734, allocations: 5.036 MB / 0.9094 GB, free: 112 MB / 0.545 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 (758): * Single equations (assignments): 752 * 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.01345/1.747, allocations: 5.542 MB / 0.9148 GB, free: 107.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01513/1.762, allocations: 9.015 MB / 0.9236 GB, free: 98.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.763, allocations: 0 / 0.9236 GB, free: 98.69 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007306/1.77, allocations: 4.908 MB / 0.9284 GB, free: 93.73 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006083/1.776, allocations: 1.128 MB / 0.9295 GB, free: 92.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02255/1.798, allocations: 15.41 MB / 0.9446 GB, free: 77.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003233/1.802, allocations: 3.176 MB / 0.9477 GB, free: 73.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008816/1.811, allocations: 1.674 MB / 0.9493 GB, free: 72.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003054/1.814, allocations: 1.129 MB / 0.9504 GB, free: 71.18 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/1.814, allocations: 4 kB / 0.9504 GB, free: 71.17 MB / 0.545 GB Notification: Performance of Templates: time 0.4008/2.214, allocations: 156.3 MB / 1.103 GB, free: 137.6 MB / 0.545 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)