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.001119/0.001119, allocations: 108 kB / 15.61 MB, free: 152 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.001362/0.001362, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.159/1.159, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1579/0.1579, allocations: 15.31 MB / 305.7 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 59.91 kB / 370.4 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.07908, allocations: 53.62 MB / 424.1 MB, free: 14.2 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.175/0.2541, allocations: 49.7 MB / 473.8 MB, free: 31.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.09943/0.3535, allocations: 120.8 MB / 0.5806 GB, free: 5.055 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004082/0.3576, allocations: 71.62 kB / 0.5807 GB, free: 4.984 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005743/0.3634, allocations: 2.389 MB / 0.583 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02485/0.3883, allocations: 10.1 MB / 0.5929 GB, free: 8.406 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2022/0.5905, allocations: 15.49 MB / 0.608 GB, free: 11.45 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.009238/0.5998, allocations: 10.47 MB / 0.6182 GB, free: 11.41 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004723/0.6045, allocations: 5.514 MB / 0.6236 GB, free: 11.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005629/0.6102, allocations: 5.321 MB / 0.6288 GB, free: 11.02 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008767/0.6189, allocations: 5.878 MB / 0.6345 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002092/0.621, allocations: 0.887 MB / 0.6354 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0378/0.6588, allocations: 13.74 MB / 0.6488 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003357/0.6622, allocations: 2.124 MB / 0.6509 GB, free: 10.15 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005668/0.6679, allocations: 4.545 MB / 0.6553 GB, free: 8.238 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04213/0.7101, allocations: 24.09 MB / 0.6789 GB, free: 14.59 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.7101, allocations: 0 / 0.6789 GB, free: 14.59 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.7101, allocations: 0 / 0.6789 GB, free: 14.59 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0002213/0.7103, allocations: 6.031 kB / 0.6789 GB, free: 14.59 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.01927/0.7296, allocations: 10.45 MB / 0.6891 GB, free: 4.172 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.7297, allocations: 8.031 kB / 0.6891 GB, free: 4.164 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009652/0.7306, allocations: 0.9072 MB / 0.69 GB, free: 3.25 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008152/0.7388, allocations: 1.91 MB / 0.6918 GB, free: 1.336 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004832/0.7436, allocations: 3.447 MB / 0.6952 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/0.744, allocations: 0.5552 MB / 0.6957 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.7451, allocations: 0.7344 MB / 0.6964 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01312/0.7582, allocations: 9.175 MB / 0.7054 GB, free: 3.469 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.656e-05/0.7583, allocations: 7.281 kB / 0.7054 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006704/0.759, allocations: 288 kB / 0.7057 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.7591, allocations: 172 kB / 0.7059 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01747/0.7766, allocations: 12.66 MB / 0.7182 GB, free: 6.371 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.04106/0.8177, allocations: 30.25 MB / 0.7478 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02918/0.8469, allocations: 20.42 MB / 0.7677 GB, free: 2.895 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006385/0.8533, allocations: 4.709 MB / 0.7723 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.312/1.165, allocations: 36.47 MB / 0.8079 GB, free: 225.4 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/1.165, allocations: 89.09 kB / 0.808 GB, free: 225.4 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001638/1.167, allocations: 0.5802 MB / 0.8086 GB, free: 225.3 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 7.995e-06/1.167, allocations: 3.938 kB / 0.8086 GB, free: 225.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.09026/1.257, allocations: 35.51 MB / 0.8432 GB, free: 212.8 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/1.257, allocations: 130.7 kB / 0.8434 GB, free: 212.8 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003345/1.261, allocations: 3.376 MB / 0.8467 GB, free: 211.5 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0004081/1.261, allocations: 150.5 kB / 0.8468 GB, free: 211.4 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001273/1.262, allocations: 3.15 MB / 0.8499 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001467/1.264, allocations: 2.581 MB / 0.8524 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/1.266, allocations: 1.701 MB / 0.8541 GB, free: 206.2 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 2.993e-05/1.266, allocations: 301.7 kB / 0.8544 GB, free: 205.9 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003712/1.269, allocations: 2.857 MB / 0.8571 GB, free: 204.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004714/1.274, allocations: 5.741 MB / 0.8628 GB, free: 200.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009683/1.284, allocations: 9.489 MB / 0.872 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.59e-05/1.284, allocations: 30.12 kB / 0.872 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.01736/1.301, allocations: 10.7 MB / 0.8825 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 4.741e-05/1.301, allocations: 44.06 kB / 0.8825 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.358e-05/1.301, allocations: 89.88 kB / 0.8826 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007337/1.309, allocations: 1.819 MB / 0.8844 GB, free: 188.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007978/1.317, allocations: 2.317 MB / 0.8867 GB, free: 186.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/1.33, allocations: 12.79 MB / 0.8992 GB, free: 174 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005093/1.335, allocations: 292.6 kB / 0.8994 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006489/1.336, allocations: 0.5187 MB / 0.8999 GB, free: 173.2 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.002029/1.338, allocations: 1.203 MB / 0.9011 GB, free: 172 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/1.339, allocations: 0.5671 MB / 0.9017 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/1.356, allocations: 10.13 MB / 0.9116 GB, free: 162.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.212e-05/1.356, allocations: 76 kB / 0.9116 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/1.356, allocations: 8 kB / 0.9116 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.633e-05/1.356, allocations: 46.5 kB / 0.9117 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02254/1.379, allocations: 16.33 MB / 0.9276 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-05/1.379, allocations: 10.69 kB / 0.9276 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006037/1.385, allocations: 1.521 MB / 0.9291 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006635/1.392, allocations: 1.61 MB / 0.9307 GB, free: 146 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007278/1.392, allocations: 267.8 kB / 0.931 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/1.404, allocations: 12.06 MB / 0.9427 GB, free: 133 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.404, allocations: 7.938 kB / 0.9427 GB, free: 133 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/1.423, allocations: 12.95 MB / 0.9554 GB, free: 119.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002117/1.425, allocations: 1.301 MB / 0.9567 GB, free: 118.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007141/1.426, allocations: 144 kB / 0.9568 GB, free: 118.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/1.428, allocations: 152 kB / 0.9569 GB, free: 118.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007866/1.429, allocations: 0.5835 MB / 0.9575 GB, free: 117.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004194/1.429, allocations: 311.9 kB / 0.9578 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.001917/1.431, allocations: 2.039 MB / 0.9598 GB, free: 115.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.11e-07/1.431, allocations: 0 / 0.9598 GB, free: 115.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009504/1.441, allocations: 5.028 MB / 0.9647 GB, free: 110.9 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.02555/1.466, allocations: 18.97 MB / 0.9832 GB, free: 93.01 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.04646/1.513, allocations: 9.792 MB / 0.9928 GB, free: 83.25 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/1.513, allocations: 0 / 0.9928 GB, free: 83.25 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005773/1.519, allocations: 4.879 MB / 0.9976 GB, free: 78.31 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004618/1.523, allocations: 1.193 MB / 0.9987 GB, free: 77.19 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2213/1.745, allocations: 75.99 MB / 1.073 GB, free: 208.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/1.747, allocations: 3.177 MB / 1.076 GB, free: 207.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006658/1.753, allocations: 1.665 MB / 1.078 GB, free: 207.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003919/1.757, allocations: 3.733 MB / 1.081 GB, free: 207.6 MB / 0.5763 GB Notification: Performance of SimCode: time 7.51e-07/1.757, allocations: 0 / 1.081 GB, free: 207.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3816/2.139, allocations: 219 MB / 1.295 GB, free: 200 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.24/18.38, allocations: 3.656 kB / 1.295 GB, free: 200 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 & /home/hudson/saved_omc/OMSimulator/install/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)