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.001257/0.001257, allocations: 84.44 kB / 19.76 MB, free: 2.023 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.001375/0.001375, allocations: 154.9 kB / 23.01 MB, free: 4.961 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.327/1.327, allocations: 177.2 MB / 203.4 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 179] 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.1191/0.1191, allocations: 17.36 MB / 277.1 MB, free: 15.27 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.00209/0.00209, allocations: 71.02 kB / 412.4 MB, free: 5.711 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1047, allocations: 59.85 MB / 472.3 MB, free: 9.742 MB / 446.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.2552/0.3599, allocations: 28.67 MB / 0.4892 GB, free: 39.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02298/0.3829, allocations: 25.29 MB / 0.5139 GB, free: 24.4 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.384, allocations: 35.59 kB / 0.514 GB, free: 24.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.3853, allocations: 0.5208 MB / 0.5145 GB, free: 24.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006029/0.3913, allocations: 2.574 MB / 0.517 GB, free: 22.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007603/0.3989, allocations: 3.578 MB / 0.5205 GB, free: 20.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002471/0.4014, allocations: 2.718 MB / 0.5231 GB, free: 19.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.4025, allocations: 1.341 MB / 0.5244 GB, free: 18.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.4038, allocations: 1.447 MB / 0.5258 GB, free: 18.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001816/0.4056, allocations: 1.49 MB / 0.5273 GB, free: 17.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003638/0.406, allocations: 249.7 kB / 0.5275 GB, free: 17.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008174/0.4142, allocations: 3.003 MB / 0.5305 GB, free: 16.94 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004316/0.4146, allocations: 0.6192 MB / 0.5311 GB, free: 16.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000921/0.4155, allocations: 1.038 MB / 0.5321 GB, free: 16.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.427, allocations: 6.111 MB / 0.5381 GB, free: 13.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.427, allocations: 0 / 0.5381 GB, free: 13.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.427, allocations: 4 kB / 0.5381 GB, free: 13.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.432e-05/0.427, allocations: 0 / 0.5381 GB, free: 13.29 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.005066/0.4321, allocations: 2.928 MB / 0.5409 GB, free: 10.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.4321, allocations: 8.031 kB / 0.5409 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001839/0.4339, allocations: 479 kB / 0.5414 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.4354, allocations: 1.047 MB / 0.5424 GB, free: 9.316 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.4356, allocations: 352.6 kB / 0.5427 GB, free: 8.926 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002607/0.4359, allocations: 193.7 kB / 0.5429 GB, free: 8.738 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/0.4392, allocations: 2.534 MB / 0.5454 GB, free: 6.719 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.686e-05/0.4393, allocations: 3.938 kB / 0.5454 GB, free: 6.715 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/0.4394, allocations: 75.94 kB / 0.5455 GB, free: 6.641 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.4395, allocations: 48 kB / 0.5455 GB, free: 6.594 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003956/0.4434, allocations: 3.177 MB / 0.5486 GB, free: 3.887 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.01136/0.4548, allocations: 6.904 MB / 0.5554 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008835/0.4636, allocations: 4.651 MB / 0.5599 GB, free: 9.707 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.4655, allocations: 1.158 MB / 0.561 GB, free: 8.676 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.4775, allocations: 5.779 MB / 0.5667 GB, free: 3.336 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.4775, allocations: 47.88 kB / 0.5667 GB, free: 3.277 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001356/0.4789, allocations: 294.9 kB / 0.567 GB, free: 2.988 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 6.271e-06/0.4789, allocations: 0 / 0.567 GB, free: 2.988 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.02917/0.5081, allocations: 7.358 MB / 0.5742 GB, free: 11.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.5081, allocations: 73.41 kB / 0.5743 GB, free: 11.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.5093, allocations: 0.862 MB / 0.5751 GB, free: 10.62 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00018/0.5095, allocations: 57.7 kB / 0.5752 GB, free: 10.56 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006504/0.5102, allocations: 0.8285 MB / 0.576 GB, free: 9.719 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006779/0.5108, allocations: 0.674 MB / 0.5766 GB, free: 9.039 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006875/0.5115, allocations: 411.9 kB / 0.577 GB, free: 8.629 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.5117, allocations: 305.1 kB / 0.5773 GB, free: 8.328 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/0.5131, allocations: 0.7851 MB / 0.5781 GB, free: 7.539 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.5152, allocations: 1.375 MB / 0.5794 GB, free: 5.902 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003876/0.5191, allocations: 2.364 MB / 0.5817 GB, free: 3.285 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/0.5191, allocations: 4 kB / 0.5817 GB, free: 3.281 MB / 478.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01213/0.5312, allocations: 3.38 MB / 0.585 GB, free: 15.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.5312, allocations: 12 kB / 0.585 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/0.5313, allocations: 20 kB / 0.5851 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003738/0.535, allocations: 0.8143 MB / 0.5859 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001962/0.537, allocations: 0.5187 MB / 0.5864 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005793/0.5428, allocations: 3.616 MB / 0.5899 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.5443, allocations: 76.05 kB / 0.59 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.5446, allocations: 120 kB / 0.5901 GB, free: 10.5 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.0008843/0.5455, allocations: 405.7 kB / 0.5905 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004204/0.5459, allocations: 143.1 kB / 0.5906 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01227/0.5582, allocations: 3.33 MB / 0.5939 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.5582, allocations: 16 kB / 0.5939 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.5582, allocations: 4 kB / 0.5939 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-05/0.5582, allocations: 7.969 kB / 0.5939 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01493/0.5732, allocations: 4.751 MB / 0.5985 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.5732, allocations: 0 / 0.5985 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/0.5748, allocations: 359.5 kB / 0.5989 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003708/0.5785, allocations: 0.8023 MB / 0.5997 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000316/0.5788, allocations: 63.94 kB / 0.5997 GB, free: 0.543 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005388/0.5842, allocations: 3.512 MB / 0.6031 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.5842, allocations: 3.938 kB / 0.6031 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/0.5985, allocations: 4.226 MB / 0.6073 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004405/0.599, allocations: 131 kB / 0.6074 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004627/0.5994, allocations: 36 kB / 0.6074 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.6007, allocations: 39.98 kB / 0.6075 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005882/0.6013, allocations: 201.6 kB / 0.6077 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/0.6015, allocations: 79.94 kB / 0.6077 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008735/0.6024, allocations: 0.5369 MB / 0.6083 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6024, allocations: 0 / 0.6083 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003926/0.6063, allocations: 1.192 MB / 0.6094 GB, free: 6.355 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.003396/0.6097, allocations: 1.371 MB / 0.6108 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005222/0.615, allocations: 2.335 MB / 0.613 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.615, allocations: 384 / 0.613 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002781/0.6177, allocations: 1.31 MB / 0.6143 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.6194, allocations: 311.5 kB / 0.6146 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006945/0.6264, allocations: 3.408 MB / 0.618 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009254/0.6273, allocations: 0.7479 MB / 0.6187 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001524/0.6288, allocations: 411.6 kB / 0.6191 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006609/0.6295, allocations: 268.2 kB / 0.6193 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of SimCode: time 7.51e-07/0.6295, allocations: 0 / 0.6193 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of Templates: time 0.07312/0.7026, allocations: 46.7 MB / 0.6649 GB, free: 13.58 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 -s ida -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.202519095968455] Failed to read output from testmodel.py, exit status != 0: 0.7110700560733676 0.7248404690000001 0.294913884 Calling exit ...