Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.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.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood") translateModel(Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 182.9 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.457/1.457, allocations: 222.9 MB / 239.6 MB, free: 11.02 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.0009812/0.0009812, allocations: 94.14 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.3732/0.3732, allocations: 36.66 MB / 376.7 MB, free: 41.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.91 kB / 446.4 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1467, allocations: 58.91 MB / 0.4935 GB, free: 0.8633 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.CarbonDioxideInBlood): time 0.2615/0.4083, allocations: 33.05 MB / 0.5258 GB, free: 27.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04956/0.4578, allocations: 46.98 MB / 0.5716 GB, free: 8.156 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005271/0.4632, allocations: 71.5 kB / 0.5717 GB, free: 8.086 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003988/0.4672, allocations: 0.9123 MB / 0.5726 GB, free: 7.387 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01517/0.4824, allocations: 3.165 MB / 0.5757 GB, free: 4.738 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02334/0.5058, allocations: 5.596 MB / 0.5812 GB, free: 100 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.5165, allocations: 4.402 MB / 0.5855 GB, free: 12.12 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004492/0.5211, allocations: 2.318 MB / 0.5877 GB, free: 10.12 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00422/0.5254, allocations: 2.182 MB / 0.5899 GB, free: 7.93 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004572/0.53, allocations: 2.503 MB / 0.5923 GB, free: 5.418 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.5313, allocations: 280 kB / 0.5926 GB, free: 5.145 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02171/0.5531, allocations: 5.042 MB / 0.5975 GB, free: 96 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002486/0.5556, allocations: 0.8605 MB / 0.5983 GB, free: 15.23 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004713/0.5603, allocations: 1.905 MB / 0.6002 GB, free: 13.32 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03101/0.5914, allocations: 9.404 MB / 0.6094 GB, free: 3.879 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.5914, allocations: 0 / 0.6094 GB, free: 3.879 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5914, allocations: 4 kB / 0.6094 GB, free: 3.875 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001729/0.5916, allocations: 4 kB / 0.6094 GB, free: 3.871 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01261/0.6042, allocations: 4.735 MB / 0.614 GB, free: 15.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.6043, allocations: 8.031 kB / 0.614 GB, free: 15.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003855/0.6082, allocations: 0.8379 MB / 0.6148 GB, free: 14.22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.6118, allocations: 1.624 MB / 0.6164 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000309/0.6121, allocations: 298.2 kB / 0.6167 GB, free: 12.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000806/0.6129, allocations: 328.2 kB / 0.617 GB, free: 11.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008801/0.6217, allocations: 4.48 MB / 0.6214 GB, free: 7.363 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.805e-05/0.6219, allocations: 0 / 0.6214 GB, free: 7.363 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003619/0.6222, allocations: 128 kB / 0.6215 GB, free: 7.238 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-05/0.6223, allocations: 76 kB / 0.6216 GB, free: 7.164 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.6332, allocations: 6.114 MB / 0.6276 GB, free: 1.039 MB / 442.7 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.02819/0.6614, allocations: 14.06 MB / 0.6413 GB, free: 2.566 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009691/0.6711, allocations: 6.327 MB / 0.6475 GB, free: 12.06 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004037/0.6752, allocations: 2.243 MB / 0.6497 GB, free: 9.812 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02748/0.7027, allocations: 14.84 MB / 0.6641 GB, free: 9.629 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.119e-05/0.7029, allocations: 56.8 kB / 0.6642 GB, free: 9.562 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002423/0.7053, allocations: 377.1 kB / 0.6646 GB, free: 9.191 MB / 490.7 MB Notification: Performance of pre-optimization done (n=284): time 2.389e-05/0.7054, allocations: 4 kB / 0.6646 GB, free: 9.188 MB / 490.7 MB Notification: Performance of matching and sorting (n=387): time 0.3211/1.026, allocations: 23.97 MB / 0.688 GB, free: 131.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/1.027, allocations: 90.98 kB / 0.6881 GB, free: 131.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/1.029, allocations: 1.715 MB / 0.6897 GB, free: 131.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007635/1.029, allocations: 90.83 kB / 0.6898 GB, free: 131.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006713/1.03, allocations: 1.303 MB / 0.6911 GB, free: 130.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001854/1.032, allocations: 1.303 MB / 0.6924 GB, free: 129 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001494/1.033, allocations: 0.7795 MB / 0.6931 GB, free: 128.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.391e-05/1.033, allocations: 307 kB / 0.6934 GB, free: 128.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/1.036, allocations: 1.822 MB / 0.6952 GB, free: 127.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003217/1.039, allocations: 2.831 MB / 0.698 GB, free: 125.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006687/1.046, allocations: 4.94 MB / 0.7028 GB, free: 122.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.363e-05/1.046, allocations: 9.719 kB / 0.7028 GB, free: 122.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01895/1.065, allocations: 6.893 MB / 0.7095 GB, free: 120.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/1.065, allocations: 17.34 kB / 0.7095 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.539e-05/1.065, allocations: 29.09 kB / 0.7096 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/1.077, allocations: 2.325 MB / 0.7118 GB, free: 119.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003922/1.081, allocations: 0.8927 MB / 0.7127 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02475/1.105, allocations: 17.11 MB / 0.7294 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003714/1.109, allocations: 208.9 kB / 0.7296 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005778/1.11, allocations: 231.7 kB / 0.7298 GB, free: 106.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00157/1.111, allocations: 0.613 MB / 0.7304 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006408/1.112, allocations: 270.3 kB / 0.7307 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/1.129, allocations: 6.669 MB / 0.7372 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/1.129, allocations: 48.69 kB / 0.7373 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/1.129, allocations: 3.906 kB / 0.7373 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.398e-05/1.129, allocations: 18.66 kB / 0.7373 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02134/1.15, allocations: 10.76 MB / 0.7478 GB, free: 95.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-05/1.15, allocations: 4 kB / 0.7478 GB, free: 95.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002981/1.153, allocations: 0.6618 MB / 0.7484 GB, free: 94.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009301/1.163, allocations: 2.098 MB / 0.7505 GB, free: 92.61 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009651/1.164, allocations: 131.9 kB / 0.7506 GB, free: 92.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01865/1.182, allocations: 15.77 MB / 0.766 GB, free: 75.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/1.182, allocations: 11.94 kB / 0.766 GB, free: 75.8 MB / 490.7 MB 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. 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.06896/1.251, allocations: 32.02 MB / 0.7973 GB, free: 43.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/1.253, allocations: 0.6962 MB / 0.798 GB, free: 42.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004813/1.253, allocations: 83.94 kB / 0.798 GB, free: 42.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002186/1.256, allocations: 155.7 kB / 0.7982 GB, free: 42.47 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007345/1.256, allocations: 334.7 kB / 0.7985 GB, free: 42.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002981/1.257, allocations: 166.7 kB / 0.7987 GB, free: 41.98 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001177/1.258, allocations: 1.109 MB / 0.7998 GB, free: 40.85 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.258, allocations: 3.938 kB / 0.7998 GB, free: 40.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007851/1.266, allocations: 2.561 MB / 0.8023 GB, free: 38.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003877/1.27, allocations: 2.18 MB / 0.8044 GB, free: 36.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009969/1.28, allocations: 5.859 MB / 0.8101 GB, free: 30.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.28, allocations: 0 / 0.8101 GB, free: 30.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005726/1.285, allocations: 3.546 MB / 0.8136 GB, free: 27.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002959/1.288, allocations: 0.5135 MB / 0.8141 GB, free: 26.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/1.303, allocations: 10.81 MB / 0.8246 GB, free: 15.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/1.305, allocations: 2.004 MB / 0.8266 GB, free: 13.89 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003749/1.309, allocations: 0.7264 MB / 0.8273 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001316/1.31, allocations: 471.1 kB / 0.8277 GB, free: 12.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/1.31, allocations: 0 / 0.8277 GB, free: 12.77 MB / 490.7 MB Notification: Performance of Templates: time 0.3724/1.683, allocations: 93.91 MB / 0.9195 GB, free: 136 MB / 0.5105 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)