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.001538/0.001538, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001428/0.001428, allocations: 212.2 kB / 22.99 MB, free: 4.984 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.43/1.43, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1385/0.1385, allocations: 23.88 MB / 337.1 MB, free: 10.98 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.002034/0.002034, allocations: 67.91 kB / 472.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3212, allocations: 59.86 MB / 0.5198 GB, free: 9.766 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.07423/0.3955, allocations: 28.53 MB / 0.5476 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03643/0.4319, allocations: 25.3 MB / 0.5723 GB, free: 4.039 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.4335, allocations: 31.75 kB / 0.5724 GB, free: 4.008 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.435, allocations: 0.5233 MB / 0.5729 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007331/0.4424, allocations: 2.561 MB / 0.5754 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01007/0.4524, allocations: 3.577 MB / 0.5789 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004172/0.4566, allocations: 2.723 MB / 0.5815 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.4586, allocations: 1.368 MB / 0.5829 GB, free: 9.168 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.4604, allocations: 1.45 MB / 0.5843 GB, free: 7.715 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.4628, allocations: 1.655 MB / 0.5859 GB, free: 6.055 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004125/0.4632, allocations: 248 kB / 0.5861 GB, free: 5.812 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007869/0.4711, allocations: 3.073 MB / 0.5891 GB, free: 2.734 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007702/0.4719, allocations: 0.6193 MB / 0.5897 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.4731, allocations: 1.039 MB / 0.5907 GB, free: 1.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.4857, allocations: 6.113 MB / 0.5967 GB, free: 10.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4857, allocations: 0 / 0.5967 GB, free: 10.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4857, allocations: 0 / 0.5967 GB, free: 10.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.4858, allocations: 0 / 0.5967 GB, free: 10.93 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.006637/0.4924, allocations: 2.927 MB / 0.5996 GB, free: 7.961 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.4925, allocations: 12.03 kB / 0.5996 GB, free: 7.949 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002304/0.4948, allocations: 478.6 kB / 0.6 GB, free: 7.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.4969, allocations: 1.046 MB / 0.6011 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003185/0.4973, allocations: 353.8 kB / 0.6014 GB, free: 6.012 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003991/0.4977, allocations: 196.3 kB / 0.6016 GB, free: 5.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004588/0.5022, allocations: 2.531 MB / 0.6041 GB, free: 3.254 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.949e-05/0.5023, allocations: 8 kB / 0.6041 GB, free: 3.246 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/0.5025, allocations: 71.98 kB / 0.6041 GB, free: 3.176 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.963e-05/0.5026, allocations: 44 kB / 0.6042 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005507/0.5081, allocations: 3.18 MB / 0.6073 GB, free: 15.95 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.01476/0.5228, allocations: 6.898 MB / 0.614 GB, free: 8.945 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009437/0.5323, allocations: 4.646 MB / 0.6186 GB, free: 4.285 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002012/0.5343, allocations: 1.164 MB / 0.6197 GB, free: 3.121 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/0.5474, allocations: 5.773 MB / 0.6253 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.145e-05/0.5474, allocations: 55.88 kB / 0.6254 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001455/0.5489, allocations: 286.9 kB / 0.6257 GB, free: 12.97 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 3.878e-06/0.5489, allocations: 3.938 kB / 0.6257 GB, free: 12.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03218/0.5811, allocations: 7.354 MB / 0.6328 GB, free: 5.566 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.5811, allocations: 73.41 kB / 0.6329 GB, free: 5.484 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.5824, allocations: 0.8658 MB / 0.6338 GB, free: 4.598 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002781/0.5827, allocations: 53.7 kB / 0.6338 GB, free: 4.539 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007134/0.5834, allocations: 0.8363 MB / 0.6346 GB, free: 3.691 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007374/0.5842, allocations: 0.67 MB / 0.6353 GB, free: 3.016 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006921/0.5849, allocations: 411.9 kB / 0.6357 GB, free: 2.605 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.585, allocations: 305.1 kB / 0.636 GB, free: 2.305 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001542/0.5866, allocations: 0.789 MB / 0.6367 GB, free: 1.512 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002176/0.5887, allocations: 1.371 MB / 0.6381 GB, free: 15.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003898/0.5926, allocations: 2.36 MB / 0.6404 GB, free: 13.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.5926, allocations: 8 kB / 0.6404 GB, free: 13.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01357/0.6062, allocations: 3.38 MB / 0.6437 GB, free: 9.859 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.6062, allocations: 16 kB / 0.6437 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/0.6063, allocations: 16 kB / 0.6437 GB, free: 9.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004352/0.6106, allocations: 0.8185 MB / 0.6445 GB, free: 9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/0.6129, allocations: 0.511 MB / 0.645 GB, free: 8.488 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006278/0.6192, allocations: 3.616 MB / 0.6486 GB, free: 4.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.6209, allocations: 71.98 kB / 0.6486 GB, free: 4.598 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002353/0.6211, allocations: 124 kB / 0.6487 GB, free: 4.477 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.0008502/0.6219, allocations: 405 kB / 0.6491 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003507/0.6223, allocations: 147.1 kB / 0.6493 GB, free: 3.926 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/0.6358, allocations: 3.326 MB / 0.6525 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.6359, allocations: 24 kB / 0.6525 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.6359, allocations: 0 / 0.6525 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-05/0.6359, allocations: 11.97 kB / 0.6525 GB, free: 0.543 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/0.6516, allocations: 4.746 MB / 0.6572 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.6516, allocations: 0 / 0.6572 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/0.6533, allocations: 363.5 kB / 0.6575 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004088/0.6574, allocations: 0.7945 MB / 0.6583 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/0.6576, allocations: 67.94 kB / 0.6584 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005819/0.6635, allocations: 3.508 MB / 0.6618 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.6635, allocations: 3.938 kB / 0.6618 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01453/0.678, allocations: 4.233 MB / 0.6659 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.6784, allocations: 127 kB / 0.6661 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/0.6786, allocations: 36 kB / 0.6661 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000974/0.6796, allocations: 43.98 kB / 0.6661 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005555/0.6801, allocations: 201.6 kB / 0.6663 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/0.6803, allocations: 83.94 kB / 0.6664 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008149/0.6811, allocations: 0.5292 MB / 0.6669 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6811, allocations: 0 / 0.6669 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003598/0.6847, allocations: 1.192 MB / 0.6681 GB, free: 340 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.002991/0.6877, allocations: 1.359 MB / 0.6694 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00508/0.6928, allocations: 2.347 MB / 0.6717 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6928, allocations: 0 / 0.6717 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002715/0.6955, allocations: 1.306 MB / 0.673 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.6971, allocations: 310.4 kB / 0.6733 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006969/0.7041, allocations: 3.393 MB / 0.6766 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008261/0.7049, allocations: 0.7517 MB / 0.6773 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00154/0.7065, allocations: 419.6 kB / 0.6777 GB, free: 6.32 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006422/0.7071, allocations: 267.1 kB / 0.678 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of SimCode: time 1.253e-06/0.7071, allocations: 0 / 0.678 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of Templates: time 0.07553/0.7826, allocations: 49.75 MB / 0.7266 GB, free: 4.574 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 gbode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 6.839556164995884] Failed to read output from testmodel.py, exit status != 0: 0.7914784409949789 0.965758208 0.47737938999999996 Calling exit ...