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.001568/0.001568, allocations: 122.8 kB / 17.13 MB, free: 6.02 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.001697/0.001697, allocations: 204.7 kB / 20.1 MB, free: 3.07 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.491/1.491, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.1352/0.1352, allocations: 23.9 MB / 333.4 MB, free: 1.172 MB / 254.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.002104/0.002104, allocations: 73.94 kB / 467.2 MB, free: 30.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.09079, allocations: 59.84 MB / 0.5147 GB, free: 12.38 MB / 382.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.04112/0.1319, allocations: 29.64 MB / 0.5437 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03584/0.1677, allocations: 28.85 MB / 0.5718 GB, free: 1.805 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.1689, allocations: 31.75 kB / 0.5719 GB, free: 1.773 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.1704, allocations: 0.5739 MB / 0.5724 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006755/0.1771, allocations: 2.6 MB / 0.575 GB, free: 14.58 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008927/0.1861, allocations: 3.53 MB / 0.5784 GB, free: 11.03 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00361/0.1897, allocations: 2.72 MB / 0.5811 GB, free: 8.293 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.1914, allocations: 1.41 MB / 0.5825 GB, free: 6.848 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.1931, allocations: 1.45 MB / 0.5839 GB, free: 5.395 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002346/0.1954, allocations: 1.651 MB / 0.5855 GB, free: 3.738 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004372/0.1959, allocations: 248 kB / 0.5857 GB, free: 3.496 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008898/0.2048, allocations: 3.19 MB / 0.5888 GB, free: 308 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2137/0.4185, allocations: 0.6151 MB / 0.5894 GB, free: 25.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.4202, allocations: 1.209 MB / 0.5906 GB, free: 25.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.4324, allocations: 6.131 MB / 0.5966 GB, free: 25.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4324, allocations: 1.438 kB / 0.5966 GB, free: 25.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4324, allocations: 0 / 0.5966 GB, free: 25.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.859e-05/0.4324, allocations: 4.656 kB / 0.5966 GB, free: 25.59 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.006974/0.4394, allocations: 3.008 MB / 0.5995 GB, free: 24.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.4394, allocations: 9.875 kB / 0.5996 GB, free: 24.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002367/0.4418, allocations: 471.6 kB / 0.6 GB, free: 24.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.4438, allocations: 1.122 MB / 0.6011 GB, free: 23.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.4439, allocations: 253.3 kB / 0.6013 GB, free: 23.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004274/0.4444, allocations: 189.8 kB / 0.6015 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004069/0.4484, allocations: 2.532 MB / 0.604 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.4485, allocations: 2.375 kB / 0.604 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002781/0.4487, allocations: 73.72 kB / 0.6041 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.843e-05/0.4488, allocations: 49.25 kB / 0.6041 GB, free: 23.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00523/0.454, allocations: 3.213 MB / 0.6073 GB, free: 23.41 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.01246/0.4665, allocations: 8.477 MB / 0.6155 GB, free: 19.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008106/0.4746, allocations: 5.283 MB / 0.6207 GB, free: 17.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.4762, allocations: 1.161 MB / 0.6218 GB, free: 17.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01147/0.4877, allocations: 10.33 MB / 0.6319 GB, free: 8.941 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.4877, allocations: 43.81 kB / 0.632 GB, free: 8.895 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001303/0.489, allocations: 316.9 kB / 0.6323 GB, free: 8.723 MB / 446.1 MB Notification: Performance of pre-optimization done (n=158): time 4.168e-06/0.489, allocations: 0 / 0.6323 GB, free: 8.723 MB / 446.1 MB Notification: Performance of matching and sorting (n=187): time 0.02734/0.5164, allocations: 7.574 MB / 0.6397 GB, free: 3.637 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/0.5164, allocations: 69.41 kB / 0.6397 GB, free: 3.555 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008587/0.5172, allocations: 0.9059 MB / 0.6406 GB, free: 2.633 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.5174, allocations: 60.39 kB / 0.6407 GB, free: 2.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.5177, allocations: 0.8199 MB / 0.6415 GB, free: 1.746 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003949/0.5181, allocations: 0.6673 MB / 0.6421 GB, free: 1.086 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005161/0.5186, allocations: 419.9 kB / 0.6425 GB, free: 0.668 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.982e-05/0.5186, allocations: 305.1 kB / 0.6428 GB, free: 376 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.5201, allocations: 0.7812 MB / 0.6436 GB, free: 15.58 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/0.5222, allocations: 1.38 MB / 0.6449 GB, free: 13.97 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003941/0.5261, allocations: 2.366 MB / 0.6472 GB, free: 11.47 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.5261, allocations: 8 kB / 0.6472 GB, free: 11.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01283/0.539, allocations: 3.379 MB / 0.6505 GB, free: 8.215 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.539, allocations: 12 kB / 0.6505 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/0.539, allocations: 20 kB / 0.6506 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004104/0.5431, allocations: 0.8217 MB / 0.6514 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001997/0.5451, allocations: 0.5161 MB / 0.6519 GB, free: 6.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006196/0.5513, allocations: 3.893 MB / 0.6557 GB, free: 2.793 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.5529, allocations: 67.98 kB / 0.6557 GB, free: 2.727 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/0.5532, allocations: 123.9 kB / 0.6559 GB, free: 2.605 MB / 462.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.0008482/0.554, allocations: 400 kB / 0.6562 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003564/0.5544, allocations: 159 kB / 0.6564 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01336/0.5677, allocations: 3.322 MB / 0.6596 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.5677, allocations: 22.69 kB / 0.6597 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5677, allocations: 0 / 0.6597 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.1e-05/0.5678, allocations: 19.89 kB / 0.6597 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/0.5838, allocations: 5.219 MB / 0.6648 GB, free: 9.598 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5838, allocations: 0 / 0.6648 GB, free: 9.598 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.5854, allocations: 368.7 kB / 0.6651 GB, free: 9.258 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003963/0.5894, allocations: 0.7921 MB / 0.6659 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.5896, allocations: 71.94 kB / 0.666 GB, free: 8.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00573/0.5953, allocations: 3.794 MB / 0.6697 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.5953, allocations: 2.719 kB / 0.6697 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/0.6096, allocations: 4.239 MB / 0.6738 GB, free: 160 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004629/0.6101, allocations: 216 kB / 0.674 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/0.6103, allocations: 36 kB / 0.6741 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.6113, allocations: 39.98 kB / 0.6741 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005393/0.6119, allocations: 197.7 kB / 0.6743 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001856/0.6121, allocations: 83.94 kB / 0.6744 GB, free: 15.58 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008636/0.6129, allocations: 0.5768 MB / 0.6749 GB, free: 15 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6129, allocations: 0 / 0.6749 GB, free: 15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00374/0.6167, allocations: 1.192 MB / 0.6761 GB, free: 13.8 MB / 494.1 MB 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.002728/0.6194, allocations: 1.363 MB / 0.6774 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004946/0.6243, allocations: 2.415 MB / 0.6798 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.6243, allocations: 0 / 0.6798 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002812/0.6272, allocations: 1.385 MB / 0.6811 GB, free: 8.906 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.6287, allocations: 320 kB / 0.6814 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006838/0.6356, allocations: 3.451 MB / 0.6848 GB, free: 5.207 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.6366, allocations: 1.325 MB / 0.6861 GB, free: 3.871 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000907/0.6375, allocations: 346.9 kB / 0.6864 GB, free: 3.543 MB / 494.1 MB Notification: Performance of SimCode: time 3.105e-06/0.6375, allocations: 0 / 0.6864 GB, free: 3.543 MB / 494.1 MB Notification: Performance of Templates: time 0.07035/0.7079, allocations: 56.47 MB / 0.7416 GB, free: 11.67 MB / 0.545 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 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.872205453983042] Failed to read output from testmodel.py, exit status != 0: 0.7159280109917745 0.729892944 0.294498976 Calling exit ...