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.001169/0.001169, allocations: 106 kB / 16.41 MB, free: 6.516 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.001069/0.001069, allocations: 187 kB / 17.34 MB, free: 5.738 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08378/0.08378, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 425.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1085, allocations: 53.62 MB / 479.5 MB, free: 5.77 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.4758/0.5843, allocations: 49.67 MB / 0.5168 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1296/0.714, allocations: 120.8 MB / 0.6347 GB, free: 3.887 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006356/0.7204, allocations: 75.56 kB / 0.6348 GB, free: 3.812 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008281/0.7287, allocations: 2.397 MB / 0.6371 GB, free: 1.398 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03342/0.7622, allocations: 10.09 MB / 0.647 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0455/0.8077, allocations: 15.49 MB / 0.6621 GB, free: 7.648 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.01631/0.824, allocations: 10.53 MB / 0.6724 GB, free: 13.08 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008251/0.8323, allocations: 5.51 MB / 0.6778 GB, free: 7.492 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009581/0.842, allocations: 5.347 MB / 0.683 GB, free: 2.133 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.8528, allocations: 5.884 MB / 0.6887 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.003902/0.8568, allocations: 0.8828 MB / 0.6896 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.047/0.9038, allocations: 13.73 MB / 0.703 GB, free: 13.6 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004079/0.9079, allocations: 2.115 MB / 0.7051 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.009936/0.9179, allocations: 4.543 MB / 0.7095 GB, free: 6.914 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3454/1.263, allocations: 24.26 MB / 0.7332 GB, free: 49.38 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.082e-05/1.263, allocations: 1 kB / 0.7332 GB, free: 49.38 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.864e-06/1.263, allocations: 0 / 0.7332 GB, free: 49.38 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0005298/1.264, allocations: 0 / 0.7332 GB, free: 49.38 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.03634/1.3, allocations: 10.44 MB / 0.7434 GB, free: 45.23 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/1.3, allocations: 9.5 kB / 0.7434 GB, free: 45.23 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01214/1.312, allocations: 1.907 MB / 0.7453 GB, free: 44.8 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008858/1.321, allocations: 3.541 MB / 0.7487 GB, free: 43.96 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006196/1.322, allocations: 0.5603 MB / 0.7493 GB, free: 43.92 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003575/1.326, allocations: 0.728 MB / 0.75 GB, free: 43.9 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02558/1.351, allocations: 9.188 MB / 0.759 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002217/1.351, allocations: 3.094 kB / 0.759 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002182/1.354, allocations: 291.4 kB / 0.7592 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001403/1.354, allocations: 172.7 kB / 0.7594 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02532/1.379, allocations: 12.65 MB / 0.7718 GB, free: 43.29 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.06324/1.442, allocations: 30.1 MB / 0.8012 GB, free: 28.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03181/1.474, allocations: 20.41 MB / 0.8211 GB, free: 7.777 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00835/1.483, allocations: 4.711 MB / 0.8257 GB, free: 3.059 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06232/1.545, allocations: 36.45 MB / 0.8613 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.943e-05/1.545, allocations: 97.8 kB / 0.8614 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003039/1.548, allocations: 0.5742 MB / 0.8619 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=581): time 1.569e-05/1.548, allocations: 2.656 kB / 0.8619 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of matching and sorting (n=757): time 0.1311/1.679, allocations: 35.52 MB / 0.8966 GB, free: 7.051 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.857e-05/1.679, allocations: 133.3 kB / 0.8968 GB, free: 6.906 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005105/1.685, allocations: 3.376 MB / 0.9 GB, free: 3.523 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001624/1.686, allocations: 153 kB / 0.9002 GB, free: 3.371 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.689, allocations: 3.147 MB / 0.9033 GB, free: 224 kB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.003665/1.692, allocations: 2.583 MB / 0.9058 GB, free: 13.65 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002917/1.695, allocations: 1.696 MB / 0.9074 GB, free: 11.95 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 9.978e-05/1.695, allocations: 305.1 kB / 0.9077 GB, free: 11.64 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005358/1.701, allocations: 2.857 MB / 0.9105 GB, free: 8.781 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008026/1.709, allocations: 5.741 MB / 0.9161 GB, free: 1.887 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01629/1.725, allocations: 9.494 MB / 0.9254 GB, free: 7.523 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.029e-05/1.725, allocations: 24 kB / 0.9254 GB, free: 7.5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02846/1.754, allocations: 10.7 MB / 0.9359 GB, free: 13.29 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 8.377e-05/1.754, allocations: 44 kB / 0.9359 GB, free: 13.25 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/1.754, allocations: 100.7 kB / 0.936 GB, free: 13.16 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009094/1.763, allocations: 1.809 MB / 0.9378 GB, free: 11.33 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01082/1.774, allocations: 2.321 MB / 0.94 GB, free: 9.156 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2994/2.073, allocations: 12.79 MB / 0.9525 GB, free: 285.9 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007995/2.081, allocations: 293 kB / 0.9528 GB, free: 285.9 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00262/2.084, allocations: 0.5164 MB / 0.9533 GB, free: 285.9 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.004902/2.089, allocations: 1.213 MB / 0.9545 GB, free: 285.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002135/2.091, allocations: 0.5708 MB / 0.9551 GB, free: 285.7 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02325/2.114, allocations: 10.12 MB / 0.965 GB, free: 283.5 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.493e-05/2.114, allocations: 77.72 kB / 0.965 GB, free: 283.5 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.563e-05/2.114, allocations: 4.5 kB / 0.965 GB, free: 283.5 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001331/2.115, allocations: 43.03 kB / 0.9651 GB, free: 283.5 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03243/2.147, allocations: 16.32 MB / 0.981 GB, free: 276.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.205e-05/2.147, allocations: 6.531 kB / 0.981 GB, free: 276.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007963/2.155, allocations: 1.53 MB / 0.9825 GB, free: 276.7 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007883/2.163, allocations: 1.599 MB / 0.9841 GB, free: 276.4 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001716/2.165, allocations: 268.2 kB / 0.9843 GB, free: 276.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/2.178, allocations: 12.07 MB / 0.9961 GB, free: 266.3 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/2.178, allocations: 7.406 kB / 0.9961 GB, free: 266.3 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02507/2.203, allocations: 12.95 MB / 1.009 GB, free: 261 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003956/2.207, allocations: 1.304 MB / 1.01 GB, free: 260 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001525/2.209, allocations: 146.6 kB / 1.01 GB, free: 259.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004049/2.213, allocations: 162.3 kB / 1.01 GB, free: 259.7 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/2.214, allocations: 0.582 MB / 1.011 GB, free: 259.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006333/2.215, allocations: 307.9 kB / 1.011 GB, free: 258.8 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002823/2.218, allocations: 2.039 MB / 1.013 GB, free: 256.7 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/2.218, allocations: 0 / 1.013 GB, free: 256.7 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01876/2.236, allocations: 5.034 MB / 1.018 GB, free: 252.3 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.01667/2.253, allocations: 5.544 MB / 1.024 GB, free: 248 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01683/2.27, allocations: 8.998 MB / 1.032 GB, free: 239 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/2.27, allocations: 0 / 1.032 GB, free: 239 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.008179/2.278, allocations: 4.891 MB / 1.037 GB, free: 234 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007377/2.286, allocations: 1.194 MB / 1.038 GB, free: 232.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02115/2.307, allocations: 12.79 MB / 1.051 GB, free: 220.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002246/2.309, allocations: 3.19 MB / 1.054 GB, free: 217.1 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004385/2.313, allocations: 1.455 MB / 1.055 GB, free: 215.6 MB / 0.67 GB Notification: Performance of SimCode: time 1.382e-06/2.313, allocations: 2.156 kB / 1.055 GB, free: 215.6 MB / 0.67 GB Notification: Performance of Templates: time 0.507/2.82, allocations: 283.6 MB / 1.332 GB, free: 219.4 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)