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.001971/0.001971, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002453/0.002453, allocations: 192.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.884/2.884, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4791/0.4791, allocations: 15.32 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002372/0.002372, allocations: 63.89 kB / 370.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2396, allocations: 53.61 MB / 424.1 MB, free: 14.21 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.4552/0.6949, allocations: 49.68 MB / 473.7 MB, free: 31.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3248/1.02, allocations: 120.7 MB / 0.5805 GB, free: 5.113 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01208/1.032, allocations: 75.62 kB / 0.5806 GB, free: 5.039 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03205/1.064, allocations: 2.401 MB / 0.583 GB, free: 2.621 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.132/1.196, allocations: 10.09 MB / 0.5928 GB, free: 8.457 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.5495/1.746, allocations: 15.49 MB / 0.6079 GB, free: 11.3 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.02327/1.769, allocations: 10.47 MB / 0.6182 GB, free: 11.27 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01831/1.787, allocations: 5.508 MB / 0.6236 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01679/1.804, allocations: 5.326 MB / 0.6288 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03386/1.838, allocations: 5.88 MB / 0.6345 GB, free: 10.29 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00808/1.846, allocations: 0.8831 MB / 0.6354 GB, free: 10.29 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09496/1.941, allocations: 13.73 MB / 0.6488 GB, free: 10.29 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006605/1.948, allocations: 2.129 MB / 0.6508 GB, free: 10.01 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01392/1.962, allocations: 4.538 MB / 0.6553 GB, free: 8.105 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1097/2.072, allocations: 24.1 MB / 0.6788 GB, free: 14.54 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/2.072, allocations: 0 / 0.6788 GB, free: 14.54 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.675e-06/2.072, allocations: 0 / 0.6788 GB, free: 14.54 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005329/2.072, allocations: 2.625 kB / 0.6788 GB, free: 14.54 MB / 478.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.06733/2.14, allocations: 10.45 MB / 0.689 GB, free: 4.117 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.021e-05/2.14, allocations: 8.031 kB / 0.689 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009131/2.149, allocations: 0.9072 MB / 0.6899 GB, free: 3.195 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02811/2.177, allocations: 1.91 MB / 0.6918 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/2.197, allocations: 3.444 MB / 0.6951 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005297/2.202, allocations: 0.5582 MB / 0.6957 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005693/2.208, allocations: 0.7349 MB / 0.6964 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04954/2.257, allocations: 9.176 MB / 0.7054 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005027/2.258, allocations: 3 kB / 0.7054 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004026/2.262, allocations: 292 kB / 0.7057 GB, free: 3.129 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002674/2.262, allocations: 176 kB / 0.7058 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04808/2.311, allocations: 12.65 MB / 0.7182 GB, free: 6.32 MB / 0.4981 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.127/2.438, allocations: 30.26 MB / 0.7477 GB, free: 7.828 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07408/2.512, allocations: 20.42 MB / 0.7677 GB, free: 2.836 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0181/2.53, allocations: 4.706 MB / 0.7723 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8946/3.425, allocations: 36.47 MB / 0.8079 GB, free: 225.3 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001318/3.425, allocations: 93.41 kB / 0.808 GB, free: 225.3 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005822/3.431, allocations: 0.5789 MB / 0.8085 GB, free: 225.2 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 4.149e-05/3.431, allocations: 3.938 kB / 0.8085 GB, free: 225.2 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.2592/3.69, allocations: 35.51 MB / 0.8432 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/3.69, allocations: 131.4 kB / 0.8433 GB, free: 212.6 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00748/3.698, allocations: 3.374 MB / 0.8466 GB, free: 211.4 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001705/3.699, allocations: 150.8 kB / 0.8468 GB, free: 211.3 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003168/3.703, allocations: 3.151 MB / 0.8499 GB, free: 208.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.005443/3.708, allocations: 2.581 MB / 0.8524 GB, free: 206.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005093/3.713, allocations: 1.695 MB / 0.854 GB, free: 206 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.361e-05/3.713, allocations: 305.8 kB / 0.8543 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01058/3.724, allocations: 2.855 MB / 0.8571 GB, free: 204.6 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01412/3.738, allocations: 5.746 MB / 0.8627 GB, free: 200 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02543/3.764, allocations: 9.488 MB / 0.872 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/3.764, allocations: 25.75 kB / 0.872 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.06168/3.826, allocations: 10.7 MB / 0.8825 GB, free: 189.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.000343/3.826, allocations: 42.06 kB / 0.8825 GB, free: 189.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004388/3.826, allocations: 91.09 kB / 0.8826 GB, free: 189.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02177/3.848, allocations: 1.819 MB / 0.8844 GB, free: 188.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02115/3.87, allocations: 2.315 MB / 0.8866 GB, free: 186.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0309/3.9, allocations: 12.8 MB / 0.8991 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01302/3.914, allocations: 296 kB / 0.8994 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003093/3.917, allocations: 0.5118 MB / 0.8999 GB, free: 173.1 MB / 0.5763 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.007426/3.924, allocations: 1.207 MB / 0.9011 GB, free: 171.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003943/3.928, allocations: 0.5671 MB / 0.9016 GB, free: 171.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05698/3.985, allocations: 10.13 MB / 0.9115 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000181/3.986, allocations: 82.91 kB / 0.9116 GB, free: 162.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.855e-05/3.986, allocations: 6.625 kB / 0.9116 GB, free: 162.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003956/3.986, allocations: 42.75 kB / 0.9117 GB, free: 162.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07297/4.059, allocations: 16.34 MB / 0.9276 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001514/4.059, allocations: 4 kB / 0.9276 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01562/4.075, allocations: 1.521 MB / 0.9291 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0156/4.091, allocations: 1.61 MB / 0.9307 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002308/4.093, allocations: 267.8 kB / 0.9309 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02627/4.119, allocations: 12.07 MB / 0.9427 GB, free: 132.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-05/4.119, allocations: 4 kB / 0.9427 GB, free: 132.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0517/4.171, allocations: 12.94 MB / 0.9554 GB, free: 119.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00725/4.178, allocations: 1.297 MB / 0.9566 GB, free: 118.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003695/4.182, allocations: 148 kB / 0.9568 GB, free: 118.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008772/4.191, allocations: 152 kB / 0.9569 GB, free: 118.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00303/4.194, allocations: 0.5795 MB / 0.9575 GB, free: 117.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002199/4.196, allocations: 311.9 kB / 0.9578 GB, free: 117.3 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006539/4.203, allocations: 2.039 MB / 0.9598 GB, free: 115.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.603e-06/4.203, allocations: 0 / 0.9598 GB, free: 115.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.02587/4.229, allocations: 5.039 MB / 0.9647 GB, free: 110.8 MB / 0.5763 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.08516/4.314, allocations: 18.96 MB / 0.9832 GB, free: 92.97 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.1075/4.422, allocations: 9.787 MB / 0.9928 GB, free: 83.21 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/4.422, allocations: 0 / 0.9928 GB, free: 83.21 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01473/4.436, allocations: 4.882 MB / 0.9975 GB, free: 78.27 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01328/4.45, allocations: 1.191 MB / 0.9987 GB, free: 77.15 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5593/5.009, allocations: 76 MB / 1.073 GB, free: 208.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005344/5.015, allocations: 3.181 MB / 1.076 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01747/5.032, allocations: 1.662 MB / 1.078 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01033/5.043, allocations: 3.721 MB / 1.081 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of SimCode: time 1.503e-06/5.043, allocations: 0 / 1.081 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.135/6.178, allocations: 219 MB / 1.295 GB, free: 199.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.79/39.97, allocations: 10.47 kB / 1.295 GB, free: 199.9 MB / 0.5763 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)