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.00117/0.00117, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001495, allocations: 190.8 kB / 16.66 MB, free: 6.582 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2376/0.2376, allocations: 15.32 MB / 305.8 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.89 kB / 425.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2733, allocations: 53.61 MB / 478.8 MB, free: 25.75 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.05003/0.3234, allocations: 49.79 MB / 0.5162 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3938/0.7172, allocations: 120.7 MB / 0.6341 GB, free: 13.39 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008906/0.7262, allocations: 74.78 kB / 0.6342 GB, free: 13.39 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008978/0.7352, allocations: 2.386 MB / 0.6365 GB, free: 13.38 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03136/0.7666, allocations: 10.1 MB / 0.6464 GB, free: 13.25 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03927/0.8059, allocations: 15.49 MB / 0.6615 GB, free: 7.711 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.02414/0.83, allocations: 10.53 MB / 0.6718 GB, free: 4.562 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009933/0.84, allocations: 5.504 MB / 0.6772 GB, free: 1.539 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01022/0.8503, allocations: 5.345 MB / 0.6824 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01224/0.8626, allocations: 5.879 MB / 0.6882 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005103/0.8677, allocations: 0.8905 MB / 0.689 GB, free: 11.08 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.053/0.9207, allocations: 13.73 MB / 0.7024 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.004452/0.9252, allocations: 2.119 MB / 0.7045 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.01158/0.9368, allocations: 4.541 MB / 0.7089 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.06879/1.006, allocations: 24.33 MB / 0.7327 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.556e-05/1.006, allocations: 0 / 0.7327 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd: time 4.649e-06/1.006, allocations: 0 / 0.7327 GB, free: 220 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0009484/1.007, allocations: 0 / 0.7327 GB, free: 220 kB / 0.5137 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.03242/1.039, allocations: 10.76 MB / 0.7432 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/1.039, allocations: 12.03 kB / 0.7432 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01098/1.05, allocations: 1.95 MB / 0.7451 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007999/1.058, allocations: 3.576 MB / 0.7486 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006667/1.059, allocations: 0.5513 MB / 0.7492 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002481/1.061, allocations: 0.7383 MB / 0.7499 GB, free: 14.64 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02591/1.087, allocations: 9.178 MB / 0.7588 GB, free: 5.332 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004299/1.088, allocations: 3.938 kB / 0.7589 GB, free: 5.328 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002696/1.091, allocations: 290.7 kB / 0.7591 GB, free: 5.047 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001959/1.091, allocations: 172 kB / 0.7593 GB, free: 4.879 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02776/1.119, allocations: 12.65 MB / 0.7716 GB, free: 8.207 MB / 0.5606 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.06339/1.182, allocations: 30.15 MB / 0.8011 GB, free: 9.52 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03597/1.218, allocations: 20.41 MB / 0.821 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009304/1.227, allocations: 4.714 MB / 0.8256 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5743/1.802, allocations: 36.48 MB / 0.8613 GB, free: 234 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.521e-05/1.802, allocations: 93.97 kB / 0.8613 GB, free: 233.9 MB / 0.6232 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003455/1.805, allocations: 0.5962 MB / 0.8619 GB, free: 233.7 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=581): time 5.134e-05/1.805, allocations: 1.969 kB / 0.8619 GB, free: 233.7 MB / 0.6232 GB Notification: Performance of matching and sorting (n=757): time 0.1293/1.935, allocations: 35.65 MB / 0.8967 GB, free: 220.4 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.283e-05/1.935, allocations: 133.4 kB / 0.8969 GB, free: 220.3 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004613/1.939, allocations: 3.382 MB / 0.9002 GB, free: 218.5 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001174/1.941, allocations: 148.8 kB / 0.9003 GB, free: 218.4 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001914/1.943, allocations: 3.251 MB / 0.9035 GB, free: 215.9 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.004302/1.947, allocations: 2.718 MB / 0.9061 GB, free: 213.9 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004971/1.952, allocations: 1.705 MB / 0.9078 GB, free: 212.9 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 6.033e-05/1.952, allocations: 301.1 kB / 0.9081 GB, free: 212.6 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005526/1.958, allocations: 2.861 MB / 0.9109 GB, free: 210.5 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007389/1.965, allocations: 5.732 MB / 0.9165 GB, free: 203.6 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01456/1.98, allocations: 9.491 MB / 0.9258 GB, free: 193 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-05/1.98, allocations: 28 kB / 0.9258 GB, free: 193 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.0268/2.006, allocations: 10.74 MB / 0.9363 GB, free: 182.2 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 8.318e-05/2.007, allocations: 47.16 kB / 0.9363 GB, free: 182.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-05/2.007, allocations: 88 kB / 0.9364 GB, free: 182.1 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008451/2.015, allocations: 1.819 MB / 0.9382 GB, free: 180.3 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009847/2.025, allocations: 2.323 MB / 0.9404 GB, free: 178 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01596/2.041, allocations: 12.82 MB / 0.953 GB, free: 164.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006746/2.048, allocations: 296 kB / 0.9532 GB, free: 164.2 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/2.049, allocations: 0.5155 MB / 0.9537 GB, free: 163.6 MB / 0.6232 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.0037/2.053, allocations: 1.201 MB / 0.9549 GB, free: 162.5 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002009/2.055, allocations: 0.5977 MB / 0.9555 GB, free: 161.9 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02219/2.077, allocations: 10.13 MB / 0.9654 GB, free: 151.8 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.435e-05/2.077, allocations: 80 kB / 0.9655 GB, free: 151.8 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/2.077, allocations: 11.98 kB / 0.9655 GB, free: 151.7 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001433/2.078, allocations: 39.8 kB / 0.9655 GB, free: 151.7 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03332/2.111, allocations: 16.31 MB / 0.9814 GB, free: 135.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-05/2.111, allocations: 4.469 kB / 0.9815 GB, free: 135.4 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00751/2.119, allocations: 1.521 MB / 0.9829 GB, free: 133.9 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007447/2.126, allocations: 1.616 MB / 0.9845 GB, free: 132.3 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001639/2.128, allocations: 267.8 kB / 0.9848 GB, free: 132 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/2.141, allocations: 12.07 MB / 0.9966 GB, free: 119.2 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/2.141, allocations: 8 kB / 0.9966 GB, free: 119.2 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.024/2.165, allocations: 12.99 MB / 1.009 GB, free: 106.1 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00295/2.168, allocations: 1.322 MB / 1.011 GB, free: 104.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008584/2.169, allocations: 148 kB / 1.011 GB, free: 104.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003145/2.172, allocations: 156 kB / 1.011 GB, free: 104.4 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009398/2.173, allocations: 0.5756 MB / 1.011 GB, free: 103.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005399/2.173, allocations: 315.9 kB / 1.012 GB, free: 103.6 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.002306/2.176, allocations: 2.043 MB / 1.014 GB, free: 101.5 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.3e-07/2.176, allocations: 0 / 1.014 GB, free: 101.5 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01268/2.188, allocations: 5.107 MB / 1.019 GB, free: 96.62 MB / 0.6232 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.01046/2.199, allocations: 5.622 MB / 1.024 GB, free: 91.66 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.0154/2.214, allocations: 9.01 MB / 1.033 GB, free: 82.59 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/2.214, allocations: 0 / 1.033 GB, free: 82.59 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.008832/2.223, allocations: 4.895 MB / 1.038 GB, free: 77.64 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008663/2.232, allocations: 1.187 MB / 1.039 GB, free: 76.52 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/2.251, allocations: 12.91 MB / 1.052 GB, free: 63.54 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/2.253, allocations: 3.176 MB / 1.055 GB, free: 60.32 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.005821/2.259, allocations: 1.667 MB / 1.056 GB, free: 58.75 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002383/2.261, allocations: 1.137 MB / 1.057 GB, free: 57.62 MB / 0.6232 GB Notification: Performance of SimCode: time 6.31e-07/2.261, allocations: 0 / 1.057 GB, free: 57.62 MB / 0.6232 GB Notification: Performance of Templates: time 0.4997/2.761, allocations: 163.1 MB / 1.217 GB, free: 162.7 MB / 0.6232 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)