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.00173/0.00173, allocations: 106.5 kB / 16.41 MB, free: 6.492 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.002092/0.002092, allocations: 191 kB / 17.34 MB, free: 5.762 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.405/1.405, 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.08228/0.08228, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 425.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09494/0.09617, allocations: 53.61 MB / 479.5 MB, free: 5.895 MB / 350.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.4775/0.5737, allocations: 49.58 MB / 0.5167 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1393/0.7131, allocations: 120.8 MB / 0.6346 GB, free: 3.949 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005544/0.7187, allocations: 79.56 kB / 0.6347 GB, free: 3.871 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007558/0.7263, allocations: 2.397 MB / 0.637 GB, free: 1.457 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03044/0.7567, allocations: 10.1 MB / 0.6469 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04671/0.8035, allocations: 15.48 MB / 0.662 GB, free: 7.711 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.01554/0.8191, allocations: 10.53 MB / 0.6723 GB, free: 13.14 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008997/0.8281, allocations: 5.51 MB / 0.6777 GB, free: 7.555 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009648/0.8378, allocations: 5.339 MB / 0.6829 GB, free: 2.203 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0102/0.848, allocations: 5.876 MB / 0.6886 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.003788/0.8519, allocations: 0.8867 MB / 0.6895 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04273/0.8946, allocations: 13.73 MB / 0.7029 GB, free: 13.67 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00379/0.8985, allocations: 2.119 MB / 0.705 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.008672/0.9072, allocations: 4.539 MB / 0.7094 GB, free: 6.988 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3333/1.241, allocations: 24.17 MB / 0.733 GB, free: 49.64 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.337e-06/1.241, allocations: 4.25 kB / 0.733 GB, free: 49.64 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.414e-06/1.241, allocations: 0 / 0.733 GB, free: 49.64 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004662/1.241, allocations: 1.031 kB / 0.733 GB, free: 49.64 MB / 0.545 GB 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.03491/1.276, allocations: 10.46 MB / 0.7432 GB, free: 45.49 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.276, allocations: 9.875 kB / 0.7432 GB, free: 45.49 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01238/1.288, allocations: 1.907 MB / 0.7451 GB, free: 45.06 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009113/1.298, allocations: 3.546 MB / 0.7485 GB, free: 44.23 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000496/1.298, allocations: 0.5549 MB / 0.7491 GB, free: 44.18 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003519/1.302, allocations: 0.7352 MB / 0.7498 GB, free: 44.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02219/1.324, allocations: 9.182 MB / 0.7588 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001679/1.324, allocations: 6.812 kB / 0.7588 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001326/1.325, allocations: 288.8 kB / 0.7591 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/1.326, allocations: 174.6 kB / 0.7592 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02449/1.35, allocations: 12.66 MB / 0.7716 GB, free: 43.55 MB / 0.545 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.06281/1.413, allocations: 30.09 MB / 0.801 GB, free: 28.93 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03143/1.444, allocations: 20.41 MB / 0.8209 GB, free: 8.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008392/1.453, allocations: 4.715 MB / 0.8255 GB, free: 3.297 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06369/1.516, allocations: 36.46 MB / 0.8611 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.577e-05/1.517, allocations: 90.41 kB / 0.8612 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003432/1.52, allocations: 0.5853 MB / 0.8618 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=581): time 1.728e-05/1.52, allocations: 1.969 kB / 0.8618 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of matching and sorting (n=757): time 0.1326/1.653, allocations: 35.52 MB / 0.8965 GB, free: 7.285 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.866e-05/1.653, allocations: 132 kB / 0.8966 GB, free: 7.145 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006011/1.659, allocations: 3.376 MB / 0.8999 GB, free: 3.762 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001477/1.66, allocations: 149.7 kB / 0.9 GB, free: 3.609 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.663, allocations: 3.146 MB / 0.9031 GB, free: 464 kB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.003655/1.667, allocations: 2.581 MB / 0.9056 GB, free: 13.89 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005101/1.672, allocations: 1.697 MB / 0.9073 GB, free: 12.19 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.672, allocations: 305.1 kB / 0.9076 GB, free: 11.89 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006407/1.678, allocations: 2.861 MB / 0.9104 GB, free: 9.02 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008813/1.687, allocations: 5.736 MB / 0.916 GB, free: 2.125 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01738/1.704, allocations: 9.497 MB / 0.9252 GB, free: 7.762 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.376e-05/1.705, allocations: 24 kB / 0.9253 GB, free: 7.738 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.03053/1.735, allocations: 10.7 MB / 0.9357 GB, free: 13.54 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/1.735, allocations: 52.3 kB / 0.9358 GB, free: 13.49 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/1.735, allocations: 92 kB / 0.9358 GB, free: 13.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009404/1.745, allocations: 1.807 MB / 0.9376 GB, free: 11.57 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01101/1.756, allocations: 2.318 MB / 0.9399 GB, free: 9.398 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3301/2.086, allocations: 12.8 MB / 0.9524 GB, free: 285.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007811/2.094, allocations: 290.6 kB / 0.9526 GB, free: 285.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002454/2.096, allocations: 0.5169 MB / 0.9532 GB, free: 285.8 MB / 0.67 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.004964/2.101, allocations: 1.202 MB / 0.9543 GB, free: 285.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002098/2.104, allocations: 0.57 MB / 0.9549 GB, free: 285.7 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02804/2.132, allocations: 10.13 MB / 0.9648 GB, free: 283.3 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.304e-05/2.132, allocations: 78.44 kB / 0.9649 GB, free: 283.3 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-05/2.132, allocations: 6.062 kB / 0.9649 GB, free: 283.3 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002403/2.132, allocations: 43.12 kB / 0.9649 GB, free: 283.3 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03854/2.171, allocations: 16.33 MB / 0.9808 GB, free: 276.7 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.931e-05/2.171, allocations: 3.969 kB / 0.9808 GB, free: 276.7 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008281/2.179, allocations: 1.526 MB / 0.9823 GB, free: 276.5 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007669/2.187, allocations: 1.6 MB / 0.9839 GB, free: 276.2 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001962/2.189, allocations: 272 kB / 0.9842 GB, free: 276.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01402/2.203, allocations: 12.06 MB / 0.9959 GB, free: 266.2 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/2.203, allocations: 6.406 kB / 0.9959 GB, free: 266.2 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02581/2.229, allocations: 12.96 MB / 1.009 GB, free: 260.8 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004119/2.233, allocations: 1.295 MB / 1.01 GB, free: 260.1 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001746/2.234, allocations: 151.8 kB / 1.01 GB, free: 260 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004572/2.239, allocations: 147.9 kB / 1.01 GB, free: 259.9 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001341/2.24, allocations: 0.5804 MB / 1.011 GB, free: 259.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000677/2.241, allocations: 318.5 kB / 1.011 GB, free: 259 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002691/2.244, allocations: 2.043 MB / 1.013 GB, free: 256.9 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.81e-07/2.244, allocations: 0 / 1.013 GB, free: 256.9 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01834/2.262, allocations: 5.034 MB / 1.018 GB, free: 252.5 MB / 0.67 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.01758/2.28, allocations: 5.542 MB / 1.023 GB, free: 248.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01692/2.297, allocations: 8.999 MB / 1.032 GB, free: 239.2 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/2.297, allocations: 0 / 1.032 GB, free: 239.2 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.008453/2.305, allocations: 4.895 MB / 1.037 GB, free: 234.2 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007673/2.313, allocations: 1.195 MB / 1.038 GB, free: 233.1 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/2.334, allocations: 12.79 MB / 1.051 GB, free: 220.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/2.337, allocations: 3.179 MB / 1.054 GB, free: 217.3 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004331/2.341, allocations: 1.454 MB / 1.055 GB, free: 215.8 MB / 0.67 GB Notification: Performance of SimCode: time 1.172e-06/2.341, allocations: 0 / 1.055 GB, free: 215.8 MB / 0.67 GB Notification: Performance of Templates: time 0.5388/2.88, allocations: 282.8 MB / 1.331 GB, free: 221 MB / 0.67 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)