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.005644/0.005644, allocations: 99.53 kB / 15.73 MB, free: 5.996 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.001194/0.001194, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07704/0.07704, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 64.12 kB / 424.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09277, allocations: 53.61 MB / 478.3 MB, free: 6.25 MB / 350.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.4565/0.5493, allocations: 49.67 MB / 0.5156 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1221/0.6715, allocations: 120.7 MB / 0.6336 GB, free: 4.109 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005678/0.6772, allocations: 79.56 kB / 0.6336 GB, free: 4.031 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007801/0.685, allocations: 2.389 MB / 0.636 GB, free: 1.625 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03374/0.7188, allocations: 10.11 MB / 0.6458 GB, free: 7.445 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04563/0.7645, allocations: 15.48 MB / 0.661 GB, free: 7.871 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.01712/0.7816, allocations: 10.54 MB / 0.6712 GB, free: 13.29 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01059/0.7923, allocations: 5.506 MB / 0.6766 GB, free: 7.711 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01024/0.8026, allocations: 5.343 MB / 0.6818 GB, free: 2.355 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01029/0.8129, allocations: 5.884 MB / 0.6876 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.003663/0.8166, allocations: 0.8828 MB / 0.6884 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04965/0.8663, allocations: 13.73 MB / 0.7019 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.005799/0.8721, allocations: 2.119 MB / 0.7039 GB, free: 11.69 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.009448/0.8816, allocations: 4.543 MB / 0.7084 GB, free: 7.129 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.313/1.195, allocations: 24.25 MB / 0.732 GB, free: 50.06 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/1.195, allocations: 0.5625 kB / 0.732 GB, free: 50.06 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.513e-06/1.195, allocations: 0 / 0.732 GB, free: 50.06 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004178/1.195, allocations: 2.094 kB / 0.732 GB, free: 50.06 MB / 0.545 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.03205/1.227, allocations: 10.43 MB / 0.7422 GB, free: 45.92 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/1.227, allocations: 9.438 kB / 0.7422 GB, free: 45.92 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002009/1.229, allocations: 0.909 MB / 0.7431 GB, free: 45.84 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/1.24, allocations: 1.912 MB / 0.745 GB, free: 45.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007063/1.247, allocations: 3.548 MB / 0.7485 GB, free: 44.58 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003319/1.247, allocations: 0.5546 MB / 0.749 GB, free: 44.53 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001731/1.249, allocations: 0.733 MB / 0.7497 GB, free: 44.51 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/1.263, allocations: 9.181 MB / 0.7587 GB, free: 43.97 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/1.263, allocations: 13.02 kB / 0.7587 GB, free: 43.97 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007758/1.264, allocations: 283.7 kB / 0.759 GB, free: 43.97 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-05/1.264, allocations: 175.7 kB / 0.7591 GB, free: 43.97 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01799/1.282, allocations: 12.65 MB / 0.7715 GB, free: 43.91 MB / 0.545 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.05023/1.332, allocations: 30.1 MB / 0.8009 GB, free: 28.27 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03136/1.364, allocations: 20.42 MB / 0.8208 GB, free: 7.359 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008199/1.372, allocations: 4.712 MB / 0.8254 GB, free: 2.637 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06571/1.438, allocations: 36.45 MB / 0.861 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.188e-05/1.438, allocations: 91.12 kB / 0.8611 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003381/1.441, allocations: 0.5808 MB / 0.8617 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=581): time 1.814e-05/1.441, allocations: 0 / 0.8617 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of matching and sorting (n=757): time 0.1316/1.573, allocations: 35.52 MB / 0.8964 GB, free: 6.648 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/1.573, allocations: 133.3 kB / 0.8965 GB, free: 6.504 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008412/1.581, allocations: 3.382 MB / 0.8998 GB, free: 3.121 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001804/1.583, allocations: 149.7 kB / 0.8999 GB, free: 2.969 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.003449/1.587, allocations: 3.141 MB / 0.903 GB, free: 15.81 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.004826/1.592, allocations: 2.59 MB / 0.9055 GB, free: 13.25 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006424/1.598, allocations: 1.698 MB / 0.9072 GB, free: 11.54 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 0.0001207/1.598, allocations: 305.1 kB / 0.9075 GB, free: 11.23 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006312/1.605, allocations: 2.863 MB / 0.9103 GB, free: 8.367 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008666/1.613, allocations: 5.736 MB / 0.9159 GB, free: 1.473 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01688/1.63, allocations: 9.491 MB / 0.9251 GB, free: 7.117 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.374e-05/1.63, allocations: 29.97 kB / 0.9252 GB, free: 7.09 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02999/1.66, allocations: 10.69 MB / 0.9356 GB, free: 12.89 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/1.66, allocations: 44 kB / 0.9357 GB, free: 12.85 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001614/1.661, allocations: 97.98 kB / 0.9357 GB, free: 12.76 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009528/1.67, allocations: 1.816 MB / 0.9375 GB, free: 10.93 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01046/1.681, allocations: 2.324 MB / 0.9398 GB, free: 8.754 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.238/1.919, allocations: 12.79 MB / 0.9523 GB, free: 285.7 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006986/1.926, allocations: 292.8 kB / 0.9526 GB, free: 285.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002096/1.928, allocations: 0.5165 MB / 0.9531 GB, free: 285.7 MB / 0.67 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.003897/1.932, allocations: 1.203 MB / 0.9542 GB, free: 285.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001769/1.934, allocations: 0.5747 MB / 0.9548 GB, free: 285.6 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02459/1.958, allocations: 10.13 MB / 0.9647 GB, free: 283.4 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.452e-05/1.958, allocations: 81.72 kB / 0.9648 GB, free: 283.4 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/1.958, allocations: 3.875 kB / 0.9648 GB, free: 283.4 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002222/1.959, allocations: 44.86 kB / 0.9648 GB, free: 283.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03444/1.993, allocations: 16.33 MB / 0.9808 GB, free: 276.7 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-05/1.993, allocations: 3.969 kB / 0.9808 GB, free: 276.7 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008443/2.002, allocations: 1.519 MB / 0.9823 GB, free: 276.6 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00858/2.01, allocations: 1.602 MB / 0.9838 GB, free: 276.3 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001808/2.012, allocations: 265.8 kB / 0.9841 GB, free: 276.2 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/2.027, allocations: 12.07 MB / 0.9959 GB, free: 266.2 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/2.027, allocations: 7.531 kB / 0.9959 GB, free: 266.2 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02993/2.057, allocations: 12.95 MB / 1.009 GB, free: 260.7 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004101/2.061, allocations: 1.297 MB / 1.01 GB, free: 259.6 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002409/2.063, allocations: 152 kB / 1.01 GB, free: 259.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005061/2.068, allocations: 152 kB / 1.01 GB, free: 259.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001922/2.07, allocations: 0.5766 MB / 1.011 GB, free: 258.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001431/2.072, allocations: 318.5 kB / 1.011 GB, free: 258.4 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003797/2.075, allocations: 2.039 MB / 1.013 GB, free: 256.3 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.11e-07/2.076, allocations: 0 / 1.013 GB, free: 256.3 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01859/2.094, allocations: 5.035 MB / 1.018 GB, free: 251.9 MB / 0.67 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.04169/2.136, allocations: 18.96 MB / 1.036 GB, free: 234 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01732/2.153, allocations: 9.004 MB / 1.045 GB, free: 225 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/2.153, allocations: 0 / 1.045 GB, free: 225 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.008752/2.162, allocations: 4.899 MB / 1.05 GB, free: 220.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008298/2.17, allocations: 1.196 MB / 1.051 GB, free: 219 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1173/2.288, allocations: 59.79 MB / 1.11 GB, free: 155.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003963/2.292, allocations: 3.176 MB / 1.113 GB, free: 152.1 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.008283/2.3, allocations: 1.674 MB / 1.114 GB, free: 150.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006367/2.306, allocations: 3.722 MB / 1.118 GB, free: 146.8 MB / 0.67 GB Notification: Performance of SimCode: time 9.32e-07/2.306, allocations: 0 / 1.118 GB, free: 146.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5361/2.843, allocations: 218.8 MB / 1.332 GB, free: 231.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 42.98/45.82, allocations: 15.98 kB / 1.332 GB, free: 231.3 MB / 0.67 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)