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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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: "" <> buildModelFMU(Chemical.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.0008862/0.0008862, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.2 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1752/0.1752, allocations: 15.28 MB / 306.3 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003046, allocations: 12.2 kB / 371.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2419, allocations: 54.61 MB / 426.2 MB, free: 40.19 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.02138/0.2633, allocations: 31.46 MB / 457.6 MB, free: 20.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1068/0.3701, allocations: 109.8 MB / 0.5542 GB, free: 8.551 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006012/0.3762, allocations: 142.9 kB / 0.5543 GB, free: 8.41 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00619/0.3824, allocations: 2.165 MB / 0.5564 GB, free: 6.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02457/0.407, allocations: 8.632 MB / 0.5648 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03472/0.4418, allocations: 12.61 MB / 0.5771 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.2143/0.6561, allocations: 9.586 MB / 0.5865 GB, free: 9.141 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006037/0.6622, allocations: 4.375 MB / 0.5908 GB, free: 8.688 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007563/0.6698, allocations: 4.182 MB / 0.5949 GB, free: 8.688 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009902/0.6797, allocations: 5.326 MB / 0.6001 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00321/0.6829, allocations: 476.8 kB / 0.6005 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03881/0.7217, allocations: 12.52 MB / 0.6127 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003676/0.7255, allocations: 1.639 MB / 0.6143 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003747/0.7292, allocations: 1.389 MB / 0.6157 GB, free: 8.648 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02637/0.7556, allocations: 17.98 MB / 0.6333 GB, free: 5.195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.7556, allocations: 4 kB / 0.6333 GB, free: 5.191 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.7556, allocations: 0 / 0.6333 GB, free: 5.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003395/0.756, allocations: 0 / 0.6333 GB, free: 5.191 MB / 446.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.01863/0.7746, allocations: 8.597 MB / 0.6417 GB, free: 13.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.7747, allocations: 8.031 kB / 0.6417 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002094/0.7768, allocations: 0.9093 MB / 0.6425 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009106/0.7859, allocations: 1.907 MB / 0.6444 GB, free: 10.9 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006178/0.7921, allocations: 3.188 MB / 0.6475 GB, free: 8.676 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004716/0.7926, allocations: 0.5542 MB / 0.6481 GB, free: 8.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001853/0.7945, allocations: 0.7291 MB / 0.6488 GB, free: 7.852 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/0.8112, allocations: 9.133 MB / 0.6577 GB, free: 1.559 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.8113, allocations: 5.172 kB / 0.6577 GB, free: 1.559 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007801/0.8121, allocations: 292 kB / 0.658 GB, free: 1.496 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.8122, allocations: 172 kB / 0.6581 GB, free: 1.328 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02005/0.8323, allocations: 12.61 MB / 0.6705 GB, free: 8.312 MB / 478.1 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.04957/0.8819, allocations: 29.78 MB / 0.6995 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03198/0.9139, allocations: 20.38 MB / 0.7194 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007734/0.9217, allocations: 4.687 MB / 0.724 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05119/0.9729, allocations: 35.7 MB / 0.7589 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.563e-05/0.973, allocations: 93.2 kB / 0.759 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002822/0.9759, allocations: 0.5824 MB / 0.7595 GB, free: 12.54 MB / 0.545 GB Notification: Performance of pre-optimization done (n=581): time 1.695e-05/0.9759, allocations: 0 / 0.7595 GB, free: 12.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=754): time 0.4612/1.437, allocations: 36.26 MB / 0.7949 GB, free: 199.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/1.437, allocations: 129.2 kB / 0.7951 GB, free: 199.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004086/1.441, allocations: 3.342 MB / 0.7983 GB, free: 198.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001007/1.442, allocations: 154.4 kB / 0.7985 GB, free: 198 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001526/1.444, allocations: 3.142 MB / 0.8015 GB, free: 195.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002131/1.446, allocations: 2.574 MB / 0.8041 GB, free: 193.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004313/1.446, allocations: 184.6 kB / 0.8042 GB, free: 193.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0003112/1.447, allocations: 0.652 MB / 0.8049 GB, free: 192.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004616/1.451, allocations: 2.853 MB / 0.8077 GB, free: 191.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005941/1.457, allocations: 5.736 MB / 0.8133 GB, free: 187 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00621/1.464, allocations: 3.668 MB / 0.8168 GB, free: 185.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-05/1.464, allocations: 25.56 kB / 0.8169 GB, free: 185.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.02147/1.485, allocations: 10.71 MB / 0.8273 GB, free: 181 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/1.485, allocations: 48.08 kB / 0.8274 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.16e-05/1.485, allocations: 91.62 kB / 0.8275 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008493/1.494, allocations: 1.877 MB / 0.8293 GB, free: 180.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00923/1.503, allocations: 2.309 MB / 0.8316 GB, free: 180.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/1.518, allocations: 11.83 MB / 0.8431 GB, free: 171 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007055/1.525, allocations: 462.9 kB / 0.8435 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/1.527, allocations: 0.5151 MB / 0.8441 GB, free: 170.8 MB / 0.545 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 (1140): * Single equations (assignments): 1134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 20,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 3 {3 27,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003078/1.53, allocations: 1.199 MB / 0.8452 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.531, allocations: 0.5682 MB / 0.8458 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02366/1.554, allocations: 10.2 MB / 0.8557 GB, free: 164.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.818e-05/1.555, allocations: 80 kB / 0.8558 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/1.555, allocations: 4 kB / 0.8558 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001098/1.555, allocations: 40.22 kB / 0.8559 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02802/1.583, allocations: 16.43 MB / 0.8719 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.933e-05/1.583, allocations: 6.391 kB / 0.8719 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006715/1.589, allocations: 1.521 MB / 0.8734 GB, free: 149.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007698/1.597, allocations: 1.686 MB / 0.875 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000891/1.598, allocations: 265.8 kB / 0.8753 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/1.611, allocations: 11.09 MB / 0.8861 GB, free: 135.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.611, allocations: 7.938 kB / 0.8861 GB, free: 135.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02199/1.633, allocations: 13.03 MB / 0.8989 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002975/1.636, allocations: 1.25 MB / 0.9001 GB, free: 120.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001107/1.637, allocations: 148 kB / 0.9002 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003552/1.641, allocations: 303.4 kB / 0.9005 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007831/1.641, allocations: 0.5795 MB / 0.9011 GB, free: 119.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005446/1.642, allocations: 311.9 kB / 0.9014 GB, free: 119.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002337/1.644, allocations: 2 MB / 0.9033 GB, free: 117.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.01e-07/1.644, allocations: 0 / 0.9033 GB, free: 117.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01392/1.658, allocations: 4.904 MB / 0.9081 GB, free: 113.2 MB / 0.545 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 (758): * Single equations (assignments): 752 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 20,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 3 {4 33,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.03216/1.69, allocations: 18.9 MB / 0.9266 GB, free: 95.42 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01554/1.706, allocations: 9.013 MB / 0.9354 GB, free: 86.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/1.706, allocations: 0 / 0.9354 GB, free: 86.34 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007504/1.714, allocations: 4.906 MB / 0.9402 GB, free: 81.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006774/1.72, allocations: 1.112 MB / 0.9413 GB, free: 80.28 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08093/1.801, allocations: 52.57 MB / 0.9926 GB, free: 24.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003339/1.805, allocations: 3.183 MB / 0.9957 GB, free: 21.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009485/1.814, allocations: 1.671 MB / 0.9973 GB, free: 19.64 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006058/1.82, allocations: 3.72 MB / 1.001 GB, free: 15.93 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/1.82, allocations: 0 / 1.001 GB, free: 15.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5463/2.367, allocations: 209.3 MB / 1.205 GB, free: 41.75 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001588/2.367, allocations: 203.8 kB / 1.206 GB, free: 41.51 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.062/11.43, allocations: 0 / 1.206 GB, free: 41.51 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane.fmu > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1) Environment - environmentSimulation: