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.001113/0.001113, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.009374/0.009375, allocations: 173.2 kB / 16.26 MB, free: 6.613 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.45/1.45, allocations: 223.3 MB / 240.3 MB, free: 5.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.2162/0.2162, allocations: 15.28 MB / 306.7 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003739/0.000374, allocations: 8 kB / 372.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3145, allocations: 54.63 MB / 426.7 MB, free: 40.4 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.05027/0.3648, allocations: 52.42 MB / 479.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.4036/0.7684, allocations: 119.1 MB / 0.5842 GB, free: 5.301 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009946/0.7784, allocations: 141 kB / 0.5844 GB, free: 5.301 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007571/0.786, allocations: 2.166 MB / 0.5865 GB, free: 5.285 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03195/0.818, allocations: 8.826 MB / 0.5951 GB, free: 5.219 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04673/0.8648, allocations: 13.58 MB / 0.6084 GB, free: 4.324 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01808/0.8829, allocations: 10.07 MB / 0.6182 GB, free: 1.332 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01055/0.8934, allocations: 4.528 MB / 0.6226 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01155/0.905, allocations: 5.008 MB / 0.6275 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01256/0.9176, allocations: 5.485 MB / 0.6329 GB, free: 13.67 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004233/0.9219, allocations: 476.5 kB / 0.6333 GB, free: 13.67 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05811/0.98, allocations: 13.38 MB / 0.6464 GB, free: 10.87 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004801/0.9849, allocations: 1.708 MB / 0.6481 GB, free: 9.801 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01009/0.995, allocations: 4.092 MB / 0.652 GB, free: 7.277 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07185/1.067, allocations: 22.47 MB / 0.674 GB, free: 4.023 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/1.067, allocations: 0 / 0.674 GB, free: 4.023 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.757e-06/1.067, allocations: 0 / 0.674 GB, free: 4.023 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.00055/1.067, allocations: 2.688 kB / 0.674 GB, free: 4.023 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.02283/1.09, allocations: 8.612 MB / 0.6824 GB, free: 11.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/1.09, allocations: 10.69 kB / 0.6824 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01054/1.101, allocations: 1.911 MB / 0.6843 GB, free: 9.488 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009342/1.11, allocations: 3.29 MB / 0.6875 GB, free: 6.191 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007007/1.111, allocations: 0.5551 MB / 0.688 GB, free: 5.629 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002864/1.114, allocations: 0.7304 MB / 0.6887 GB, free: 4.898 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02542/1.139, allocations: 9.182 MB / 0.6977 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003516/1.14, allocations: 3.938 kB / 0.6977 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002069/1.142, allocations: 288 kB / 0.698 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/1.142, allocations: 172 kB / 0.6982 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02639/1.168, allocations: 12.66 MB / 0.7105 GB, free: 14.47 MB / 0.5137 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.06328/1.232, allocations: 29.8 MB / 0.7396 GB, free: 172 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03546/1.267, allocations: 20.42 MB / 0.7596 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008957/1.276, allocations: 4.712 MB / 0.7642 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4897/1.766, allocations: 35.7 MB / 0.799 GB, free: 227.4 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/1.766, allocations: 90.19 kB / 0.7991 GB, free: 227.3 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002641/1.769, allocations: 0.5801 MB / 0.7997 GB, free: 226.9 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 1.398e-05/1.769, allocations: 0 / 0.7997 GB, free: 226.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.1221/1.891, allocations: 35.89 MB / 0.8347 GB, free: 214.1 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/1.891, allocations: 130.7 kB / 0.8348 GB, free: 214 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/1.895, allocations: 3.379 MB / 0.8381 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001315/1.896, allocations: 154.9 kB / 0.8383 GB, free: 212.6 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001754/1.898, allocations: 3.147 MB / 0.8414 GB, free: 210.2 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002619/1.9, allocations: 2.584 MB / 0.8439 GB, free: 208.1 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/1.901, allocations: 0.7078 MB / 0.8446 GB, free: 207.8 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.773e-05/1.901, allocations: 303.8 kB / 0.8449 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004805/1.906, allocations: 2.853 MB / 0.8477 GB, free: 206.4 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007412/1.914, allocations: 5.742 MB / 0.8533 GB, free: 201.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01522/1.929, allocations: 9.491 MB / 0.8625 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/1.929, allocations: 25.56 kB / 0.8626 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02716/1.956, allocations: 10.73 MB / 0.873 GB, free: 187.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.828e-05/1.956, allocations: 44 kB / 0.8731 GB, free: 187.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.164e-05/1.957, allocations: 90.69 kB / 0.8732 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00906/1.966, allocations: 1.853 MB / 0.875 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009858/1.976, allocations: 2.315 MB / 0.8772 GB, free: 184 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01569/1.991, allocations: 11.82 MB / 0.8888 GB, free: 172 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007163/1.998, allocations: 472.5 kB / 0.8892 GB, free: 171.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/2, allocations: 0.5155 MB / 0.8897 GB, free: 171 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.003044/2.003, allocations: 1.198 MB / 0.8909 GB, free: 169.8 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/2.004, allocations: 0.5709 MB / 0.8915 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02208/2.026, allocations: 10.16 MB / 0.9014 GB, free: 159.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.032e-05/2.026, allocations: 84 kB / 0.9015 GB, free: 159 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.912e-05/2.026, allocations: 11.92 kB / 0.9015 GB, free: 159 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001559/2.026, allocations: 35.86 kB / 0.9015 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02998/2.056, allocations: 16.29 MB / 0.9174 GB, free: 142.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.161e-05/2.057, allocations: 0 / 0.9174 GB, free: 142.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007823/2.064, allocations: 1.529 MB / 0.9189 GB, free: 141.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008544/2.073, allocations: 1.669 MB / 0.9205 GB, free: 139.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001707/2.075, allocations: 263.9 kB / 0.9208 GB, free: 139.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/2.088, allocations: 11.1 MB / 0.9316 GB, free: 127.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/2.088, allocations: 4 kB / 0.9316 GB, free: 127.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02439/2.113, allocations: 12.97 MB / 0.9443 GB, free: 114.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003479/2.116, allocations: 1.258 MB / 0.9455 GB, free: 113 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001552/2.118, allocations: 148 kB / 0.9457 GB, free: 112.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004612/2.122, allocations: 303.4 kB / 0.946 GB, free: 112.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001393/2.124, allocations: 0.5783 MB / 0.9465 GB, free: 112 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009964/2.125, allocations: 311.9 kB / 0.9468 GB, free: 111.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003177/2.128, allocations: 2.039 MB / 0.9488 GB, free: 109.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.4e-07/2.128, allocations: 4 kB / 0.9488 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01502/2.143, allocations: 4.992 MB / 0.9537 GB, free: 105.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.01283/2.156, allocations: 5.534 MB / 0.9591 GB, free: 101 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01844/2.174, allocations: 8.986 MB / 0.9679 GB, free: 91.92 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/2.175, allocations: 4 kB / 0.9679 GB, free: 91.92 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008991/2.184, allocations: 4.89 MB / 0.9726 GB, free: 86.97 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01036/2.194, allocations: 1.096 MB / 0.9737 GB, free: 85.89 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02373/2.218, allocations: 16.12 MB / 0.9895 GB, free: 69.71 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003032/2.221, allocations: 3.18 MB / 0.9926 GB, free: 66.49 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.009007/2.23, allocations: 1.67 MB / 0.9942 GB, free: 64.92 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003003/2.233, allocations: 1.132 MB / 0.9953 GB, free: 63.8 MB / 0.5763 GB Notification: Performance of SimCode: time 7.32e-07/2.233, allocations: 4 kB / 0.9953 GB, free: 63.8 MB / 0.5763 GB Notification: Performance of Templates: time 0.4317/2.665, allocations: 160.9 MB / 1.152 GB, free: 163.4 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)