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: "" <> 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.007841/0.007841, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001719/0.00172, allocations: 198.6 kB / 16.68 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2125/0.2125, allocations: 15.32 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002581/0.002581, allocations: 67.89 kB / 424.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2902, allocations: 53.6 MB / 478.4 MB, free: 25.75 MB / 366.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.05337/0.3436, allocations: 49.77 MB / 0.5157 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4152/0.7588, allocations: 120.7 MB / 0.6337 GB, free: 13.23 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007075/0.7659, allocations: 76.09 kB / 0.6337 GB, free: 13.23 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006566/0.7725, allocations: 2.402 MB / 0.6361 GB, free: 13.21 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02584/0.7984, allocations: 10.18 MB / 0.646 GB, free: 13.09 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03926/0.8377, allocations: 15.61 MB / 0.6613 GB, free: 7.574 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01437/0.8521, allocations: 10.54 MB / 0.6715 GB, free: 4.422 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006971/0.8591, allocations: 5.504 MB / 0.6769 GB, free: 1.262 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00762/0.8667, allocations: 5.36 MB / 0.6822 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009672/0.8764, allocations: 5.879 MB / 0.6879 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003139/0.8796, allocations: 0.8828 MB / 0.6888 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04645/0.9261, allocations: 13.73 MB / 0.7022 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.003631/0.9298, allocations: 2.13 MB / 0.7042 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.008643/0.9384, allocations: 4.537 MB / 0.7087 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0667/1.005, allocations: 24.33 MB / 0.7324 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/1.005, allocations: 4 kB / 0.7324 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.184e-06/1.005, allocations: 3.938 kB / 0.7324 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.000518/1.006, allocations: 0 / 0.7324 GB, free: 15.98 MB / 0.5294 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.02891/1.035, allocations: 10.75 MB / 0.7429 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/1.035, allocations: 14.66 kB / 0.743 GB, free: 5.215 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002177/1.037, allocations: 0.9072 MB / 0.7438 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01092/1.048, allocations: 1.954 MB / 0.7457 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008955/1.057, allocations: 3.568 MB / 0.7492 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006043/1.057, allocations: 0.5578 MB / 0.7498 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003216/1.061, allocations: 0.7385 MB / 0.7505 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02305/1.084, allocations: 9.174 MB / 0.7595 GB, free: 4.188 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/1.084, allocations: 7.938 kB / 0.7595 GB, free: 4.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0017/1.086, allocations: 288 kB / 0.7597 GB, free: 3.898 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/1.086, allocations: 174.7 kB / 0.7599 GB, free: 3.73 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02566/1.112, allocations: 12.66 MB / 0.7723 GB, free: 7.055 MB / 0.5606 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.06086/1.173, allocations: 30.15 MB / 0.8017 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0369/1.209, allocations: 20.43 MB / 0.8217 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008432/1.218, allocations: 4.712 MB / 0.8263 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4852/1.703, allocations: 36.48 MB / 0.8619 GB, free: 233.3 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/1.703, allocations: 94.05 kB / 0.862 GB, free: 233.2 MB / 0.6232 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002312/1.706, allocations: 0.5964 MB / 0.8626 GB, free: 233 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=581): time 1.489e-05/1.706, allocations: 1.062 kB / 0.8626 GB, free: 233 MB / 0.6232 GB Notification: Performance of matching and sorting (n=757): time 0.1146/1.82, allocations: 35.66 MB / 0.8974 GB, free: 219.4 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/1.82, allocations: 129.1 kB / 0.8975 GB, free: 219.4 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/1.824, allocations: 3.38 MB / 0.9008 GB, free: 217.6 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001278/1.826, allocations: 150.3 kB / 0.901 GB, free: 217.5 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001813/1.827, allocations: 3.254 MB / 0.9041 GB, free: 215 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002804/1.83, allocations: 2.711 MB / 0.9068 GB, free: 212.9 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002419/1.833, allocations: 1.703 MB / 0.9084 GB, free: 212 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 5.288e-05/1.833, allocations: 301.1 kB / 0.9087 GB, free: 211.7 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004521/1.837, allocations: 2.865 MB / 0.9115 GB, free: 209.4 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006245/1.844, allocations: 5.73 MB / 0.9171 GB, free: 202.4 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01304/1.857, allocations: 9.491 MB / 0.9264 GB, free: 191.8 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.53e-05/1.857, allocations: 28 kB / 0.9264 GB, free: 191.8 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02249/1.879, allocations: 10.74 MB / 0.9369 GB, free: 181.1 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 5.814e-05/1.879, allocations: 44 kB / 0.9369 GB, free: 181 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.317e-05/1.879, allocations: 88 kB / 0.937 GB, free: 181 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008091/1.887, allocations: 1.819 MB / 0.9388 GB, free: 179.1 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009392/1.897, allocations: 2.32 MB / 0.9411 GB, free: 176.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/1.912, allocations: 12.82 MB / 0.9536 GB, free: 163.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006292/1.918, allocations: 300 kB / 0.9539 GB, free: 163 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/1.919, allocations: 0.5193 MB / 0.9544 GB, free: 162.5 MB / 0.6232 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.002684/1.922, allocations: 1.199 MB / 0.9555 GB, free: 161.3 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.923, allocations: 0.6054 MB / 0.9561 GB, free: 160.7 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01984/1.943, allocations: 10.12 MB / 0.966 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.61e-05/1.943, allocations: 80 kB / 0.9661 GB, free: 150.6 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/1.943, allocations: 6.625 kB / 0.9661 GB, free: 150.6 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/1.943, allocations: 45.33 kB / 0.9661 GB, free: 150.6 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03009/1.973, allocations: 16.32 MB / 0.9821 GB, free: 134.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.543e-05/1.973, allocations: 7.281 kB / 0.9821 GB, free: 134.3 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007294/1.981, allocations: 1.53 MB / 0.9836 GB, free: 132.7 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007718/1.988, allocations: 1.602 MB / 0.9851 GB, free: 131.1 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001105/1.99, allocations: 267.8 kB / 0.9854 GB, free: 130.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01297/2.003, allocations: 12.08 MB / 0.9972 GB, free: 118.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/2.003, allocations: 4 kB / 0.9972 GB, free: 118.1 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/2.024, allocations: 12.99 MB / 1.01 GB, free: 104.9 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/2.027, allocations: 1.328 MB / 1.011 GB, free: 103.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001003/2.028, allocations: 152 kB / 1.011 GB, free: 103.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003154/2.031, allocations: 152 kB / 1.011 GB, free: 103.3 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008088/2.032, allocations: 0.5757 MB / 1.012 GB, free: 102.7 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004771/2.033, allocations: 315.9 kB / 1.012 GB, free: 102.4 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.0022/2.035, allocations: 2.039 MB / 1.014 GB, free: 100.4 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.4e-07/2.035, allocations: 0 / 1.014 GB, free: 100.4 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01246/2.047, allocations: 5.106 MB / 1.019 GB, free: 95.48 MB / 0.6232 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.03496/2.082, allocations: 19.08 MB / 1.038 GB, free: 76.91 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01865/2.101, allocations: 9.003 MB / 1.047 GB, free: 67.84 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/2.101, allocations: 3.938 kB / 1.047 GB, free: 67.84 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.00724/2.108, allocations: 4.902 MB / 1.052 GB, free: 62.88 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005805/2.114, allocations: 1.19 MB / 1.053 GB, free: 61.76 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3636/2.478, allocations: 60.15 MB / 1.111 GB, free: 225.7 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004312/2.482, allocations: 3.18 MB / 1.115 GB, free: 224.9 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.008184/2.49, allocations: 1.667 MB / 1.116 GB, free: 224.8 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00662/2.497, allocations: 3.725 MB / 1.12 GB, free: 224.8 MB / 0.6232 GB Notification: Performance of SimCode: time 1.142e-06/2.497, allocations: 3.375 kB / 1.12 GB, free: 224.8 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2952/2.792, allocations: 215.5 MB / 1.33 GB, free: 45.32 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.37/47.16, allocations: 4 kB / 1.33 GB, free: 45.32 MB / 0.6232 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane_res.csv --start-time 0 --stop-time 1e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-12 Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane.fmu > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)