Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1117/0.1117, allocations: 15.26 MB / 27.82 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 188.4 kB / 32.7 MB, free: 0.5156 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.3 MB / 258.8 MB, free: 15.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009858/0.0009859, allocations: 87.78 kB / 314 MB, free: 15.76 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.344e-05, allocations: 0 / 376.5 MB, free: 1.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3576, allocations: 54.6 MB / 431.1 MB, free: 50.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1453/0.5029, allocations: 103.3 MB / 0.5219 GB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.5032, allocations: 69.69 kB / 0.5219 GB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4541/0.9574, allocations: 65.05 MB / 0.5855 GB, free: 91.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.9574, allocations: 0 / 0.5855 GB, free: 91.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.248e-05/0.9575, allocations: 29.98 kB / 0.5855 GB, free: 91.35 MB / 442.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.004661/0.9621, allocations: 1.861 MB / 0.5873 GB, free: 90.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.9622, allocations: 8.688 kB / 0.5873 GB, free: 90.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001826/0.964, allocations: 446.7 kB / 0.5877 GB, free: 90.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.9661, allocations: 0.9776 MB / 0.5887 GB, free: 90.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.9663, allocations: 174.1 kB / 0.5889 GB, free: 90.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.9666, allocations: 148.4 kB / 0.589 GB, free: 90.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004738/0.9713, allocations: 2.801 MB / 0.5917 GB, free: 89.92 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.9714, allocations: 3.688 kB / 0.5917 GB, free: 89.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/0.9715, allocations: 59.06 kB / 0.5918 GB, free: 89.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/0.9716, allocations: 35.34 kB / 0.5918 GB, free: 89.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005963/0.9775, allocations: 4.07 MB / 0.5958 GB, free: 89.91 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01407/0.9916, allocations: 8.273 MB / 0.6039 GB, free: 88.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005416/0.997, allocations: 3.811 MB / 0.6076 GB, free: 87.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.9991, allocations: 1.387 MB / 0.609 GB, free: 87.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000775/0.9999, allocations: 416.6 kB / 0.6094 GB, free: 87.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.9999, allocations: 48 kB / 0.6094 GB, free: 87.51 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001366/1.001, allocations: 217.4 kB / 0.6096 GB, free: 87.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=170): time 5.901e-06/1.001, allocations: 0 / 0.6096 GB, free: 87.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.03087/1.032, allocations: 11.22 MB / 0.6206 GB, free: 83.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007222/1.039, allocations: 4.435 MB / 0.6249 GB, free: 80.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/1.041, allocations: 0.9556 MB / 0.6258 GB, free: 79.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004914/1.041, allocations: 65.42 kB / 0.6259 GB, free: 79.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/1.041, allocations: 0.532 MB / 0.6264 GB, free: 79.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006655/1.042, allocations: 0.7677 MB / 0.6272 GB, free: 78.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/1.042, allocations: 42.11 kB / 0.6272 GB, free: 78.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/1.042, allocations: 390.9 kB / 0.6276 GB, free: 78.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/1.044, allocations: 1.635 MB / 0.6292 GB, free: 77.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002027/1.046, allocations: 1.875 MB / 0.631 GB, free: 77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/1.049, allocations: 1.78 MB / 0.6327 GB, free: 76.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/1.049, allocations: 3.562 kB / 0.6327 GB, free: 76.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.008809/1.057, allocations: 4.499 MB / 0.6371 GB, free: 74.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/1.058, allocations: 8 kB / 0.6372 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/1.058, allocations: 6.375 kB / 0.6372 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003755/1.061, allocations: 0.7242 MB / 0.6379 GB, free: 74.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003267/1.065, allocations: 470.1 kB / 0.6383 GB, free: 74.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00775/1.072, allocations: 4.425 MB / 0.6426 GB, free: 70.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/1.076, allocations: 243.3 kB / 0.6429 GB, free: 70.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008027/1.077, allocations: 114.5 kB / 0.643 GB, free: 70.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009048/1.078, allocations: 215.6 kB / 0.6432 GB, free: 70.47 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006744/1.079, allocations: 139.9 kB / 0.6433 GB, free: 70.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01669/1.096, allocations: 5.043 MB / 0.6482 GB, free: 68.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01545/1.111, allocations: 4.513 MB / 0.6526 GB, free: 67.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/1.111, allocations: 1.406 kB / 0.6526 GB, free: 67.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.402e-05/1.111, allocations: 14.22 kB / 0.6527 GB, free: 67.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/1.131, allocations: 10.6 MB / 0.663 GB, free: 59.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.306e-05/1.131, allocations: 8 kB / 0.663 GB, free: 59.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/1.133, allocations: 415.8 kB / 0.6634 GB, free: 59.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006475/1.139, allocations: 1.423 MB / 0.6648 GB, free: 58.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000475/1.14, allocations: 89.75 kB / 0.6649 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01013/1.15, allocations: 7.258 MB / 0.672 GB, free: 51.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005864/1.156, allocations: 2.549 MB / 0.6745 GB, free: 49.13 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/1.171, allocations: 7.604 MB / 0.6819 GB, free: 42.01 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007068/1.171, allocations: 256.8 kB / 0.6821 GB, free: 41.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005271/1.172, allocations: 59.7 kB / 0.6822 GB, free: 41.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/1.174, allocations: 152.4 kB / 0.6823 GB, free: 41.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005353/1.175, allocations: 226 kB / 0.6826 GB, free: 41.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002622/1.175, allocations: 94.05 kB / 0.6826 GB, free: 41.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008787/1.176, allocations: 0.7558 MB / 0.6834 GB, free: 40.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.176, allocations: 4 kB / 0.6834 GB, free: 40.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004904/1.181, allocations: 1.38 MB / 0.6847 GB, free: 39.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.003593/1.184, allocations: 1.236 MB / 0.6859 GB, free: 38.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006811/1.191, allocations: 4.094 MB / 0.6899 GB, free: 34.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/1.191, allocations: 4 kB / 0.6899 GB, free: 34.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004132/1.195, allocations: 2.574 MB / 0.6925 GB, free: 32.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/1.197, allocations: 295.3 kB / 0.6927 GB, free: 32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005489/1.203, allocations: 3.584 MB / 0.6962 GB, free: 28.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008423/1.204, allocations: 1.348 MB / 0.6976 GB, free: 27.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001759/1.205, allocations: 339.8 kB / 0.6979 GB, free: 27.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006669/1.206, allocations: 190.9 kB / 0.6981 GB, free: 27.01 MB / 442.7 MB Notification: Performance of SimCode: time 1.303e-06/1.206, allocations: 4 kB / 0.6981 GB, free: 27.01 MB / 442.7 MB Notification: Performance of Templates: time 0.06383/1.27, allocations: 46.29 MB / 0.7433 GB, free: 13.69 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)