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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.1224/0.1224, allocations: 15.29 MB / 31.09 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 198 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 264 MB, free: 4.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009647/0.0009649, allocations: 102.9 kB / 318.4 MB, free: 3.441 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009822/0.0009824, allocations: 51.62 kB / 382.7 MB, free: 48.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08246/0.08346, allocations: 53.62 MB / 436.3 MB, free: 1.043 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.04981/0.1333, allocations: 51.48 MB / 487.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.2893/0.4226, allocations: 119.3 MB / 0.5928 GB, free: 15.56 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007026/0.4297, allocations: 152.2 kB / 0.593 GB, free: 15.49 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007851/0.4376, allocations: 2.168 MB / 0.5951 GB, free: 13.84 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02714/0.4648, allocations: 8.53 MB / 0.6034 GB, free: 5.492 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03827/0.5031, allocations: 13.58 MB / 0.6167 GB, free: 7.84 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.5164, allocations: 10.15 MB / 0.6266 GB, free: 13.65 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006492/0.5229, allocations: 4.741 MB / 0.6312 GB, free: 8.867 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009525/0.5325, allocations: 5.26 MB / 0.6364 GB, free: 3.594 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00908/0.5416, allocations: 5.767 MB / 0.642 GB, free: 13.81 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002888/0.5445, allocations: 0.582 MB / 0.6426 GB, free: 13.23 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04619/0.5907, allocations: 13.08 MB / 0.6554 GB, free: 120 kB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004506/0.5952, allocations: 1.873 MB / 0.6572 GB, free: 14.23 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00933/0.6046, allocations: 4.277 MB / 0.6614 GB, free: 9.938 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05637/0.661, allocations: 22.35 MB / 0.6832 GB, free: 3.516 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.6611, allocations: 0 / 0.6832 GB, free: 3.516 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.6611, allocations: 0 / 0.6832 GB, free: 3.516 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003712/0.6614, allocations: 0 / 0.6832 GB, free: 3.516 MB / 490.7 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.3727/1.034, allocations: 10.37 MB / 0.6933 GB, free: 158.1 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/1.034, allocations: 16.06 kB / 0.6933 GB, free: 158.1 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/1.044, allocations: 1.9 MB / 0.6952 GB, free: 157.7 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008567/1.053, allocations: 3.453 MB / 0.6985 GB, free: 156.8 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000725/1.054, allocations: 0.553 MB / 0.6991 GB, free: 156.7 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003343/1.057, allocations: 0.7344 MB / 0.6998 GB, free: 156.7 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/1.079, allocations: 9.175 MB / 0.7088 GB, free: 154 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/1.079, allocations: 11.81 kB / 0.7088 GB, free: 154 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007158/1.079, allocations: 287.9 kB / 0.7091 GB, free: 153.8 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.273e-05/1.08, allocations: 174.7 kB / 0.7092 GB, free: 153.8 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01988/1.099, allocations: 12.66 MB / 0.7216 GB, free: 148.6 MB / 490.8 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.05274/1.152, allocations: 30.13 MB / 0.751 GB, free: 122.6 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02891/1.181, allocations: 20.41 MB / 0.7709 GB, free: 101.6 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007608/1.189, allocations: 4.712 MB / 0.7755 GB, free: 96.91 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05575/1.245, allocations: 36.53 MB / 0.8112 GB, free: 56.86 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/1.245, allocations: 99.06 kB / 0.8113 GB, free: 56.75 MB / 490.8 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003589/1.248, allocations: 0.5822 MB / 0.8119 GB, free: 56.16 MB / 490.8 MB Notification: Performance of pre-optimization done (n=581): time 4.15e-05/1.248, allocations: 0 / 0.8119 GB, free: 56.16 MB / 490.8 MB Notification: Performance of matching and sorting (n=757): time 0.1062/1.355, allocations: 35.49 MB / 0.8465 GB, free: 20.62 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/1.355, allocations: 133.3 kB / 0.8466 GB, free: 20.48 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003441/1.358, allocations: 3.376 MB / 0.8499 GB, free: 17.09 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008553/1.359, allocations: 149.7 kB / 0.8501 GB, free: 16.94 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/1.36, allocations: 3.144 MB / 0.8532 GB, free: 13.79 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001709/1.362, allocations: 2.584 MB / 0.8557 GB, free: 11.22 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001785/1.364, allocations: 1.694 MB / 0.8573 GB, free: 9.516 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 4.115e-05/1.364, allocations: 305.1 kB / 0.8576 GB, free: 9.215 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003966/1.368, allocations: 2.867 MB / 0.8604 GB, free: 6.344 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2073/1.575, allocations: 5.735 MB / 0.866 GB, free: 142.8 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01582/1.591, allocations: 9.487 MB / 0.8753 GB, free: 139.1 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.583e-05/1.591, allocations: 28.34 kB / 0.8753 GB, free: 139.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02809/1.619, allocations: 10.7 MB / 0.8858 GB, free: 135.9 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.927e-05/1.619, allocations: 43.41 kB / 0.8858 GB, free: 135.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.18e-05/1.619, allocations: 90.73 kB / 0.8859 GB, free: 135.9 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008782/1.628, allocations: 1.819 MB / 0.8877 GB, free: 135.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01022/1.638, allocations: 2.315 MB / 0.8899 GB, free: 135.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01595/1.654, allocations: 11.77 MB / 0.9014 GB, free: 126.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007155/1.661, allocations: 464.4 kB / 0.9019 GB, free: 125.9 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001584/1.663, allocations: 0.5155 MB / 0.9024 GB, free: 125.8 MB / 490.8 MB 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.003314/1.666, allocations: 1.203 MB / 0.9036 GB, free: 125 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001555/1.668, allocations: 0.5746 MB / 0.9041 GB, free: 125 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02161/1.69, allocations: 10.13 MB / 0.914 GB, free: 121.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.938e-05/1.69, allocations: 79.84 kB / 0.9141 GB, free: 121.1 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/1.69, allocations: 3.375 kB / 0.9141 GB, free: 121.1 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.404e-05/1.69, allocations: 38.81 kB / 0.9141 GB, free: 121.1 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02918/1.719, allocations: 16.33 MB / 0.9301 GB, free: 112.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.738e-05/1.719, allocations: 4 kB / 0.9301 GB, free: 112.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007206/1.726, allocations: 1.526 MB / 0.9316 GB, free: 110.9 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007579/1.734, allocations: 1.629 MB / 0.9332 GB, free: 109.2 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001316/1.735, allocations: 267.9 kB / 0.9334 GB, free: 109 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01227/1.747, allocations: 11.05 MB / 0.9442 GB, free: 97.33 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.748, allocations: 16 kB / 0.9442 GB, free: 97.31 MB / 490.8 MB Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08899/1.837, allocations: 44.72 MB / 0.9879 GB, free: 51.93 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003957/1.841, allocations: 1.305 MB / 0.9892 GB, free: 50.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/1.842, allocations: 144 kB / 0.9893 GB, free: 50.46 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004062/1.846, allocations: 295.5 kB / 0.9896 GB, free: 50.17 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009764/1.847, allocations: 0.5756 MB / 0.9901 GB, free: 49.59 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005333/1.847, allocations: 315.9 kB / 0.9904 GB, free: 49.29 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00251/1.85, allocations: 2.047 MB / 0.9924 GB, free: 47.24 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.9e-07/1.85, allocations: 0 / 0.9924 GB, free: 47.24 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02331/1.873, allocations: 5.766 MB / 0.9981 GB, free: 42.04 MB / 490.8 MB 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.01595/1.889, allocations: 5.406 MB / 1.003 GB, free: 37.66 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01711/1.906, allocations: 8.981 MB / 1.012 GB, free: 28.61 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.906, allocations: 4 kB / 1.012 GB, free: 28.61 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008534/1.915, allocations: 4.879 MB / 1.017 GB, free: 23.68 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00652/1.921, allocations: 1.094 MB / 1.018 GB, free: 22.59 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02617/1.948, allocations: 20.21 MB / 1.038 GB, free: 2.25 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00313/1.951, allocations: 3.4 MB / 1.041 GB, free: 14.81 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.009382/1.96, allocations: 1.756 MB / 1.043 GB, free: 13.16 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003362/1.964, allocations: 1.179 MB / 1.044 GB, free: 11.99 MB / 0.4949 GB Notification: Performance of SimCode: time 9.82e-07/1.964, allocations: 0 / 1.044 GB, free: 11.99 MB / 0.4949 GB Notification: Performance of Templates: time 0.438/2.402, allocations: 176.2 MB / 1.216 GB, free: 3.043 MB / 0.4949 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)