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.0009929/0.0009927, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008886/0.0008886, allocations: 177.3 kB / 15.94 MB, free: 228 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.282/1.282, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2089/0.2089, allocations: 15.26 MB / 306.2 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002876, allocations: 8 kB / 371.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2738, allocations: 54.61 MB / 426.1 MB, free: 40.29 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.01951/0.2933, allocations: 27.76 MB / 453.8 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1036/0.3969, allocations: 101.2 MB / 0.542 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006171/0.4031, allocations: 134.9 kB / 0.5422 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007794/0.4109, allocations: 2.265 MB / 0.5444 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0298/0.4408, allocations: 9.796 MB / 0.5539 GB, free: 8.707 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0446/0.4854, allocations: 13.89 MB / 0.5675 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.4978, allocations: 6.909 MB / 0.5742 GB, free: 3.863 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2359/0.7338, allocations: 4.349 MB / 0.5785 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007142/0.7409, allocations: 3.803 MB / 0.5822 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009808/0.7508, allocations: 5.147 MB / 0.5872 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002594/0.7534, allocations: 477 kB / 0.5877 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05186/0.8053, allocations: 15 MB / 0.6023 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004209/0.8095, allocations: 1.64 MB / 0.6039 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005671/0.8153, allocations: 1.384 MB / 0.6053 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03344/0.8487, allocations: 14.14 MB / 0.6191 GB, free: 9.211 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8488, allocations: 0 / 0.6191 GB, free: 9.211 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.639e-06/0.8488, allocations: 3.719 kB / 0.6191 GB, free: 9.211 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005443/0.8494, allocations: 4.641 kB / 0.6191 GB, free: 9.211 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.02281/0.8722, allocations: 8.601 MB / 0.6275 GB, free: 3.465 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.8723, allocations: 8.031 kB / 0.6275 GB, free: 3.457 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003029/0.8753, allocations: 0.9073 MB / 0.6284 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01074/0.886, allocations: 1.912 MB / 0.6303 GB, free: 1.629 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006957/0.893, allocations: 3.009 MB / 0.6332 GB, free: 76 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005633/0.8936, allocations: 0.5561 MB / 0.6337 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002885/0.8965, allocations: 0.731 MB / 0.6345 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02235/0.9189, allocations: 9.07 MB / 0.6433 GB, free: 9.027 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001501/0.9191, allocations: 7.281 kB / 0.6433 GB, free: 9.023 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009866/0.9201, allocations: 289 kB / 0.6436 GB, free: 8.965 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001183/0.9202, allocations: 176 kB / 0.6438 GB, free: 8.793 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02442/0.9446, allocations: 12.61 MB / 0.6561 GB, free: 15.78 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.05992/1.005, allocations: 29.42 MB / 0.6848 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03239/1.037, allocations: 20.38 MB / 0.7047 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0521/1.089, allocations: 35.31 MB / 0.7392 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.487e-05/1.089, allocations: 96.8 kB / 0.7393 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002858/1.092, allocations: 0.5772 MB / 0.7398 GB, free: 8.219 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=581): time 1.171e-05/1.092, allocations: 0 / 0.7398 GB, free: 8.219 MB / 0.5294 GB Notification: Performance of matching and sorting (n=757): time 0.1104/1.203, allocations: 35.81 MB / 0.7748 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.144e-05/1.203, allocations: 129.3 kB / 0.7749 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/1.207, allocations: 3.333 MB / 0.7782 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.208, allocations: 153.7 kB / 0.7783 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002193/1.21, allocations: 3.152 MB / 0.7814 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003236/1.214, allocations: 2.582 MB / 0.7839 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005176/1.214, allocations: 188 kB / 0.7841 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0004494/1.215, allocations: 0.6552 MB / 0.7848 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2033/1.418, allocations: 2.82 MB / 0.7875 GB, free: 221.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006891/1.425, allocations: 5.663 MB / 0.793 GB, free: 218.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006741/1.432, allocations: 3.635 MB / 0.7966 GB, free: 217.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.758e-05/1.432, allocations: 25.12 kB / 0.7966 GB, free: 217.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02608/1.458, allocations: 10.67 MB / 0.807 GB, free: 214.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.82e-05/1.458, allocations: 48.02 kB / 0.8071 GB, free: 214.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.181e-05/1.458, allocations: 93.53 kB / 0.8072 GB, free: 214.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009106/1.467, allocations: 1.851 MB / 0.809 GB, free: 214.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01074/1.478, allocations: 2.316 MB / 0.8112 GB, free: 214.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01666/1.495, allocations: 11.94 MB / 0.8229 GB, free: 204.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007526/1.502, allocations: 465.1 kB / 0.8233 GB, free: 204.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002389/1.505, allocations: 0.517 MB / 0.8238 GB, free: 204.7 MB / 0.5606 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 (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.005585/1.51, allocations: 1.204 MB / 0.825 GB, free: 203.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002018/1.512, allocations: 0.573 MB / 0.8256 GB, free: 203.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02908/1.541, allocations: 10.16 MB / 0.8355 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.647e-05/1.541, allocations: 79.19 kB / 0.8356 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-05/1.541, allocations: 7.812 kB / 0.8356 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002812/1.542, allocations: 38.34 kB / 0.8356 GB, free: 199.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03845/1.58, allocations: 16.16 MB / 0.8514 GB, free: 193.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-05/1.58, allocations: 7.062 kB / 0.8514 GB, free: 193.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008075/1.588, allocations: 1.531 MB / 0.8529 GB, free: 193 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008339/1.597, allocations: 1.665 MB / 0.8545 GB, free: 192.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001283/1.598, allocations: 265.3 kB / 0.8548 GB, free: 192.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/1.612, allocations: 11.22 MB / 0.8657 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/1.612, allocations: 5.656 kB / 0.8658 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02586/1.637, allocations: 13.33 MB / 0.8788 GB, free: 173.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004079/1.642, allocations: 1.209 MB / 0.88 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001733/1.643, allocations: 144 kB / 0.8801 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005787/1.649, allocations: 297.4 kB / 0.8804 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002226/1.651, allocations: 0.5796 MB / 0.8809 GB, free: 171.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001222/1.653, allocations: 317.7 kB / 0.8812 GB, free: 171.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002826/1.655, allocations: 2.004 MB / 0.8832 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/1.656, allocations: 0 / 0.8832 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01672/1.672, allocations: 4.862 MB / 0.888 GB, free: 165 MB / 0.5606 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 (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.04019/1.712, allocations: 19.99 MB / 0.9075 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01664/1.729, allocations: 8.927 MB / 0.9162 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.729, allocations: 0 / 0.9162 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00923/1.738, allocations: 4.865 MB / 0.9209 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006777/1.745, allocations: 0.9948 MB / 0.9219 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05853/1.804, allocations: 96.06 MB / 1.016 GB, free: 30.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/1.807, allocations: 3.317 MB / 1.019 GB, free: 27.24 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00962/1.817, allocations: 1.674 MB / 1.021 GB, free: 25.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005324/1.822, allocations: 3.715 MB / 1.024 GB, free: 21.91 MB / 0.5606 GB Notification: Performance of SimCode: time 9.02e-07/1.822, allocations: 4 kB / 1.024 GB, free: 21.91 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6536/2.476, allocations: 207.4 MB / 1.227 GB, free: 204.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/2.476, allocations: 198.6 kB / 1.227 GB, free: 204.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.165/11.64, allocations: 2.953 kB / 1.227 GB, free: 204.7 MB / 0.5606 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: