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.005031/0.005032, allocations: 98.3 kB / 15.73 MB, free: 6.012 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.001324/0.001324, allocations: 193.3 kB / 16.67 MB, free: 5.949 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.439/1.439, 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.2025/0.2025, allocations: 15.33 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 59.91 kB / 424.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2357, 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.05138/0.2871, allocations: 50.28 MB / 0.5162 GB, free: 336 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.362/0.6491, allocations: 120.7 MB / 0.6342 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004694/0.6539, allocations: 74.06 kB / 0.6342 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006007/0.6599, allocations: 2.391 MB / 0.6366 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02583/0.6857, allocations: 10.1 MB / 0.6464 GB, free: 13.5 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03589/0.7217, allocations: 15.49 MB / 0.6616 GB, free: 7.84 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01294/0.7346, allocations: 10.53 MB / 0.6718 GB, free: 4.688 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007747/0.7424, allocations: 5.516 MB / 0.6772 GB, free: 1.609 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007639/0.7501, allocations: 5.338 MB / 0.6824 GB, free: 15.54 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01011/0.7602, allocations: 5.886 MB / 0.6882 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003186/0.7634, allocations: 0.8854 MB / 0.6891 GB, free: 11.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0458/0.8092, allocations: 13.73 MB / 0.7025 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.003619/0.8129, allocations: 2.121 MB / 0.7045 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.007522/0.8204, allocations: 4.537 MB / 0.709 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.05853/0.879, allocations: 24.34 MB / 0.7327 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.879, allocations: 0 / 0.7327 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.843e-06/0.879, allocations: 2.688 kB / 0.7327 GB, free: 224 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0003563/0.8794, allocations: 4 kB / 0.7327 GB, free: 220 kB / 0.5137 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.02447/0.9039, allocations: 10.75 MB / 0.7432 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.9039, allocations: 11.97 kB / 0.7432 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001286/0.9052, allocations: 0.9033 MB / 0.7441 GB, free: 4.535 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/0.9154, allocations: 1.959 MB / 0.746 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007488/0.9229, allocations: 3.571 MB / 0.7495 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005661/0.9235, allocations: 0.5513 MB / 0.7501 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001927/0.9254, allocations: 0.7411 MB / 0.7508 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01866/0.9441, allocations: 9.179 MB / 0.7598 GB, free: 4.418 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/0.9443, allocations: 3.938 kB / 0.7598 GB, free: 4.414 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008629/0.9451, allocations: 284 kB / 0.76 GB, free: 4.137 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/0.9453, allocations: 176 kB / 0.7602 GB, free: 3.965 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02221/0.9675, allocations: 12.66 MB / 0.7726 GB, free: 7.293 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.05558/1.023, allocations: 30.15 MB / 0.802 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03547/1.059, allocations: 20.42 MB / 0.8219 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008126/1.067, allocations: 4.712 MB / 0.8265 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4513/1.518, allocations: 36.48 MB / 0.8622 GB, free: 233.3 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/1.518, allocations: 98.69 kB / 0.8623 GB, free: 233.3 MB / 0.6232 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00206/1.52, allocations: 0.5965 MB / 0.8628 GB, free: 233.1 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=581): time 1.498e-05/1.52, allocations: 1.094 kB / 0.8628 GB, free: 233.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=757): time 0.1094/1.63, allocations: 35.65 MB / 0.8977 GB, free: 219.5 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/1.63, allocations: 134 kB / 0.8978 GB, free: 219.5 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003532/1.633, allocations: 3.382 MB / 0.9011 GB, free: 217.7 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.0009797/1.634, allocations: 153.8 kB / 0.9012 GB, free: 217.6 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.00145/1.636, allocations: 3.25 MB / 0.9044 GB, free: 215.1 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002351/1.638, allocations: 2.71 MB / 0.9071 GB, free: 213 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002125/1.64, allocations: 1.702 MB / 0.9087 GB, free: 212.1 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 4.716e-05/1.64, allocations: 303.8 kB / 0.909 GB, free: 211.8 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004112/1.644, allocations: 2.861 MB / 0.9118 GB, free: 209.4 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005271/1.65, allocations: 5.731 MB / 0.9174 GB, free: 202.5 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/1.661, allocations: 9.495 MB / 0.9267 GB, free: 191.9 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.465e-05/1.661, allocations: 26.44 kB / 0.9267 GB, free: 191.9 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02124/1.683, allocations: 10.74 MB / 0.9372 GB, free: 181.2 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/1.683, allocations: 44 kB / 0.9372 GB, free: 181.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.899e-05/1.683, allocations: 92 kB / 0.9373 GB, free: 181 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008489/1.691, allocations: 1.825 MB / 0.9391 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009664/1.701, allocations: 2.32 MB / 0.9414 GB, free: 176.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01453/1.715, allocations: 12.81 MB / 0.9539 GB, free: 163.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006024/1.722, allocations: 292 kB / 0.9541 GB, free: 163.1 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/1.723, allocations: 0.5155 MB / 0.9547 GB, free: 162.6 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.002802/1.725, allocations: 1.2 MB / 0.9558 GB, free: 161.4 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/1.727, allocations: 0.6099 MB / 0.9564 GB, free: 160.8 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01907/1.746, allocations: 10.12 MB / 0.9663 GB, free: 150.8 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/1.746, allocations: 76 kB / 0.9664 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/1.746, allocations: 4 kB / 0.9664 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.91e-05/1.746, allocations: 43.78 kB / 0.9664 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02718/1.773, allocations: 16.32 MB / 0.9824 GB, free: 134.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.291e-05/1.773, allocations: 2.688 kB / 0.9824 GB, free: 134.4 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007451/1.781, allocations: 1.53 MB / 0.9839 GB, free: 132.8 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00765/1.789, allocations: 1.615 MB / 0.9854 GB, free: 131.2 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00116/1.79, allocations: 267.8 kB / 0.9857 GB, free: 130.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.803, allocations: 12.08 MB / 0.9975 GB, free: 118.2 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.803, allocations: 4 kB / 0.9975 GB, free: 118.2 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02158/1.824, allocations: 12.99 MB / 1.01 GB, free: 105 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002977/1.827, allocations: 1.331 MB / 1.011 GB, free: 103.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001291/1.829, allocations: 148 kB / 1.012 GB, free: 103.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003736/1.832, allocations: 152 kB / 1.012 GB, free: 103.4 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009641/1.833, allocations: 0.5795 MB / 1.012 GB, free: 102.8 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005585/1.834, allocations: 319.9 kB / 1.013 GB, free: 102.5 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.002367/1.836, allocations: 2.039 MB / 1.015 GB, free: 100.5 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.2e-07/1.836, allocations: 0 / 1.015 GB, free: 100.5 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01219/1.848, allocations: 5.106 MB / 1.02 GB, free: 95.56 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.03157/1.88, allocations: 19.07 MB / 1.038 GB, free: 77 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01345/1.894, allocations: 9.007 MB / 1.047 GB, free: 67.93 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/1.894, allocations: 0 / 1.047 GB, free: 67.93 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.006902/1.901, allocations: 4.895 MB / 1.052 GB, free: 62.97 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005596/1.906, allocations: 1.198 MB / 1.053 GB, free: 61.85 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2884/2.195, allocations: 60.15 MB / 1.112 GB, free: 225.6 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/2.198, allocations: 3.177 MB / 1.115 GB, free: 224.8 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.006454/2.204, allocations: 1.668 MB / 1.116 GB, free: 224.7 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004536/2.209, allocations: 3.727 MB / 1.12 GB, free: 224.7 MB / 0.6232 GB Notification: Performance of SimCode: time 7.62e-07/2.209, allocations: 0 / 1.12 GB, free: 224.7 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2643/2.473, allocations: 215.5 MB / 1.331 GB, free: 45.12 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.17/45.64, allocations: 8.062 kB / 1.331 GB, free: 45.11 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 & /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)