Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 154.8 kB / 23.01 MB, free: 4.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.335/1.335, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.121/0.121, allocations: 17.44 MB / 277.2 MB, free: 15.18 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate") translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 59.91 kB / 412.6 MB, free: 5.551 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.1007, allocations: 59.88 MB / 472.5 MB, free: 9.559 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.AcidBase.Phosphate): time 0.2518/0.3525, allocations: 28.68 MB / 0.4894 GB, free: 38.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02197/0.3745, allocations: 25.28 MB / 0.5141 GB, free: 24.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.3755, allocations: 38.41 kB / 0.5141 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.3768, allocations: 0.5178 MB / 0.5146 GB, free: 23.86 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005993/0.3828, allocations: 2.567 MB / 0.5171 GB, free: 22.35 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007759/0.3906, allocations: 3.579 MB / 0.5206 GB, free: 20.26 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002648/0.3932, allocations: 2.732 MB / 0.5233 GB, free: 18.95 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.3944, allocations: 1.333 MB / 0.5246 GB, free: 18.33 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.3958, allocations: 1.448 MB / 0.526 GB, free: 17.83 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001934/0.3977, allocations: 1.495 MB / 0.5275 GB, free: 17.35 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004016/0.3981, allocations: 250.7 kB / 0.5277 GB, free: 17.35 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00818/0.4063, allocations: 3 MB / 0.5306 GB, free: 16.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004632/0.4067, allocations: 0.617 MB / 0.5312 GB, free: 16.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009406/0.4077, allocations: 1.037 MB / 0.5323 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009245/0.4169, allocations: 6.114 MB / 0.5382 GB, free: 12.83 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4169, allocations: 0 / 0.5382 GB, free: 12.83 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4169, allocations: 0 / 0.5382 GB, free: 12.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.525e-05/0.417, allocations: 0 / 0.5382 GB, free: 12.83 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.00479/0.4217, allocations: 2.929 MB / 0.5411 GB, free: 10.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.4218, allocations: 8.031 kB / 0.5411 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001824/0.4236, allocations: 478.7 kB / 0.5415 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.4252, allocations: 1.055 MB / 0.5426 GB, free: 8.852 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.4253, allocations: 352.4 kB / 0.5429 GB, free: 8.461 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002616/0.4256, allocations: 194.1 kB / 0.5431 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.429, allocations: 2.533 MB / 0.5456 GB, free: 6.254 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.791e-05/0.429, allocations: 4.516 kB / 0.5456 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.4292, allocations: 72 kB / 0.5456 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.4292, allocations: 44 kB / 0.5457 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003974/0.4332, allocations: 3.177 MB / 0.5488 GB, free: 3.43 MB / 446.1 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.0116/0.4448, allocations: 6.895 MB / 0.5555 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009015/0.4538, allocations: 4.659 MB / 0.5601 GB, free: 9.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.4558, allocations: 1.157 MB / 0.5612 GB, free: 8.219 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.4682, allocations: 5.77 MB / 0.5668 GB, free: 2.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.839e-05/0.4682, allocations: 63.84 kB / 0.5669 GB, free: 2.855 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001365/0.4696, allocations: 290.8 kB / 0.5672 GB, free: 2.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 5.711e-06/0.4696, allocations: 4 kB / 0.5672 GB, free: 2.566 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.02877/0.4983, allocations: 7.347 MB / 0.5744 GB, free: 11.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.4984, allocations: 73.41 kB / 0.5744 GB, free: 11.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.4996, allocations: 0.862 MB / 0.5753 GB, free: 10.21 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002513/0.4998, allocations: 53.7 kB / 0.5753 GB, free: 10.15 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006301/0.5004, allocations: 0.8363 MB / 0.5761 GB, free: 9.305 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006846/0.5011, allocations: 0.67 MB / 0.5768 GB, free: 8.629 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006065/0.5017, allocations: 411.9 kB / 0.5772 GB, free: 8.219 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5019, allocations: 305.1 kB / 0.5775 GB, free: 7.918 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001429/0.5033, allocations: 0.789 MB / 0.5782 GB, free: 7.125 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.5053, allocations: 1.379 MB / 0.5796 GB, free: 5.484 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003742/0.509, allocations: 2.356 MB / 0.5819 GB, free: 2.875 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/0.509, allocations: 11.94 kB / 0.5819 GB, free: 2.863 MB / 478.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01213/0.5212, allocations: 3.38 MB / 0.5852 GB, free: 15.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.5212, allocations: 12 kB / 0.5852 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/0.5212, allocations: 16 kB / 0.5852 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003791/0.525, allocations: 0.8185 MB / 0.586 GB, free: 14.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00204/0.5271, allocations: 0.5187 MB / 0.5865 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005727/0.5328, allocations: 3.624 MB / 0.5901 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.5344, allocations: 71.98 kB / 0.5901 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/0.5346, allocations: 124 kB / 0.5903 GB, free: 10.07 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (268): * Single equations (assignments): 265 * 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 {(4,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.0008368/0.5355, allocations: 397 kB / 0.5906 GB, free: 9.672 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.5358, allocations: 151.1 kB / 0.5908 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/0.5479, allocations: 3.314 MB / 0.594 GB, free: 6.188 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.548, allocations: 23.98 kB / 0.594 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.548, allocations: 4 kB / 0.594 GB, free: 6.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.762e-05/0.548, allocations: 7.969 kB / 0.5941 GB, free: 6.152 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.563, allocations: 4.743 MB / 0.5987 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/0.563, allocations: 0 / 0.5987 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/0.5648, allocations: 363.5 kB / 0.599 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003728/0.5685, allocations: 0.7945 MB / 0.5998 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004499/0.569, allocations: 71.94 kB / 0.5999 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00546/0.5744, allocations: 3.504 MB / 0.6033 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.5744, allocations: 7.969 kB / 0.6033 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/0.5882, allocations: 4.23 MB / 0.6074 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004281/0.5887, allocations: 131 kB / 0.6076 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.5889, allocations: 39.94 kB / 0.6076 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009362/0.5899, allocations: 39.98 kB / 0.6076 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004824/0.5904, allocations: 205.5 kB / 0.6078 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/0.5905, allocations: 79.94 kB / 0.6079 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007111/0.5913, allocations: 0.5331 MB / 0.6084 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5913, allocations: 4 kB / 0.6084 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003216/0.5945, allocations: 1.188 MB / 0.6096 GB, free: 5.938 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.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 (190): * Single equations (assignments): 187 * 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 {(4,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.002476/0.5969, allocations: 1.363 MB / 0.6109 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004649/0.6016, allocations: 2.343 MB / 0.6132 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.6016, allocations: 0 / 0.6132 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002556/0.6042, allocations: 1.31 MB / 0.6145 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.6057, allocations: 309.5 kB / 0.6148 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006549/0.6122, allocations: 3.401 MB / 0.6181 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000797/0.613, allocations: 0.7557 MB / 0.6188 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001449/0.6145, allocations: 415.5 kB / 0.6192 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.6151, allocations: 268.2 kB / 0.6195 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of SimCode: time 6.21e-07/0.6151, allocations: 0 / 0.6195 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of Templates: time 0.07111/0.6862, allocations: 46.71 MB / 0.6651 GB, free: 13.16 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & ./Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.259659509989433] Failed to read output from testmodel.py, exit status != 0: 0.694681825931184 0.708555952 0.288673883 Calling exit ...