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.001546/0.001546, 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.001675/0.001675, allocations: 197.6 kB / 16.14 MB, free: 6.703 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1975/0.1975, allocations: 15.31 MB / 305.3 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 59.91 kB / 369.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1244, allocations: 53.61 MB / 423.3 MB, free: 14.8 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.2497/0.3742, allocations: 53.33 MB / 476.6 MB, free: 29.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1217/0.4959, allocations: 120.4 MB / 0.583 GB, free: 2.336 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00808/0.504, allocations: 146.9 kB / 0.5832 GB, free: 2.191 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007173/0.5112, allocations: 2.178 MB / 0.5853 GB, free: 0 / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03741/0.5486, allocations: 8.808 MB / 0.5939 GB, free: 7.137 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3496/0.8983, allocations: 13.57 MB / 0.6072 GB, free: 10.01 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0133/0.9116, allocations: 10.08 MB / 0.617 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006537/0.9182, allocations: 4.746 MB / 0.6216 GB, free: 9.664 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008731/0.927, allocations: 5.237 MB / 0.6268 GB, free: 9.664 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.9386, allocations: 5.776 MB / 0.6324 GB, free: 9.102 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003941/0.9425, allocations: 0.5836 MB / 0.633 GB, free: 9.102 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.049/0.9916, allocations: 13.5 MB / 0.6462 GB, free: 9.102 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004363/0.996, allocations: 1.878 MB / 0.648 GB, free: 8.824 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009741/1.006, allocations: 4.275 MB / 0.6522 GB, free: 7.723 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05833/1.064, allocations: 22.73 MB / 0.6744 GB, free: 2.312 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/1.064, allocations: 0 / 0.6744 GB, free: 2.312 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.272e-06/1.064, allocations: 0 / 0.6744 GB, free: 2.312 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000303/1.064, allocations: 0 / 0.6744 GB, free: 2.312 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.02449/1.089, allocations: 10.45 MB / 0.6846 GB, free: 7.891 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.089, allocations: 10.69 kB / 0.6846 GB, free: 7.883 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01074/1.1, allocations: 1.904 MB / 0.6864 GB, free: 5.973 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007932/1.108, allocations: 3.451 MB / 0.6898 GB, free: 2.684 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006102/1.108, allocations: 0.5534 MB / 0.6903 GB, free: 2.125 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002126/1.11, allocations: 0.7343 MB / 0.6911 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01992/1.13, allocations: 9.181 MB / 0.7 GB, free: 8.102 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/1.131, allocations: 3.281 kB / 0.7 GB, free: 8.102 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009212/1.132, allocations: 288 kB / 0.7003 GB, free: 7.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001351/1.132, allocations: 176.8 kB / 0.7005 GB, free: 7.648 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02441/1.156, allocations: 12.66 MB / 0.7128 GB, free: 11 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.06296/1.219, allocations: 30.13 MB / 0.7423 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03637/1.255, allocations: 20.42 MB / 0.7622 GB, free: 7.664 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008596/1.264, allocations: 4.711 MB / 0.7668 GB, free: 2.945 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4634/1.728, allocations: 36.53 MB / 0.8025 GB, free: 222.6 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.819e-05/1.728, allocations: 92.69 kB / 0.8026 GB, free: 222.6 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00297/1.731, allocations: 0.58 MB / 0.8031 GB, free: 222.5 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 2.045e-05/1.731, allocations: 0 / 0.8031 GB, free: 222.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.1208/1.852, allocations: 35.49 MB / 0.8378 GB, free: 213.4 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/1.852, allocations: 132 kB / 0.8379 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00487/1.857, allocations: 3.372 MB / 0.8412 GB, free: 212.1 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001148/1.858, allocations: 149.5 kB / 0.8413 GB, free: 212 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001703/1.859, allocations: 3.155 MB / 0.8444 GB, free: 209.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002686/1.862, allocations: 2.574 MB / 0.8469 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002401/1.865, allocations: 1.698 MB / 0.8486 GB, free: 206.7 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.946e-05/1.865, allocations: 312.2 kB / 0.8489 GB, free: 206.4 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005129/1.87, allocations: 2.856 MB / 0.8517 GB, free: 205.3 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00702/1.877, allocations: 5.742 MB / 0.8573 GB, free: 200.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01522/1.892, allocations: 9.487 MB / 0.8666 GB, free: 194.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.294e-05/1.892, allocations: 27.78 kB / 0.8666 GB, free: 194.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02951/1.922, allocations: 10.7 MB / 0.877 GB, free: 189.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.738e-05/1.922, allocations: 48.94 kB / 0.8771 GB, free: 189.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.244e-05/1.922, allocations: 90.16 kB / 0.8772 GB, free: 189.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009151/1.931, allocations: 1.809 MB / 0.8789 GB, free: 189.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01012/1.941, allocations: 2.319 MB / 0.8812 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01609/1.957, allocations: 11.78 MB / 0.8927 GB, free: 179.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007956/1.965, allocations: 465.2 kB / 0.8931 GB, free: 179.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001981/1.967, allocations: 0.5174 MB / 0.8937 GB, free: 178.7 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.004666/1.972, allocations: 1.205 MB / 0.8948 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002051/1.974, allocations: 0.5709 MB / 0.8954 GB, free: 176.9 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02484/1.999, allocations: 10.14 MB / 0.9053 GB, free: 168.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-05/1.999, allocations: 76 kB / 0.9054 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.648e-05/1.999, allocations: 8 kB / 0.9054 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002297/1.999, allocations: 38.81 kB / 0.9054 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03728/2.037, allocations: 16.31 MB / 0.9213 GB, free: 154.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-05/2.037, allocations: 4 kB / 0.9213 GB, free: 154.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008338/2.045, allocations: 1.527 MB / 0.9228 GB, free: 153.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008607/2.054, allocations: 1.638 MB / 0.9244 GB, free: 151.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001703/2.055, allocations: 259.9 kB / 0.9247 GB, free: 151.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/2.07, allocations: 11.06 MB / 0.9355 GB, free: 139.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/2.07, allocations: 7.938 kB / 0.9355 GB, free: 139.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02761/2.097, allocations: 12.93 MB / 0.9481 GB, free: 126.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004403/2.102, allocations: 1.301 MB / 0.9494 GB, free: 125.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00176/2.103, allocations: 152 kB / 0.9495 GB, free: 124.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00494/2.108, allocations: 298 kB / 0.9498 GB, free: 124.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001334/2.11, allocations: 0.5756 MB / 0.9504 GB, free: 124 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007541/2.111, allocations: 311.9 kB / 0.9507 GB, free: 123.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00323/2.114, allocations: 2.039 MB / 0.9527 GB, free: 121.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.5e-07/2.114, allocations: 0 / 0.9527 GB, free: 121.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01881/2.133, allocations: 5.004 MB / 0.9575 GB, free: 117.3 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.01477/2.147, allocations: 5.545 MB / 0.963 GB, free: 113 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01636/2.164, allocations: 8.983 MB / 0.9717 GB, free: 104 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.164, allocations: 4 kB / 0.9717 GB, free: 104 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008002/2.172, allocations: 4.89 MB / 0.9765 GB, free: 99 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007099/2.179, allocations: 1.095 MB / 0.9776 GB, free: 97.92 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02189/2.201, allocations: 15.94 MB / 0.9932 GB, free: 81.92 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/2.203, allocations: 3.175 MB / 0.9963 GB, free: 78.71 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008089/2.211, allocations: 1.672 MB / 0.9979 GB, free: 77.14 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/2.214, allocations: 1.139 MB / 0.999 GB, free: 76.01 MB / 0.5763 GB Notification: Performance of SimCode: time 1.663e-06/2.214, allocations: 0 / 0.999 GB, free: 76.01 MB / 0.5763 GB Notification: Performance of Templates: time 0.4459/2.66, allocations: 161.8 MB / 1.157 GB, free: 167.9 MB / 0.5763 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 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)