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.001077/0.001077, allocations: 98.88 kB / 16.02 MB, free: 76 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.001438/0.001438, allocations: 186 kB / 16.92 MB, free: 6.777 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.407/1.407, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2101/0.2101, allocations: 15.28 MB / 307.4 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 8 kB / 372.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2642, allocations: 54.63 MB / 427.4 MB, free: 40.45 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.04911/0.3133, allocations: 53.07 MB / 480.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3735/0.6868, allocations: 119.1 MB / 0.5855 GB, free: 5.445 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008276/0.6952, allocations: 140.3 kB / 0.5856 GB, free: 5.445 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008674/0.7039, allocations: 2.173 MB / 0.5878 GB, free: 5.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03172/0.7357, allocations: 8.817 MB / 0.5964 GB, free: 5.363 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04258/0.7783, allocations: 13.58 MB / 0.6096 GB, free: 4.395 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01676/0.7951, allocations: 10.08 MB / 0.6195 GB, free: 1.344 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00858/0.8037, allocations: 4.508 MB / 0.6239 GB, free: 15.94 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01203/0.8158, allocations: 5.005 MB / 0.6288 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0123/0.8281, allocations: 5.484 MB / 0.6341 GB, free: 13.65 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003976/0.8322, allocations: 481.8 kB / 0.6346 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05333/0.8855, allocations: 13.38 MB / 0.6476 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004948/0.8905, allocations: 1.705 MB / 0.6493 GB, free: 9.699 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01036/0.9009, allocations: 4.092 MB / 0.6533 GB, free: 7.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03328/0.9343, allocations: 17.64 MB / 0.6705 GB, free: 8.883 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.9343, allocations: 7.281 kB / 0.6705 GB, free: 8.879 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.9344, allocations: 0 / 0.6705 GB, free: 8.879 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005035/0.9349, allocations: 2.625 kB / 0.6705 GB, free: 8.879 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.02367/0.9586, allocations: 8.613 MB / 0.679 GB, free: 280 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.9586, allocations: 8.031 kB / 0.679 GB, free: 272 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/0.9688, allocations: 1.913 MB / 0.6808 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007148/0.976, allocations: 3.291 MB / 0.684 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005946/0.9767, allocations: 0.5513 MB / 0.6846 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002469/0.9791, allocations: 0.7342 MB / 0.6853 GB, free: 9.758 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02235/1.001, allocations: 9.178 MB / 0.6943 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/1.002, allocations: 3.938 kB / 0.6943 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001918/1.004, allocations: 290.7 kB / 0.6945 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/1.004, allocations: 176 kB / 0.6947 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/1.029, allocations: 12.66 MB / 0.7071 GB, free: 3.324 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.05992/1.088, allocations: 29.81 MB / 0.7362 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03546/1.124, allocations: 20.43 MB / 0.7561 GB, free: 84 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00916/1.133, allocations: 4.708 MB / 0.7607 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4523/1.586, allocations: 35.7 MB / 0.7956 GB, free: 230.9 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.894e-05/1.586, allocations: 96.66 kB / 0.7957 GB, free: 230.9 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003226/1.589, allocations: 0.5769 MB / 0.7962 GB, free: 230.6 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 2.26e-05/1.589, allocations: 0.5 kB / 0.7962 GB, free: 230.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.1271/1.716, allocations: 35.89 MB / 0.8313 GB, free: 217.7 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/1.716, allocations: 131.6 kB / 0.8314 GB, free: 217.6 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004284/1.72, allocations: 3.379 MB / 0.8347 GB, free: 216.4 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.00127/1.722, allocations: 149.4 kB / 0.8349 GB, free: 216.2 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001661/1.723, allocations: 3.144 MB / 0.8379 GB, free: 213.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.003213/1.727, allocations: 2.576 MB / 0.8404 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00182/1.728, allocations: 0.7123 MB / 0.8411 GB, free: 211.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.211e-05/1.729, allocations: 301.1 kB / 0.8414 GB, free: 211.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005984/1.735, allocations: 2.858 MB / 0.8442 GB, free: 210.1 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007345/1.742, allocations: 5.739 MB / 0.8498 GB, free: 205.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.757, allocations: 9.481 MB / 0.8591 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/1.757, allocations: 33.12 kB / 0.8591 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02719/1.784, allocations: 10.73 MB / 0.8696 GB, free: 191.8 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.73e-05/1.784, allocations: 46.94 kB / 0.8696 GB, free: 191.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.669e-05/1.784, allocations: 88 kB / 0.8697 GB, free: 191.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009289/1.793, allocations: 1.851 MB / 0.8715 GB, free: 190.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009987/1.803, allocations: 2.316 MB / 0.8738 GB, free: 188.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01619/1.82, allocations: 11.84 MB / 0.8854 GB, free: 176.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007698/1.827, allocations: 459.9 kB / 0.8858 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001851/1.829, allocations: 0.5189 MB / 0.8863 GB, free: 175.8 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.003778/1.833, allocations: 1.202 MB / 0.8875 GB, free: 174.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00141/1.835, allocations: 0.5709 MB / 0.888 GB, free: 174 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0256/1.86, allocations: 10.17 MB / 0.898 GB, free: 164 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.43e-05/1.86, allocations: 76 kB / 0.898 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.724e-05/1.86, allocations: 4 kB / 0.898 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002345/1.861, allocations: 39.84 kB / 0.8981 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03592/1.897, allocations: 16.28 MB / 0.914 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.824e-05/1.897, allocations: 7.938 kB / 0.914 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007984/1.905, allocations: 1.526 MB / 0.9155 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008663/1.913, allocations: 1.672 MB / 0.9171 GB, free: 144.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001616/1.915, allocations: 263.9 kB / 0.9174 GB, free: 144.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/1.929, allocations: 11.1 MB / 0.9282 GB, free: 132.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.929, allocations: 9.578 kB / 0.9282 GB, free: 132.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02524/1.954, allocations: 12.96 MB / 0.9409 GB, free: 119.2 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003725/1.958, allocations: 1.258 MB / 0.9421 GB, free: 117.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001504/1.959, allocations: 144 kB / 0.9422 GB, free: 117.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004758/1.964, allocations: 303.4 kB / 0.9425 GB, free: 117.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/1.966, allocations: 0.5834 MB / 0.9431 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007371/1.966, allocations: 311.9 kB / 0.9434 GB, free: 116.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002789/1.969, allocations: 2.039 MB / 0.9454 GB, free: 114.6 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.41e-07/1.969, allocations: 0 / 0.9454 GB, free: 114.6 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01791/1.987, allocations: 4.989 MB / 0.9502 GB, free: 110.2 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.01343/2.001, allocations: 5.538 MB / 0.9556 GB, free: 105.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01622/2.017, allocations: 8.989 MB / 0.9644 GB, free: 96.86 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/2.017, allocations: 0 / 0.9644 GB, free: 96.86 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008278/2.025, allocations: 4.895 MB / 0.9692 GB, free: 91.91 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009202/2.034, allocations: 1.101 MB / 0.9703 GB, free: 90.82 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02307/2.058, allocations: 16.23 MB / 0.9861 GB, free: 74.52 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002189/2.06, allocations: 3.176 MB / 0.9892 GB, free: 71.3 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003962/2.064, allocations: 1.454 MB / 0.9907 GB, free: 69.87 MB / 0.5763 GB Notification: Performance of SimCode: time 1.603e-06/2.064, allocations: 0 / 0.9907 GB, free: 69.87 MB / 0.5763 GB Notification: Performance of Templates: time 0.5438/2.608, allocations: 281.9 MB / 1.266 GB, free: 41.2 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)