Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 109.9 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08274/0.08274, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.91 kB / 425.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 53.61 MB / 479.5 MB, free: 5.809 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.Phosphate): time 0.0378/0.1465, allocations: 28.32 MB / 0.4959 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.28/0.4265, allocations: 28.69 MB / 0.5239 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.4282, allocations: 22.75 kB / 0.5239 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.43, allocations: 0.5673 MB / 0.5245 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008933/0.439, allocations: 2.58 MB / 0.527 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01185/0.4508, allocations: 3.52 MB / 0.5304 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004614/0.4555, allocations: 2.711 MB / 0.5331 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002538/0.458, allocations: 1.63 MB / 0.5347 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002684/0.4607, allocations: 1.422 MB / 0.5361 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003501/0.4643, allocations: 1.612 MB / 0.5376 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.4653, allocations: 252.8 kB / 0.5379 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01278/0.4781, allocations: 3.141 MB / 0.5409 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.4793, allocations: 0.6104 MB / 0.5415 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002529/0.4819, allocations: 1.21 MB / 0.5427 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01596/0.4979, allocations: 5.935 MB / 0.5485 GB, free: 15.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.4979, allocations: 0 / 0.5485 GB, free: 15.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4979, allocations: 0 / 0.5485 GB, free: 15.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000126/0.4981, allocations: 2.625 kB / 0.5485 GB, free: 15.84 MB / 398.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.008284/0.5064, allocations: 2.989 MB / 0.5514 GB, free: 12.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.5064, allocations: 10.72 kB / 0.5514 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002455/0.5089, allocations: 465.5 kB / 0.5519 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002058/0.511, allocations: 1.092 MB / 0.553 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002387/0.5112, allocations: 255 kB / 0.5532 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005296/0.5118, allocations: 188.3 kB / 0.5534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004707/0.5165, allocations: 2.511 MB / 0.5558 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.5165, allocations: 4 kB / 0.5558 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002223/0.5167, allocations: 68 kB / 0.5559 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.5168, allocations: 44 kB / 0.5559 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00496/0.5218, allocations: 3.194 MB / 0.5591 GB, free: 4.922 MB / 398.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.0154/0.5372, allocations: 8.327 MB / 0.5672 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009313/0.5465, allocations: 5.415 MB / 0.5725 GB, free: 6.805 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002262/0.5488, allocations: 1.274 MB / 0.5737 GB, free: 5.531 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0151/0.5639, allocations: 10.24 MB / 0.5837 GB, free: 10.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/0.564, allocations: 55.81 kB / 0.5838 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001157/0.5652, allocations: 238.2 kB / 0.584 GB, free: 9.926 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 9.498e-06/0.5652, allocations: 0 / 0.584 GB, free: 9.926 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.03033/0.5956, allocations: 7.564 MB / 0.5914 GB, free: 2.328 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.5957, allocations: 73.41 kB / 0.5915 GB, free: 2.246 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.597, allocations: 0.9011 MB / 0.5923 GB, free: 1.328 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003663/0.5974, allocations: 60.36 kB / 0.5924 GB, free: 1.266 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005599/0.598, allocations: 0.7949 MB / 0.5932 GB, free: 468 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008529/0.5989, allocations: 0.6394 MB / 0.5938 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009546/0.5998, allocations: 411.8 kB / 0.5942 GB, free: 15.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5999, allocations: 309 kB / 0.5945 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.6015, allocations: 0.7877 MB / 0.5953 GB, free: 14.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.6036, allocations: 1.373 MB / 0.5966 GB, free: 12.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003758/0.6073, allocations: 2.359 MB / 0.5989 GB, free: 10.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.173e-05/0.6074, allocations: 4 kB / 0.5989 GB, free: 10.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.0124/0.6198, allocations: 3.391 MB / 0.6022 GB, free: 6.734 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.532e-05/0.6199, allocations: 12 kB / 0.6022 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/0.6199, allocations: 19.94 kB / 0.6022 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003731/0.6237, allocations: 0.8163 MB / 0.603 GB, free: 5.914 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002133/0.6258, allocations: 0.5188 MB / 0.6036 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005568/0.6314, allocations: 3.894 MB / 0.6074 GB, free: 1.238 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.6333, allocations: 71.98 kB / 0.6074 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004834/0.6338, allocations: 126.6 kB / 0.6075 GB, free: 1.047 MB / 446.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.001186/0.635, allocations: 397.1 kB / 0.6079 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005809/0.6356, allocations: 142.2 kB / 0.6081 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/0.6486, allocations: 3.335 MB / 0.6113 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-05/0.6486, allocations: 16 kB / 0.6113 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/0.6487, allocations: 4 kB / 0.6113 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.055e-05/0.6487, allocations: 15.89 kB / 0.6113 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/0.6651, allocations: 5.235 MB / 0.6165 GB, free: 7.914 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.6651, allocations: 0 / 0.6165 GB, free: 7.914 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/0.6669, allocations: 362.2 kB / 0.6168 GB, free: 7.562 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003656/0.6706, allocations: 0.7918 MB / 0.6176 GB, free: 6.781 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004279/0.671, allocations: 70.58 kB / 0.6176 GB, free: 6.715 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005136/0.6762, allocations: 3.794 MB / 0.6214 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.6762, allocations: 0 / 0.6214 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01458/0.6908, allocations: 4.236 MB / 0.6255 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004861/0.6914, allocations: 211.2 kB / 0.6257 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005644/0.6919, allocations: 34.69 kB / 0.6257 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.6933, allocations: 39.98 kB / 0.6258 GB, free: 14.13 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006403/0.6939, allocations: 197.7 kB / 0.6259 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/0.6942, allocations: 82.61 kB / 0.626 GB, free: 13.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009379/0.6952, allocations: 0.5703 MB / 0.6266 GB, free: 13.28 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6952, allocations: 4 kB / 0.6266 GB, free: 13.27 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003965/0.6992, allocations: 1.175 MB / 0.6277 GB, free: 12.1 MB / 478.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.00338/0.7026, allocations: 1.328 MB / 0.629 GB, free: 10.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005486/0.7081, allocations: 2.555 MB / 0.6315 GB, free: 8.227 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.7081, allocations: 3.938 kB / 0.6315 GB, free: 8.223 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.7111, allocations: 1.512 MB / 0.633 GB, free: 6.668 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.7131, allocations: 325.4 kB / 0.6333 GB, free: 6.387 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00719/0.7203, allocations: 3.379 MB / 0.6366 GB, free: 3.012 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.7214, allocations: 1.325 MB / 0.6379 GB, free: 1.664 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/0.7225, allocations: 353.8 kB / 0.6382 GB, free: 1.328 MB / 478.1 MB Notification: Performance of SimCode: time 7.51e-07/0.7226, allocations: 0 / 0.6382 GB, free: 1.328 MB / 478.1 MB Notification: Performance of Templates: time 0.07183/0.7944, allocations: 55.57 MB / 0.6925 GB, free: 9.941 MB / 0.5294 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)