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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.07858/0.07858, allocations: 15.29 MB / 31.08 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 202 kB / 36.14 MB, free: 2.137 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 264 MB, free: 4.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009922/0.000992, allocations: 111.7 kB / 318.4 MB, free: 3.418 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009302/0.0009303, allocations: 57.95 kB / 382.7 MB, free: 48.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08143, allocations: 53.62 MB / 436.3 MB, free: 1.02 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.02952/0.111, allocations: 26.62 MB / 463 MB, free: 6.492 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02785/0.1388, allocations: 28.36 MB / 491.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.1405, allocations: 43.69 kB / 491.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.1418, allocations: 0.5084 MB / 491.9 MB, free: 9.465 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005874/0.1477, allocations: 2.221 MB / 494.1 MB, free: 7.23 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007619/0.1554, allocations: 3.078 MB / 497.2 MB, free: 4.137 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002998/0.1584, allocations: 2.681 MB / 499.9 MB, free: 1.445 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.16, allocations: 1.432 MB / 0.4895 GB, free: 15.98 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001743/0.1618, allocations: 1.399 MB / 0.4909 GB, free: 14.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.1637, allocations: 1.585 MB / 0.4924 GB, free: 12.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.164, allocations: 168 kB / 0.4926 GB, free: 12.82 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007866/0.1718, allocations: 3.01 MB / 0.4955 GB, free: 9.805 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006732/0.1725, allocations: 0.5452 MB / 0.4961 GB, free: 9.258 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.1741, allocations: 1.143 MB / 0.4972 GB, free: 8.109 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.1853, allocations: 5.477 MB / 0.5025 GB, free: 2.613 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1853, allocations: 3.984 kB / 0.5025 GB, free: 2.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1853, allocations: 0 / 0.5025 GB, free: 2.609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.946e-05/0.1854, allocations: 0 / 0.5025 GB, free: 2.609 MB / 378.7 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.1647/0.3501, allocations: 2.968 MB / 0.5054 GB, free: 68.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.3501, allocations: 10.81 kB / 0.5055 GB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00193/0.3521, allocations: 463.7 kB / 0.5059 GB, free: 68.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.3536, allocations: 1.057 MB / 0.5069 GB, free: 68.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.3537, allocations: 248.1 kB / 0.5072 GB, free: 68.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/0.354, allocations: 192 kB / 0.5074 GB, free: 68.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/0.3574, allocations: 2.504 MB / 0.5098 GB, free: 68.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.3574, allocations: 5.25 kB / 0.5098 GB, free: 68.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001747/0.3576, allocations: 74 kB / 0.5099 GB, free: 68.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.789e-05/0.3577, allocations: 45.16 kB / 0.5099 GB, free: 68.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004563/0.3622, allocations: 3.19 MB / 0.513 GB, free: 68.09 MB / 378.7 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.0153/0.3776, allocations: 8.342 MB / 0.5212 GB, free: 64.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008884/0.3865, allocations: 5.414 MB / 0.5265 GB, free: 62.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.3881, allocations: 1.282 MB / 0.5277 GB, free: 61.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.3993, allocations: 10.27 MB / 0.5377 GB, free: 52.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.3993, allocations: 43.84 kB / 0.5378 GB, free: 52.41 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009196/0.4002, allocations: 239.2 kB / 0.538 GB, free: 52.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=158): time 3.476e-06/0.4003, allocations: 0 / 0.538 GB, free: 52.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=187): time 0.02429/0.4245, allocations: 7.553 MB / 0.5454 GB, free: 46.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.4246, allocations: 69.41 kB / 0.5455 GB, free: 46.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008563/0.4255, allocations: 0.9038 MB / 0.5463 GB, free: 45.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.4256, allocations: 53.7 kB / 0.5464 GB, free: 45.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.4259, allocations: 0.8054 MB / 0.5472 GB, free: 44.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003271/0.4263, allocations: 0.6231 MB / 0.5478 GB, free: 44.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004784/0.4267, allocations: 415.8 kB / 0.5482 GB, free: 43.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.142e-05/0.4268, allocations: 311.7 kB / 0.5485 GB, free: 43.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.4278, allocations: 0.7812 MB / 0.5492 GB, free: 42.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.4292, allocations: 1.379 MB / 0.5506 GB, free: 41.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.4316, allocations: 2.366 MB / 0.5529 GB, free: 38.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.4316, allocations: 6.938 kB / 0.5529 GB, free: 38.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.009984/0.4416, allocations: 3.388 MB / 0.5562 GB, free: 35.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.4417, allocations: 12 kB / 0.5562 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.4417, allocations: 20 kB / 0.5562 GB, free: 35.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003281/0.445, allocations: 0.8134 MB / 0.557 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.4467, allocations: 0.5187 MB / 0.5575 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00412/0.4508, allocations: 3.519 MB / 0.561 GB, free: 30.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.4524, allocations: 111.3 kB / 0.5611 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.4526, allocations: 120 kB / 0.5612 GB, free: 29.83 MB / 378.7 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.0006338/0.4532, allocations: 407.1 kB / 0.5616 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.4535, allocations: 146.2 kB / 0.5617 GB, free: 29.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/0.464, allocations: 3.328 MB / 0.565 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.464, allocations: 20 kB / 0.565 GB, free: 26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.4641, allocations: 10.62 kB / 0.565 GB, free: 25.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.254e-05/0.4641, allocations: 7.969 kB / 0.565 GB, free: 25.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.4766, allocations: 5.223 MB / 0.5701 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.4767, allocations: 2.688 kB / 0.5701 GB, free: 20.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/0.4781, allocations: 363.5 kB / 0.5705 GB, free: 20.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003267/0.4814, allocations: 0.7938 MB / 0.5712 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002295/0.4816, allocations: 71.94 kB / 0.5713 GB, free: 19.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.4854, allocations: 3.415 MB / 0.5746 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4854, allocations: 0 / 0.5746 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03194/0.5173, allocations: 15.03 MB / 0.5893 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.5176, allocations: 209.8 kB / 0.5895 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/0.5178, allocations: 36 kB / 0.5896 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009384/0.5187, allocations: 78.48 kB / 0.5896 GB, free: 336 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004261/0.5192, allocations: 193.7 kB / 0.5898 GB, free: 144 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.5193, allocations: 83.88 kB / 0.5899 GB, free: 60 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006858/0.52, allocations: 0.5768 MB / 0.5905 GB, free: 15.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.52, allocations: 0 / 0.5905 GB, free: 15.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003617/0.5236, allocations: 1.372 MB / 0.5918 GB, free: 14.23 MB / 394.7 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.002159/0.5258, allocations: 1.284 MB / 0.593 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004639/0.5304, allocations: 2.563 MB / 0.5956 GB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5305, allocations: 0 / 0.5956 GB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/0.533, allocations: 1.494 MB / 0.597 GB, free: 9.137 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.5346, allocations: 296.3 kB / 0.5973 GB, free: 8.863 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007801/0.5424, allocations: 5.288 MB / 0.6025 GB, free: 3.621 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008563/0.5433, allocations: 1.386 MB / 0.6038 GB, free: 2.223 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001898/0.5452, allocations: 454.9 kB / 0.6042 GB, free: 1.895 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006714/0.5459, allocations: 283.3 kB / 0.6045 GB, free: 1.625 MB / 394.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5459, allocations: 0 / 0.6045 GB, free: 1.625 MB / 394.7 MB Notification: Performance of Templates: time 0.06326/0.6091, allocations: 49.03 MB / 0.6524 GB, free: 1.027 MB / 442.7 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)