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: translateModel(Chemical.Examples.AcidBase.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane") translateModel(Chemical.Examples.AcidBase.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001601/0.001601, allocations: 191 kB / 17.29 MB, free: 5.516 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08101/0.08101, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 60.58 kB / 371.7 MB, free: 50.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08328/0.08462, allocations: 53.62 MB / 425.4 MB, free: 13.3 MB / 302.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.05381/0.1385, allocations: 49.47 MB / 474.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3118/0.4503, allocations: 120.8 MB / 0.5816 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006997/0.4574, allocations: 71.38 kB / 0.5817 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00689/0.4643, allocations: 2.391 MB / 0.584 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02826/0.4926, allocations: 10.1 MB / 0.5939 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04494/0.5375, allocations: 15.48 MB / 0.609 GB, free: 112 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01455/0.5521, allocations: 10.53 MB / 0.6193 GB, free: 5.543 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006991/0.5591, allocations: 5.514 MB / 0.6247 GB, free: 4 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008306/0.5675, allocations: 5.332 MB / 0.6299 GB, free: 10.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01068/0.5782, allocations: 5.876 MB / 0.6356 GB, free: 4.762 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003241/0.5815, allocations: 0.8828 MB / 0.6365 GB, free: 3.879 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0474/0.6289, allocations: 13.74 MB / 0.6499 GB, free: 6.121 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003452/0.6324, allocations: 2.119 MB / 0.652 GB, free: 3.996 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007415/0.6398, allocations: 4.543 MB / 0.6564 GB, free: 15.43 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06614/0.706, allocations: 24.17 MB / 0.68 GB, free: 7.176 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.706, allocations: 0 / 0.68 GB, free: 7.176 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.706, allocations: 0 / 0.68 GB, free: 7.176 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.000371/0.7064, allocations: 4 kB / 0.68 GB, free: 7.172 MB / 494.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.394/1.1, allocations: 10.45 MB / 0.6902 GB, free: 162.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/1.1, allocations: 9 kB / 0.6903 GB, free: 162.8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009929/1.11, allocations: 1.91 MB / 0.6921 GB, free: 162.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008622/1.119, allocations: 3.551 MB / 0.6956 GB, free: 160.9 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005862/1.12, allocations: 0.5514 MB / 0.6961 GB, free: 160.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002744/1.122, allocations: 0.7334 MB / 0.6968 GB, free: 160.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02305/1.145, allocations: 9.182 MB / 0.7058 GB, free: 156.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002586/1.146, allocations: 11.66 kB / 0.7058 GB, free: 156.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/1.147, allocations: 284.5 kB / 0.7061 GB, free: 156.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/1.148, allocations: 172.6 kB / 0.7063 GB, free: 156.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02273/1.17, allocations: 12.66 MB / 0.7186 GB, free: 151.9 MB / 494.1 MB 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.05548/1.226, allocations: 30.1 MB / 0.748 GB, free: 125.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02926/1.255, allocations: 20.41 MB / 0.7679 GB, free: 104.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007033/1.262, allocations: 4.712 MB / 0.7725 GB, free: 99.71 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04675/1.309, allocations: 36.44 MB / 0.8081 GB, free: 59.72 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/1.309, allocations: 91.12 kB / 0.8082 GB, free: 59.62 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003042/1.312, allocations: 0.5775 MB / 0.8088 GB, free: 59.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=581): time 3.216e-05/1.312, allocations: 5.875 kB / 0.8088 GB, free: 59.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=757): time 0.1048/1.417, allocations: 35.49 MB / 0.8434 GB, free: 23.62 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.764e-05/1.417, allocations: 125.3 kB / 0.8436 GB, free: 23.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00483/1.422, allocations: 3.38 MB / 0.8469 GB, free: 20.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001665/1.424, allocations: 145.7 kB / 0.847 GB, free: 19.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/1.425, allocations: 3.152 MB / 0.8501 GB, free: 16.79 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00272/1.428, allocations: 2.589 MB / 0.8526 GB, free: 14.22 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002397/1.43, allocations: 1.698 MB / 0.8543 GB, free: 12.51 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.445e-05/1.43, allocations: 305.1 kB / 0.8546 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004341/1.435, allocations: 2.861 MB / 0.8574 GB, free: 9.344 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006022/1.441, allocations: 5.738 MB / 0.863 GB, free: 2.328 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2441/1.685, allocations: 9.481 MB / 0.8722 GB, free: 143.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.665e-05/1.685, allocations: 29.31 kB / 0.8722 GB, free: 143.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02901/1.714, allocations: 10.69 MB / 0.8827 GB, free: 140.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-05/1.714, allocations: 47.53 kB / 0.8827 GB, free: 140.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/1.714, allocations: 91.48 kB / 0.8828 GB, free: 140.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008917/1.723, allocations: 1.818 MB / 0.8846 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009982/1.733, allocations: 2.317 MB / 0.8869 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/1.75, allocations: 12.78 MB / 0.8993 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007685/1.757, allocations: 297.6 kB / 0.8996 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002109/1.759, allocations: 0.5134 MB / 0.9001 GB, free: 129.2 MB / 494.1 MB 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.003966/1.763, allocations: 1.209 MB / 0.9013 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00187/1.765, allocations: 0.5689 MB / 0.9019 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0225/1.788, allocations: 10.13 MB / 0.9118 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.634e-05/1.788, allocations: 79.22 kB / 0.9118 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.69e-05/1.788, allocations: 8.344 kB / 0.9118 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001634/1.788, allocations: 46.14 kB / 0.9119 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03507/1.823, allocations: 16.32 MB / 0.9278 GB, free: 115.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-05/1.823, allocations: 7.938 kB / 0.9278 GB, free: 115.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007999/1.831, allocations: 1.528 MB / 0.9293 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007978/1.839, allocations: 1.603 MB / 0.9309 GB, free: 112.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001735/1.841, allocations: 263.9 kB / 0.9311 GB, free: 112.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/1.855, allocations: 12.06 MB / 0.9429 GB, free: 99.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.855, allocations: 7.75 kB / 0.9429 GB, free: 99.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02394/1.879, allocations: 12.94 MB / 0.9556 GB, free: 86.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00335/1.882, allocations: 1.3 MB / 0.9568 GB, free: 85.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.884, allocations: 151.9 kB / 0.957 GB, free: 85.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003338/1.887, allocations: 152 kB / 0.9571 GB, free: 84.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009191/1.888, allocations: 0.5795 MB / 0.9577 GB, free: 84.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005593/1.888, allocations: 311.9 kB / 0.958 GB, free: 84.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002468/1.891, allocations: 2.039 MB / 0.96 GB, free: 81.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.891, allocations: 3.938 kB / 0.96 GB, free: 81.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01303/1.904, allocations: 5.036 MB / 0.9649 GB, free: 77.56 MB / 494.1 MB 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.01273/1.917, allocations: 5.543 MB / 0.9703 GB, free: 73.29 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01566/1.932, allocations: 8.994 MB / 0.9791 GB, free: 64.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.932, allocations: 8 kB / 0.9791 GB, free: 64.22 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008014/1.94, allocations: 4.883 MB / 0.9839 GB, free: 59.28 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007218/1.948, allocations: 1.187 MB / 0.985 GB, free: 58.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.966, allocations: 12.68 MB / 0.9974 GB, free: 45.44 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00198/1.968, allocations: 3.179 MB / 1.001 GB, free: 42.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005975/1.974, allocations: 1.676 MB / 1.002 GB, free: 40.64 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002427/1.976, allocations: 1.148 MB / 1.003 GB, free: 39.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.262e-06/1.976, allocations: 0 / 1.003 GB, free: 39.5 MB / 494.1 MB Notification: Performance of Templates: time 0.4331/2.41, allocations: 161.2 MB / 1.161 GB, free: 67.68 MB / 0.4982 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.makefile (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 & ./Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)