Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane") translateModel(Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 239.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 105.8 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3927/0.3927, allocations: 36.66 MB / 376.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 71.89 kB / 446.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1382, allocations: 58.92 MB / 0.4935 GB, free: 0.832 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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(Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane): time 0.2866/0.4249, allocations: 51.47 MB / 0.5438 GB, free: 14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.1256/0.5505, allocations: 119.4 MB / 0.6604 GB, free: 15.51 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009313/0.5599, allocations: 150.9 kB / 0.6605 GB, free: 15.36 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009468/0.5694, allocations: 2.181 MB / 0.6626 GB, free: 13.17 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03149/0.6009, allocations: 8.52 MB / 0.6709 GB, free: 4.594 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3208/0.9218, allocations: 13.59 MB / 0.6842 GB, free: 9.094 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.01748/0.9393, allocations: 10.16 MB / 0.6941 GB, free: 9.062 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009372/0.9488, allocations: 4.744 MB / 0.6988 GB, free: 8.758 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01133/0.9601, allocations: 5.263 MB / 0.7039 GB, free: 8.758 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01513/0.9753, allocations: 5.768 MB / 0.7095 GB, free: 8.285 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00603/0.9814, allocations: 0.5828 MB / 0.7101 GB, free: 8.285 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06008/1.042, allocations: 13.08 MB / 0.7229 GB, free: 8.285 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006461/1.048, allocations: 1.869 MB / 0.7247 GB, free: 8.012 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01385/1.062, allocations: 4.279 MB / 0.7289 GB, free: 6.91 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.07765/1.14, allocations: 22.95 MB / 0.7513 GB, free: 424 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.747e-06/1.14, allocations: 0 / 0.7513 GB, free: 424 kB / 490.7 MB Notification: Performance of FrontEnd: time 2.796e-06/1.14, allocations: 3.984 kB / 0.7513 GB, free: 420 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005907/1.14, allocations: 0 / 0.7513 GB, free: 420 kB / 490.7 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.03618/1.177, allocations: 10.37 MB / 0.7614 GB, free: 6.066 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/1.177, allocations: 8.031 kB / 0.7614 GB, free: 6.059 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01238/1.189, allocations: 1.909 MB / 0.7633 GB, free: 4.148 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01085/1.2, allocations: 3.495 MB / 0.7667 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008586/1.201, allocations: 0.5551 MB / 0.7673 GB, free: 260 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003747/1.205, allocations: 0.731 MB / 0.768 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03094/1.235, allocations: 9.195 MB / 0.7769 GB, free: 6.219 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002581/1.236, allocations: 4 kB / 0.777 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002457/1.238, allocations: 284 kB / 0.7772 GB, free: 5.938 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/1.238, allocations: 172 kB / 0.7774 GB, free: 5.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02789/1.266, allocations: 12.67 MB / 0.7898 GB, free: 9.121 MB / 0.5261 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.07022/1.337, allocations: 30.23 MB / 0.8193 GB, free: 10.45 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03917/1.376, allocations: 20.41 MB / 0.8392 GB, free: 5.453 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009862/1.386, allocations: 4.721 MB / 0.8438 GB, free: 0.7227 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06745/1.453, allocations: 36.61 MB / 0.8796 GB, free: 8.484 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.446e-05/1.453, allocations: 95.06 kB / 0.8797 GB, free: 8.379 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00451/1.458, allocations: 0.5775 MB / 0.8802 GB, free: 7.801 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=581): time 2.994e-05/1.458, allocations: 0 / 0.8802 GB, free: 7.801 MB / 0.6198 GB Notification: Performance of matching and sorting (n=757): time 0.6247/2.083, allocations: 35.51 MB / 0.9149 GB, free: 241.5 MB / 0.6199 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/2.083, allocations: 135.8 kB / 0.915 GB, free: 241.5 MB / 0.6199 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005221/2.088, allocations: 3.376 MB / 0.9183 GB, free: 240.2 MB / 0.6199 GB Notification: Performance of collectPreVariables (initialization): time 0.0015/2.09, allocations: 147 kB / 0.9185 GB, free: 240.1 MB / 0.6199 GB Notification: Performance of collectInitialEqns (initialization): time 0.00209/2.092, allocations: 3.151 MB / 0.9215 GB, free: 237.6 MB / 0.6199 GB Notification: Performance of collectInitialBindings (initialization): time 0.003241/2.095, allocations: 2.582 MB / 0.9241 GB, free: 235.6 MB / 0.6199 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003877/2.099, allocations: 1.692 MB / 0.9257 GB, free: 234.9 MB / 0.6199 GB Notification: Performance of setup shared object (initialization): time 5.63e-05/2.099, allocations: 305 kB / 0.926 GB, free: 234.6 MB / 0.6199 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006129/2.105, allocations: 2.865 MB / 0.9288 GB, free: 233.4 MB / 0.6199 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00874/2.114, allocations: 5.738 MB / 0.9344 GB, free: 228.8 MB / 0.6199 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01529/2.129, allocations: 9.497 MB / 0.9437 GB, free: 222.1 MB / 0.6199 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002017/2.129, allocations: 27.69 kB / 0.9437 GB, free: 222.1 MB / 0.6199 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.03435/2.164, allocations: 10.71 MB / 0.9542 GB, free: 217.8 MB / 0.6199 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/2.164, allocations: 43.91 kB / 0.9542 GB, free: 217.8 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/2.164, allocations: 91.39 kB / 0.9543 GB, free: 217.8 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008961/2.173, allocations: 1.819 MB / 0.9561 GB, free: 217.5 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01102/2.184, allocations: 2.338 MB / 0.9584 GB, free: 217.2 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.017/2.201, allocations: 11.78 MB / 0.9699 GB, free: 207.9 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008479/2.21, allocations: 473.3 kB / 0.9703 GB, free: 207.7 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002442/2.212, allocations: 0.512 MB / 0.9708 GB, free: 207.6 MB / 0.6199 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.007022/2.219, allocations: 1.209 MB / 0.972 GB, free: 206.8 MB / 0.6199 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003157/2.222, allocations: 0.5729 MB / 0.9726 GB, free: 206.4 MB / 0.6199 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03013/2.253, allocations: 10.15 MB / 0.9825 GB, free: 201.3 MB / 0.6199 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.495e-05/2.253, allocations: 83.38 kB / 0.9825 GB, free: 201.2 MB / 0.6199 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.793e-05/2.253, allocations: 6.688 kB / 0.9825 GB, free: 201.2 MB / 0.6199 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002384/2.253, allocations: 39.94 kB / 0.9826 GB, free: 201.2 MB / 0.6199 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0434/2.296, allocations: 16.35 MB / 0.9986 GB, free: 187.8 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.696e-05/2.297, allocations: 4 kB / 0.9986 GB, free: 187.8 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008481/2.305, allocations: 1.548 MB / 1 GB, free: 186.3 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008272/2.313, allocations: 1.645 MB / 1.002 GB, free: 184.7 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001881/2.315, allocations: 263.9 kB / 1.002 GB, free: 184.4 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/2.329, allocations: 11.05 MB / 1.013 GB, free: 172.7 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/2.329, allocations: 4 kB / 1.013 GB, free: 172.7 MB / 0.6199 GB Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.114/2.443, allocations: 44.73 MB / 1.056 GB, free: 127.3 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004667/2.448, allocations: 1.314 MB / 1.058 GB, free: 125.9 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002613/2.451, allocations: 144 kB / 1.058 GB, free: 125.8 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005897/2.457, allocations: 298.2 kB / 1.058 GB, free: 125.5 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001985/2.459, allocations: 0.5795 MB / 1.059 GB, free: 124.9 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001465/2.46, allocations: 319.9 kB / 1.059 GB, free: 124.6 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.003652/2.464, allocations: 2.039 MB / 1.061 GB, free: 122.6 MB / 0.6199 GB Notification: Performance of sort global known variables: time 5.21e-07/2.464, allocations: 0 / 1.061 GB, free: 122.6 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.02817/2.492, allocations: 5.76 MB / 1.067 GB, free: 117.4 MB / 0.6199 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.01539/2.508, allocations: 5.504 MB / 1.072 GB, free: 113.1 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.01913/2.527, allocations: 8.983 MB / 1.081 GB, free: 104.1 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/2.527, allocations: 0 / 1.081 GB, free: 104.1 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.009968/2.537, allocations: 4.89 MB / 1.086 GB, free: 99.15 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009349/2.546, allocations: 1.093 MB / 1.087 GB, free: 98.07 MB / 0.6199 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03602/2.582, allocations: 20.23 MB / 1.106 GB, free: 77.72 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006393/2.589, allocations: 3.4 MB / 1.11 GB, free: 74.28 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.01245/2.601, allocations: 1.78 MB / 1.111 GB, free: 72.59 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005154/2.606, allocations: 1.173 MB / 1.113 GB, free: 71.42 MB / 0.6199 GB Notification: Performance of SimCode: time 1.243e-06/2.606, allocations: 0 / 1.113 GB, free: 71.42 MB / 0.6199 GB Notification: Performance of Templates: time 0.5669/3.173, allocations: 178.9 MB / 1.287 GB, free: 163.9 MB / 0.6199 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)