Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001503/0.001503, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001718/0.001718, allocations: 221.5 kB / 22.25 MB, free: 5.254 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.364/1.364, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1312/0.1312, allocations: 23.88 MB / 336.3 MB, free: 10.96 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical.Obsolete.Examples.AcidBase.Phosphate") translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_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.002003/0.002003, allocations: 71.89 kB / 471.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2964, allocations: 59.86 MB / 0.519 GB, free: 9.777 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.06915/0.3656, allocations: 28.58 MB / 0.5469 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03431/0.3999, allocations: 25.3 MB / 0.5716 GB, free: 3.961 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.4013, allocations: 35.75 kB / 0.5717 GB, free: 3.926 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.4027, allocations: 0.5155 MB / 0.5722 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007275/0.41, allocations: 2.569 MB / 0.5747 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009381/0.4194, allocations: 3.573 MB / 0.5782 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003598/0.423, allocations: 2.727 MB / 0.5808 GB, free: 10.49 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001695/0.4247, allocations: 1.372 MB / 0.5822 GB, free: 9.082 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.4264, allocations: 1.45 MB / 0.5836 GB, free: 7.629 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00239/0.4288, allocations: 1.647 MB / 0.5852 GB, free: 5.977 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003788/0.4292, allocations: 252 kB / 0.5854 GB, free: 5.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007192/0.4364, allocations: 3.073 MB / 0.5884 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006648/0.437, allocations: 0.6155 MB / 0.589 GB, free: 2.035 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.4382, allocations: 1.043 MB / 0.5901 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009958/0.4482, allocations: 6.113 MB / 0.596 GB, free: 10.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4482, allocations: 0 / 0.596 GB, free: 10.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4482, allocations: 0 / 0.596 GB, free: 10.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.007e-05/0.4482, allocations: 0 / 0.596 GB, free: 10.85 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.006151/0.4544, allocations: 2.933 MB / 0.5989 GB, free: 7.875 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4544, allocations: 8.031 kB / 0.5989 GB, free: 7.867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.4566, allocations: 482.6 kB / 0.5994 GB, free: 7.395 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002061/0.4586, allocations: 1.042 MB / 0.6004 GB, free: 6.324 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002913/0.4589, allocations: 349.8 kB / 0.6007 GB, free: 5.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003854/0.4593, allocations: 196.3 kB / 0.6009 GB, free: 5.742 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004364/0.4637, allocations: 2.531 MB / 0.6034 GB, free: 3.176 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/0.4637, allocations: 4 kB / 0.6034 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/0.4639, allocations: 72 kB / 0.6034 GB, free: 3.102 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.696e-05/0.464, allocations: 44 kB / 0.6035 GB, free: 3.059 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005344/0.4693, allocations: 3.18 MB / 0.6066 GB, free: 15.88 MB / 462.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.01376/0.4831, allocations: 6.902 MB / 0.6133 GB, free: 8.867 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009084/0.4922, allocations: 4.65 MB / 0.6179 GB, free: 4.203 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001924/0.4941, allocations: 1.157 MB / 0.619 GB, free: 3.047 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01296/0.5071, allocations: 5.769 MB / 0.6246 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.5071, allocations: 59.81 kB / 0.6247 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001444/0.5086, allocations: 286.9 kB / 0.625 GB, free: 12.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 3.808e-06/0.5086, allocations: 0 / 0.625 GB, free: 12.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03104/0.5396, allocations: 7.358 MB / 0.6322 GB, free: 5.492 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.5397, allocations: 73.39 kB / 0.6322 GB, free: 5.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.5408, allocations: 0.8581 MB / 0.6331 GB, free: 4.531 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.5409, allocations: 57.7 kB / 0.6331 GB, free: 4.469 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000636/0.5415, allocations: 0.8363 MB / 0.6339 GB, free: 3.621 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006406/0.5422, allocations: 0.674 MB / 0.6346 GB, free: 2.941 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006502/0.5428, allocations: 411.9 kB / 0.635 GB, free: 2.531 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.543, allocations: 305.1 kB / 0.6353 GB, free: 2.23 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.5444, allocations: 0.7851 MB / 0.636 GB, free: 1.441 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.5464, allocations: 1.375 MB / 0.6374 GB, free: 15.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.55, allocations: 2.364 MB / 0.6397 GB, free: 13.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.5501, allocations: 4 kB / 0.6397 GB, free: 13.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01287/0.5629, allocations: 3.38 MB / 0.643 GB, free: 9.785 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.563, allocations: 12 kB / 0.643 GB, free: 9.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.563, allocations: 20 kB / 0.643 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/0.5672, allocations: 0.8224 MB / 0.6438 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/0.5691, allocations: 0.5149 MB / 0.6443 GB, free: 8.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005917/0.575, allocations: 3.611 MB / 0.6479 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.5766, allocations: 75.98 kB / 0.6479 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002232/0.5768, allocations: 123.9 kB / 0.6481 GB, free: 4.398 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.0007637/0.5776, allocations: 405 kB / 0.6484 GB, free: 3.992 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003342/0.5779, allocations: 147.1 kB / 0.6486 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/0.5911, allocations: 3.322 MB / 0.6518 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/0.5911, allocations: 20 kB / 0.6518 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.882e-06/0.5911, allocations: 0 / 0.6518 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.5911, allocations: 7.969 kB / 0.6519 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.6063, allocations: 4.757 MB / 0.6565 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.6063, allocations: 0 / 0.6565 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/0.6079, allocations: 359.5 kB / 0.6568 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004114/0.612, allocations: 0.8023 MB / 0.6576 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.6121, allocations: 59.95 kB / 0.6577 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005507/0.6176, allocations: 3.512 MB / 0.6611 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.6176, allocations: 3.938 kB / 0.6611 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/0.6318, allocations: 4.233 MB / 0.6653 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003121/0.6321, allocations: 127 kB / 0.6654 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.6323, allocations: 36 kB / 0.6654 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009994/0.6333, allocations: 39.98 kB / 0.6654 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004699/0.6338, allocations: 205.6 kB / 0.6656 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/0.6339, allocations: 79.94 kB / 0.6657 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007212/0.6347, allocations: 0.5292 MB / 0.6662 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.6347, allocations: 0 / 0.6662 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002982/0.6376, allocations: 1.196 MB / 0.6674 GB, free: 260 kB / 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.002371/0.64, allocations: 1.363 MB / 0.6687 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004587/0.6446, allocations: 2.347 MB / 0.671 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6446, allocations: 0 / 0.671 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002597/0.6472, allocations: 1.302 MB / 0.6723 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.6486, allocations: 310.4 kB / 0.6726 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00661/0.6552, allocations: 3.397 MB / 0.6759 GB, free: 7.441 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007881/0.656, allocations: 0.7517 MB / 0.6766 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001389/0.6574, allocations: 407.5 kB / 0.677 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000633/0.658, allocations: 267.1 kB / 0.6773 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of SimCode: time 7.61e-07/0.658, allocations: 0 / 0.6773 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of Templates: time 0.07183/0.7298, allocations: 49.74 MB / 0.7259 GB, free: 4.508 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 6.511127836070955] Failed to read output from testmodel.py, exit status != 0: 0.7381111937575042 0.905997778 0.45538991900000003 Calling exit ...