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.001172/0.001172, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001289/0.001289, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.231/1.231, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1769/0.1769, allocations: 15.31 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 59.91 kB / 369.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08707, allocations: 53.61 MB / 423.4 MB, free: 14.68 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.1832/0.2703, allocations: 53.97 MB / 477.3 MB, free: 29.15 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1097/0.38, allocations: 120.4 MB / 0.5838 GB, free: 1.594 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005633/0.3857, allocations: 154.9 kB / 0.5839 GB, free: 1.441 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007024/0.3927, allocations: 2.178 MB / 0.5861 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02568/0.4184, allocations: 8.819 MB / 0.5947 GB, free: 6.375 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2243/0.6427, allocations: 13.57 MB / 0.6079 GB, free: 9.953 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.6536, allocations: 10.07 MB / 0.6178 GB, free: 9.918 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005043/0.6587, allocations: 4.748 MB / 0.6224 GB, free: 9.605 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008133/0.6668, allocations: 5.242 MB / 0.6275 GB, free: 9.605 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0109/0.6778, allocations: 5.773 MB / 0.6331 GB, free: 9.039 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003907/0.6817, allocations: 0.5841 MB / 0.6337 GB, free: 9.039 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03803/0.7197, allocations: 13.5 MB / 0.6469 GB, free: 9.039 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003546/0.7233, allocations: 1.875 MB / 0.6487 GB, free: 8.766 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007767/0.7311, allocations: 4.278 MB / 0.6529 GB, free: 7.664 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04349/0.7746, allocations: 22.72 MB / 0.6751 GB, free: 1.797 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.7746, allocations: 0 / 0.6751 GB, free: 1.797 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7747, allocations: 0 / 0.6751 GB, free: 1.797 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002897/0.775, allocations: 3.188 kB / 0.6751 GB, free: 1.797 MB / 462.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.02248/0.7974, allocations: 10.44 MB / 0.6853 GB, free: 7.383 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.7975, allocations: 12.03 kB / 0.6853 GB, free: 7.371 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001083/0.7986, allocations: 0.9072 MB / 0.6862 GB, free: 6.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009021/0.8076, allocations: 1.906 MB / 0.6881 GB, free: 4.547 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005466/0.8131, allocations: 3.455 MB / 0.6914 GB, free: 1.258 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003725/0.8135, allocations: 0.5513 MB / 0.692 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.8147, allocations: 0.7384 MB / 0.6927 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.8288, allocations: 9.177 MB / 0.7016 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.804e-05/0.8289, allocations: 3 kB / 0.7017 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007046/0.8296, allocations: 288 kB / 0.7019 GB, free: 6.391 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000106/0.8298, allocations: 173.4 kB / 0.7021 GB, free: 6.223 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01973/0.8495, allocations: 12.66 MB / 0.7145 GB, free: 9.578 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.04971/0.8992, allocations: 30.14 MB / 0.7439 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03305/0.9323, allocations: 20.41 MB / 0.7638 GB, free: 6.238 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007703/0.94, allocations: 4.713 MB / 0.7684 GB, free: 1.512 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3808/1.321, allocations: 36.53 MB / 0.8041 GB, free: 223.7 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.543e-05/1.321, allocations: 93.28 kB / 0.8042 GB, free: 223.6 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002509/1.323, allocations: 0.5812 MB / 0.8047 GB, free: 223.6 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 1.417e-05/1.324, allocations: 0 / 0.8047 GB, free: 223.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.1114/1.435, allocations: 35.48 MB / 0.8394 GB, free: 213.6 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/1.435, allocations: 130.2 kB / 0.8395 GB, free: 213.5 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004154/1.439, allocations: 3.381 MB / 0.8428 GB, free: 212.3 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009735/1.44, allocations: 149.1 kB / 0.843 GB, free: 212.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001531/1.442, allocations: 3.149 MB / 0.846 GB, free: 209.7 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.00229/1.444, allocations: 2.586 MB / 0.8486 GB, free: 207.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002155/1.446, allocations: 1.697 MB / 0.8502 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.385e-05/1.446, allocations: 305.8 kB / 0.8505 GB, free: 206.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004393/1.451, allocations: 2.858 MB / 0.8533 GB, free: 205.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005712/1.456, allocations: 5.738 MB / 0.8589 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/1.468, allocations: 9.491 MB / 0.8682 GB, free: 194.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.882e-05/1.468, allocations: 27.97 kB / 0.8682 GB, free: 194.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02082/1.489, allocations: 10.7 MB / 0.8786 GB, free: 190.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 5.357e-05/1.489, allocations: 47.06 kB / 0.8787 GB, free: 190.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.088e-05/1.489, allocations: 91.12 kB / 0.8788 GB, free: 190.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008709/1.497, allocations: 1.815 MB / 0.8806 GB, free: 189.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009336/1.507, allocations: 2.319 MB / 0.8828 GB, free: 189.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/1.522, allocations: 11.78 MB / 0.8943 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006746/1.529, allocations: 466.1 kB / 0.8948 GB, free: 178 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/1.53, allocations: 0.5234 MB / 0.8953 GB, free: 177.5 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.00261/1.532, allocations: 1.199 MB / 0.8964 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/1.534, allocations: 0.5717 MB / 0.897 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02018/1.554, allocations: 10.13 MB / 0.9069 GB, free: 167.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/1.554, allocations: 80 kB / 0.907 GB, free: 167.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/1.554, allocations: 7 kB / 0.907 GB, free: 167.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-05/1.554, allocations: 39.28 kB / 0.907 GB, free: 167.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/1.58, allocations: 16.33 MB / 0.923 GB, free: 153.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/1.58, allocations: 6.094 kB / 0.923 GB, free: 153.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007193/1.588, allocations: 1.532 MB / 0.9245 GB, free: 151.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008097/1.596, allocations: 1.63 MB / 0.9261 GB, free: 149.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001063/1.597, allocations: 267.9 kB / 0.9263 GB, free: 149.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01265/1.609, allocations: 11.05 MB / 0.9371 GB, free: 138 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/1.609, allocations: 7.938 kB / 0.9371 GB, free: 138 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02096/1.63, allocations: 12.95 MB / 0.9498 GB, free: 124.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003205/1.634, allocations: 1.305 MB / 0.951 GB, free: 123.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.635, allocations: 148 kB / 0.9512 GB, free: 123.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003587/1.638, allocations: 291.5 kB / 0.9514 GB, free: 123.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009051/1.639, allocations: 0.5782 MB / 0.952 GB, free: 122.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005197/1.64, allocations: 311.9 kB / 0.9523 GB, free: 122.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002193/1.642, allocations: 2.043 MB / 0.9543 GB, free: 120.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.51e-07/1.642, allocations: 4 kB / 0.9543 GB, free: 120.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01266/1.655, allocations: 4.99 MB / 0.9592 GB, free: 115.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.03043/1.685, allocations: 18.98 MB / 0.9777 GB, free: 97.91 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01358/1.699, allocations: 8.982 MB / 0.9865 GB, free: 88.86 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.699, allocations: 4 kB / 0.9865 GB, free: 88.86 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006551/1.705, allocations: 4.875 MB / 0.9912 GB, free: 83.92 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00589/1.711, allocations: 1.102 MB / 0.9923 GB, free: 82.84 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.264/1.975, allocations: 79.02 MB / 1.069 GB, free: 206.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002023/1.977, allocations: 3.177 MB / 1.073 GB, free: 205.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007345/1.985, allocations: 1.679 MB / 1.074 GB, free: 205.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004098/1.989, allocations: 3.718 MB / 1.078 GB, free: 205.4 MB / 0.5763 GB Notification: Performance of SimCode: time 8.51e-07/1.989, allocations: 0 / 1.078 GB, free: 205.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2475/2.236, allocations: 213.7 MB / 1.287 GB, free: 43.82 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001351/2.237, allocations: 219.2 kB / 1.287 GB, free: 43.57 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.774/11.01, allocations: 0 / 1.287 GB, free: 43.57 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)