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.001202/0.001202, allocations: 105.2 kB / 16.41 MB, free: 6.5 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.001224/0.001224, allocations: 197.4 kB / 17.34 MB, free: 5.762 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08355/0.08355, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 59.91 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1078, allocations: 53.62 MB / 479.5 MB, free: 5.789 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.04047/0.1483, allocations: 28.21 MB / 0.4958 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2813/0.4296, allocations: 28.68 MB / 0.5238 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001587/0.4312, allocations: 23.84 kB / 0.5238 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001845/0.4331, allocations: 0.5717 MB / 0.5244 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008669/0.4417, allocations: 2.577 MB / 0.5269 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01076/0.4525, allocations: 3.513 MB / 0.5303 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004456/0.457, allocations: 2.716 MB / 0.533 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002472/0.4595, allocations: 1.63 MB / 0.5346 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002416/0.4619, allocations: 1.413 MB / 0.5359 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.4652, allocations: 1.608 MB / 0.5375 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008794/0.4661, allocations: 248.9 kB / 0.5378 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01153/0.4776, allocations: 3.15 MB / 0.5408 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.4787, allocations: 0.6149 MB / 0.5414 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002224/0.4809, allocations: 1.211 MB / 0.5426 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01367/0.4946, allocations: 5.913 MB / 0.5484 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4947, allocations: 0 / 0.5484 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4947, allocations: 0 / 0.5484 GB, free: 15.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.888e-05/0.4948, allocations: 0 / 0.5484 GB, free: 15.93 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.007113/0.5019, allocations: 2.988 MB / 0.5513 GB, free: 12.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.5019, allocations: 12.02 kB / 0.5513 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002268/0.5042, allocations: 464.2 kB / 0.5518 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.5062, allocations: 1.097 MB / 0.5528 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.5064, allocations: 255 kB / 0.5531 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004071/0.5068, allocations: 188.3 kB / 0.5533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00453/0.5113, allocations: 2.511 MB / 0.5557 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/0.5114, allocations: 0.875 kB / 0.5557 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/0.5116, allocations: 81.45 kB / 0.5558 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-05/0.5116, allocations: 44 kB / 0.5558 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005083/0.5167, allocations: 3.188 MB / 0.5589 GB, free: 5.004 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.01434/0.5311, allocations: 8.335 MB / 0.5671 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009039/0.5402, allocations: 5.405 MB / 0.5724 GB, free: 6.887 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002105/0.5423, allocations: 1.282 MB / 0.5736 GB, free: 5.605 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01453/0.5568, allocations: 10.23 MB / 0.5836 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/0.5569, allocations: 51.81 kB / 0.5836 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001014/0.5579, allocations: 240.9 kB / 0.5839 GB, free: 10.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 8.666e-06/0.558, allocations: 2.672 kB / 0.5839 GB, free: 10.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.0286/0.5866, allocations: 7.561 MB / 0.5913 GB, free: 2.414 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.5867, allocations: 73.34 kB / 0.5913 GB, free: 2.332 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.5878, allocations: 0.905 MB / 0.5922 GB, free: 1.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002379/0.5881, allocations: 53.7 kB / 0.5923 GB, free: 1.352 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.5886, allocations: 0.8066 MB / 0.5931 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006271/0.5892, allocations: 0.6354 MB / 0.5937 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006826/0.5899, allocations: 414.4 kB / 0.5941 GB, free: 15.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.59, allocations: 305.1 kB / 0.5944 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.5915, allocations: 0.7851 MB / 0.5951 GB, free: 14.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001887/0.5934, allocations: 1.375 MB / 0.5965 GB, free: 12.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003517/0.5969, allocations: 2.363 MB / 0.5988 GB, free: 10.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.807e-05/0.597, allocations: 4 kB / 0.5988 GB, free: 10.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01165/0.6086, allocations: 3.386 MB / 0.6021 GB, free: 6.812 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/0.6087, allocations: 12 kB / 0.6021 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.6087, allocations: 20 kB / 0.6021 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003473/0.6122, allocations: 0.8189 MB / 0.6029 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001997/0.6142, allocations: 0.5201 MB / 0.6034 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006023/0.6202, allocations: 3.888 MB / 0.6072 GB, free: 1.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.6221, allocations: 73.98 kB / 0.6073 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004035/0.6225, allocations: 123.9 kB / 0.6074 GB, free: 1.129 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.001167/0.6237, allocations: 403.7 kB / 0.6078 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005709/0.6242, allocations: 150.2 kB / 0.6079 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01222/0.6365, allocations: 3.317 MB / 0.6112 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.95e-05/0.6365, allocations: 23.98 kB / 0.6112 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.6366, allocations: 2.625 kB / 0.6112 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.813e-05/0.6366, allocations: 18.62 kB / 0.6112 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01538/0.652, allocations: 5.221 MB / 0.6163 GB, free: 8.004 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.6521, allocations: 10.62 kB / 0.6163 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/0.6537, allocations: 355.6 kB / 0.6167 GB, free: 7.648 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003442/0.6571, allocations: 0.7944 MB / 0.6174 GB, free: 6.867 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000276/0.6574, allocations: 67.94 kB / 0.6175 GB, free: 6.801 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004975/0.6624, allocations: 3.799 MB / 0.6212 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.6625, allocations: 0 / 0.6212 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/0.6755, allocations: 4.229 MB / 0.6254 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003783/0.6759, allocations: 207.2 kB / 0.6256 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003398/0.6762, allocations: 35.98 kB / 0.6256 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.6772, allocations: 49.3 kB / 0.6256 GB, free: 14.21 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004457/0.6777, allocations: 197.7 kB / 0.6258 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/0.6779, allocations: 75.95 kB / 0.6259 GB, free: 13.94 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007766/0.6787, allocations: 0.5742 MB / 0.6265 GB, free: 13.36 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6787, allocations: 0 / 0.6265 GB, free: 13.36 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003146/0.6818, allocations: 1.189 MB / 0.6276 GB, free: 12.17 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.002853/0.6847, allocations: 1.325 MB / 0.6289 GB, free: 10.89 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004687/0.6894, allocations: 2.561 MB / 0.6314 GB, free: 8.297 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6894, allocations: 0 / 0.6314 GB, free: 8.297 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002544/0.692, allocations: 1.509 MB / 0.6329 GB, free: 6.746 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.6936, allocations: 321.5 kB / 0.6332 GB, free: 6.469 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006496/0.7001, allocations: 3.381 MB / 0.6365 GB, free: 3.094 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000932/0.7011, allocations: 1.321 MB / 0.6378 GB, free: 1.742 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009277/0.702, allocations: 348.5 kB / 0.6381 GB, free: 1.41 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.702, allocations: 4 kB / 0.6381 GB, free: 1.406 MB / 478.1 MB Notification: Performance of Templates: time 0.06367/0.7657, allocations: 55.37 MB / 0.6922 GB, free: 10.22 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)