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.0009532/0.0009533, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001176, allocations: 173 kB / 16.92 MB, free: 6.652 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.367/1.367, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1844/0.1844, allocations: 15.27 MB / 307.4 MB, free: 15.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.0003189, allocations: 8 kB / 372.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2853, allocations: 54.62 MB / 427.4 MB, free: 40.46 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.0318/0.3172, allocations: 28.61 MB / 456 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02713/0.3443, allocations: 28.3 MB / 484.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.3463, allocations: 39.69 kB / 484.3 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.3481, allocations: 0.513 MB / 484.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007583/0.3557, allocations: 2.283 MB / 487.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009853/0.3656, allocations: 3.077 MB / 490.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003563/0.3692, allocations: 2.659 MB / 492.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002237/0.3714, allocations: 1.36 MB / 494.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.374, allocations: 1.337 MB / 495.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003208/0.3772, allocations: 1.502 MB / 497.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001093/0.3783, allocations: 139.9 kB / 497.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01212/0.3905, allocations: 3.069 MB / 0.4885 GB, free: 11.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001394/0.3919, allocations: 0.5097 MB / 0.489 GB, free: 11.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002645/0.3946, allocations: 1.112 MB / 0.4901 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008435/0.403, allocations: 4.34 MB / 0.4944 GB, free: 6.871 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4031, allocations: 3.938 kB / 0.4944 GB, free: 6.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4031, allocations: 4 kB / 0.4944 GB, free: 6.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001249/0.4032, allocations: 0 / 0.4944 GB, free: 6.863 MB / 366.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.007131/0.4103, allocations: 2.464 MB / 0.4968 GB, free: 4.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4104, allocations: 15.97 kB / 0.4968 GB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002612/0.413, allocations: 464.3 kB / 0.4972 GB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002184/0.4152, allocations: 1.021 MB / 0.4982 GB, free: 3.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002648/0.4155, allocations: 255 kB / 0.4985 GB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007631/0.4163, allocations: 188.3 kB / 0.4986 GB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005244/0.4215, allocations: 2.512 MB / 0.5011 GB, free: 52 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.785e-05/0.4216, allocations: 3.984 kB / 0.5011 GB, free: 48 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.4219, allocations: 76.08 kB / 0.5012 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4e-05/0.4219, allocations: 44 kB / 0.5012 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005356/0.4273, allocations: 3.188 MB / 0.5043 GB, free: 12.73 MB / 382.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.01544/0.4428, allocations: 8.297 MB / 0.5124 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009606/0.4524, allocations: 5.407 MB / 0.5177 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002508/0.4549, allocations: 1.28 MB / 0.519 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01531/0.4703, allocations: 10.05 MB / 0.5288 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/0.4704, allocations: 51.81 kB / 0.5288 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001207/0.4716, allocations: 238.3 kB / 0.5291 GB, free: 1.902 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 4.098e-06/0.4716, allocations: 4 kB / 0.5291 GB, free: 1.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.03184/0.5034, allocations: 7.586 MB / 0.5365 GB, free: 10.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.5035, allocations: 73.34 kB / 0.5365 GB, free: 10.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.5047, allocations: 0.9011 MB / 0.5374 GB, free: 9.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004158/0.5051, allocations: 57.7 kB / 0.5375 GB, free: 9.145 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007081/0.5059, allocations: 0.8105 MB / 0.5383 GB, free: 8.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009307/0.5068, allocations: 0.6353 MB / 0.5389 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002695/0.5071, allocations: 170 kB / 0.5391 GB, free: 7.504 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.677e-05/0.5072, allocations: 305.1 kB / 0.5393 GB, free: 7.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.5087, allocations: 0.7851 MB / 0.5401 GB, free: 6.414 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.5105, allocations: 1.371 MB / 0.5414 GB, free: 4.781 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003481/0.514, allocations: 2.368 MB / 0.5438 GB, free: 2.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.514, allocations: 4 kB / 0.5438 GB, free: 2.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01278/0.5268, allocations: 3.399 MB / 0.5471 GB, free: 14.74 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.5269, allocations: 18.09 kB / 0.5471 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.5269, allocations: 16 kB / 0.5471 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004191/0.5311, allocations: 0.8296 MB / 0.5479 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002194/0.5334, allocations: 0.5188 MB / 0.5484 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005797/0.5392, allocations: 3.539 MB / 0.5519 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.5412, allocations: 107.9 kB / 0.552 GB, free: 9.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/0.5415, allocations: 124 kB / 0.5521 GB, free: 9.309 MB / 430.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.0009044/0.5424, allocations: 401 kB / 0.5525 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.5427, allocations: 150.1 kB / 0.5526 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/0.556, allocations: 3.35 MB / 0.5559 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.039e-05/0.5561, allocations: 20 kB / 0.5559 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.5561, allocations: 0 / 0.5559 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.324e-05/0.5561, allocations: 11.95 kB / 0.5559 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/0.5723, allocations: 5.234 MB / 0.5611 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/0.5724, allocations: 0 / 0.5611 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001948/0.5744, allocations: 363.5 kB / 0.5614 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004232/0.5786, allocations: 0.8023 MB / 0.5622 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003498/0.579, allocations: 71.88 kB / 0.5622 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005169/0.5842, allocations: 3.449 MB / 0.5656 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5842, allocations: 4.062 kB / 0.5656 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/0.5987, allocations: 4.239 MB / 0.5698 GB, free: 6.832 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004392/0.5992, allocations: 215.1 kB / 0.57 GB, free: 6.602 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003531/0.5995, allocations: 32 kB / 0.57 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.6007, allocations: 75.8 kB / 0.5701 GB, free: 6.496 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004848/0.6012, allocations: 197.7 kB / 0.5703 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/0.6014, allocations: 79.94 kB / 0.5703 GB, free: 6.223 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007803/0.6022, allocations: 0.5703 MB / 0.5709 GB, free: 5.645 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6022, allocations: 0 / 0.5709 GB, free: 5.645 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003433/0.6056, allocations: 1.175 MB / 0.572 GB, free: 4.469 MB / 446.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.002843/0.6085, allocations: 1.319 MB / 0.5733 GB, free: 3.141 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005085/0.6136, allocations: 2.559 MB / 0.5758 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.6136, allocations: 0 / 0.5758 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002722/0.6164, allocations: 1.506 MB / 0.5773 GB, free: 14.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.6181, allocations: 288 kB / 0.5776 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.6254, allocations: 4.312 MB / 0.5818 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009002/0.6264, allocations: 1.322 MB / 0.5831 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/0.6274, allocations: 343 kB / 0.5834 GB, free: 8.672 MB / 462.1 MB Notification: Performance of SimCode: time 1.103e-06/0.6275, allocations: 0 / 0.5834 GB, free: 8.672 MB / 462.1 MB Notification: Performance of Templates: time 0.2363/0.8638, allocations: 55.27 MB / 0.6374 GB, free: 116.7 MB / 462.1 MB 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)