Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001565, allocations: 182.4 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.361/1.361, allocations: 222.9 MB / 239.6 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.001016/0.001016, allocations: 96.2 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4045/0.4045, allocations: 36.67 MB / 376.7 MB, free: 41.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1303, allocations: 58.91 MB / 0.4935 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.2408/0.3712, allocations: 8.558 MB / 0.5018 GB, free: 37.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02366/0.3949, allocations: 23.09 MB / 0.5244 GB, free: 21.39 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00242/0.3973, allocations: 35 kB / 0.5244 GB, free: 21.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.3989, allocations: 449.3 kB / 0.5248 GB, free: 21.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007015/0.406, allocations: 1.672 MB / 0.5265 GB, free: 20.15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01008/0.4161, allocations: 2.563 MB / 0.529 GB, free: 18.65 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00295/0.4191, allocations: 2.08 MB / 0.531 GB, free: 17.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001772/0.4209, allocations: 1.075 MB / 0.5321 GB, free: 17.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001766/0.4227, allocations: 1.05 MB / 0.5331 GB, free: 16.89 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00223/0.4249, allocations: 1.182 MB / 0.5342 GB, free: 16.45 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00073/0.4257, allocations: 128.5 kB / 0.5344 GB, free: 16.45 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009479/0.4351, allocations: 2.403 MB / 0.5367 GB, free: 15.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009636/0.4362, allocations: 419.6 kB / 0.5371 GB, free: 15.61 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001958/0.4381, allocations: 0.8941 MB / 0.538 GB, free: 15.12 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.451, allocations: 4.466 MB / 0.5423 GB, free: 13.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-05/0.4511, allocations: 4 kB / 0.5423 GB, free: 13.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4511, allocations: 0 / 0.5423 GB, free: 13.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001532/0.4512, allocations: 0 / 0.5423 GB, free: 13.3 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.00881/0.4601, allocations: 2.393 MB / 0.5447 GB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.4601, allocations: 11.12 kB / 0.5447 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002181/0.4623, allocations: 394.6 kB / 0.5451 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.4644, allocations: 0.867 MB / 0.5459 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/0.4647, allocations: 174.7 kB / 0.5461 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006447/0.4654, allocations: 149.6 kB / 0.5462 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004589/0.47, allocations: 2.034 MB / 0.5482 GB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.47, allocations: 9.031 kB / 0.5482 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.4702, allocations: 57.12 kB / 0.5483 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-05/0.4702, allocations: 34.25 kB / 0.5483 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004352/0.4746, allocations: 2.701 MB / 0.5509 GB, free: 9.406 MB / 378.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.01164/0.4863, allocations: 6.526 MB / 0.5573 GB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005306/0.4916, allocations: 3.324 MB / 0.5606 GB, free: 3.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/0.4932, allocations: 0.8956 MB / 0.5614 GB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.5033, allocations: 7.254 MB / 0.5685 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.5034, allocations: 43.56 kB / 0.5686 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001082/0.5045, allocations: 174.7 kB / 0.5687 GB, free: 12.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 7.304e-06/0.5046, allocations: 0 / 0.5687 GB, free: 12.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=140): time 0.02169/0.5262, allocations: 5.507 MB / 0.5741 GB, free: 6.664 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.5263, allocations: 64.72 kB / 0.5742 GB, free: 6.586 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.5277, allocations: 1.03 MB / 0.5752 GB, free: 5.531 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.5279, allocations: 49.7 kB / 0.5752 GB, free: 5.477 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.5284, allocations: 0.6816 MB / 0.5759 GB, free: 4.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004852/0.5289, allocations: 488.9 kB / 0.5764 GB, free: 4.297 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005788/0.5295, allocations: 331.4 kB / 0.5767 GB, free: 3.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.746e-05/0.5296, allocations: 305.1 kB / 0.577 GB, free: 3.664 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.5308, allocations: 0.6559 MB / 0.5776 GB, free: 3.008 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.5323, allocations: 1.114 MB / 0.5787 GB, free: 1.703 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002755/0.5351, allocations: 1.816 MB / 0.5805 GB, free: 15.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-05/0.5351, allocations: 4 kB / 0.5805 GB, free: 15.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007097/0.5422, allocations: 2.467 MB / 0.5829 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.888e-05/0.5423, allocations: 15.94 kB / 0.5829 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.5423, allocations: 12 kB / 0.5829 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003024/0.5453, allocations: 0.5194 MB / 0.5834 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5471, allocations: 420.3 kB / 0.5838 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005453/0.5526, allocations: 3.494 MB / 0.5872 GB, free: 8.484 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/0.5544, allocations: 91.88 kB / 0.5873 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004972/0.555, allocations: 92.5 kB / 0.5874 GB, free: 8.305 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001211/0.5562, allocations: 334.3 kB / 0.5877 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005771/0.5568, allocations: 122.4 kB / 0.5878 GB, free: 7.848 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007727/0.5645, allocations: 2.191 MB / 0.59 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.5646, allocations: 16 kB / 0.59 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.5646, allocations: 3.984 kB / 0.59 GB, free: 5.633 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.63e-05/0.5646, allocations: 7.984 kB / 0.59 GB, free: 5.625 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00962/0.5743, allocations: 3.609 MB / 0.5935 GB, free: 1.949 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.5743, allocations: 0 / 0.5935 GB, free: 1.949 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.5755, allocations: 275.6 kB / 0.5938 GB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/0.5783, allocations: 0.4887 MB / 0.5943 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002026/0.5786, allocations: 51.97 kB / 0.5943 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0049/0.5835, allocations: 3.402 MB / 0.5976 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5835, allocations: 4.031 kB / 0.5976 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03046/0.614, allocations: 11.62 MB / 0.609 GB, free: 1.535 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003529/0.6144, allocations: 183.6 kB / 0.6092 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003328/0.6147, allocations: 32 kB / 0.6092 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.6158, allocations: 63.86 kB / 0.6093 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004048/0.6162, allocations: 121.1 kB / 0.6094 GB, free: 1.121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/0.6164, allocations: 59.97 kB / 0.6094 GB, free: 1.062 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009856/0.6174, allocations: 0.703 MB / 0.6101 GB, free: 356 kB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6174, allocations: 0 / 0.6101 GB, free: 356 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.003984/0.6214, allocations: 1.105 MB / 0.6112 GB, free: 15.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.logn,OH.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 (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002647/0.624, allocations: 1.09 MB / 0.6123 GB, free: 14.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004387/0.6284, allocations: 2.034 MB / 0.6143 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.6285, allocations: 1.875 kB / 0.6143 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002415/0.6309, allocations: 1.17 MB / 0.6154 GB, free: 10.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.6328, allocations: 244.1 kB / 0.6156 GB, free: 10.62 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007013/0.6398, allocations: 4.184 MB / 0.6197 GB, free: 6.383 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.6409, allocations: 1.219 MB / 0.6209 GB, free: 5.129 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001942/0.6429, allocations: 356.6 kB / 0.6212 GB, free: 4.801 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/0.6436, allocations: 219.3 kB / 0.6215 GB, free: 4.586 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6436, allocations: 0 / 0.6215 GB, free: 4.586 MB / 442.7 MB Notification: Performance of Templates: time 0.06109/0.7047, allocations: 36.95 MB / 0.6575 GB, free: 15.79 MB / 490.7 MB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)