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.0008132/0.0008132, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005406/0.005406, allocations: 169.6 kB / 16.27 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.358/1.358, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1947/0.1947, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004464/0.0004461, allocations: 8 kB / 372.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2911, allocations: 54.63 MB / 426.7 MB, free: 40.04 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.03025/0.3214, allocations: 27.96 MB / 454.7 MB, free: 29.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02576/0.3472, allocations: 28.3 MB / 483 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.3491, allocations: 39.69 kB / 483 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.3511, allocations: 0.5216 MB / 483.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008423/0.3595, allocations: 2.281 MB / 485.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01083/0.3704, allocations: 3.081 MB / 488.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00362/0.3741, allocations: 2.661 MB / 491.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.376, allocations: 1.361 MB / 492.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.3781, allocations: 1.335 MB / 494.3 MB, free: 0 / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003269/0.3814, allocations: 1.505 MB / 495.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005898/0.382, allocations: 140 kB / 495.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0121/0.3941, allocations: 3.069 MB / 499 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.3954, allocations: 0.5029 MB / 499.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.3973, allocations: 1.107 MB / 0.4888 GB, free: 10.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0154/0.4127, allocations: 5.502 MB / 0.4942 GB, free: 6.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4127, allocations: 4 kB / 0.4942 GB, free: 6.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.686e-06/0.4128, allocations: 4 kB / 0.4942 GB, free: 6.176 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.69e-05/0.4129, allocations: 0 / 0.4942 GB, free: 6.176 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.007477/0.4203, allocations: 2.474 MB / 0.4966 GB, free: 3.914 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.4204, allocations: 8.031 kB / 0.4967 GB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002739/0.4232, allocations: 466.7 kB / 0.4971 GB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.4255, allocations: 1.029 MB / 0.4981 GB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/0.4257, allocations: 251 kB / 0.4983 GB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004459/0.4262, allocations: 192.3 kB / 0.4985 GB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004445/0.4306, allocations: 2.508 MB / 0.501 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.59e-05/0.4307, allocations: 0 / 0.501 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.4309, allocations: 72 kB / 0.501 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.481e-05/0.431, allocations: 44 kB / 0.5011 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005266/0.4363, allocations: 3.192 MB / 0.5042 GB, free: 12.19 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.01531/0.4516, allocations: 8.289 MB / 0.5123 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009101/0.4607, allocations: 5.412 MB / 0.5176 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002274/0.463, allocations: 1.274 MB / 0.5188 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01471/0.4778, allocations: 10.06 MB / 0.5286 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.4779, allocations: 51.88 kB / 0.5287 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001221/0.4791, allocations: 238.2 kB / 0.5289 GB, free: 1.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 4.718e-06/0.4791, allocations: 4 kB / 0.5289 GB, free: 1.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.03219/0.5113, allocations: 7.59 MB / 0.5363 GB, free: 9.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.5114, allocations: 73.41 kB / 0.5364 GB, free: 9.578 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.513, allocations: 0.8972 MB / 0.5373 GB, free: 8.664 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000443/0.5135, allocations: 57.7 kB / 0.5373 GB, free: 8.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006477/0.5142, allocations: 0.8104 MB / 0.5381 GB, free: 7.777 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000958/0.5151, allocations: 0.6315 MB / 0.5388 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004732/0.5156, allocations: 166 kB / 0.5389 GB, free: 6.969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5157, allocations: 313 kB / 0.5392 GB, free: 6.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.5176, allocations: 0.7812 MB / 0.54 GB, free: 5.875 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002176/0.5198, allocations: 1.375 MB / 0.5413 GB, free: 4.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004251/0.524, allocations: 2.36 MB / 0.5436 GB, free: 1.625 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.232e-05/0.5241, allocations: 4 kB / 0.5436 GB, free: 1.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01325/0.5374, allocations: 3.403 MB / 0.5469 GB, free: 14.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.5374, allocations: 12.22 kB / 0.547 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/0.5375, allocations: 24 kB / 0.547 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004106/0.5416, allocations: 0.8218 MB / 0.5478 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002296/0.5439, allocations: 0.5188 MB / 0.5483 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006255/0.5502, allocations: 3.551 MB / 0.5518 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/0.5525, allocations: 111.9 kB / 0.5519 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006001/0.5531, allocations: 127.9 kB / 0.552 GB, free: 8.762 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.00152/0.5547, allocations: 401 kB / 0.5524 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007673/0.5554, allocations: 146.1 kB / 0.5525 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01443/0.5699, allocations: 3.342 MB / 0.5558 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.424e-05/0.57, allocations: 24 kB / 0.5558 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.57, allocations: 0 / 0.5558 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.561e-05/0.57, allocations: 15.95 kB / 0.5558 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/0.5867, allocations: 5.234 MB / 0.5609 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.5868, allocations: 0 / 0.5609 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.5885, allocations: 359.6 kB / 0.5613 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003878/0.5924, allocations: 0.8101 MB / 0.5621 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002986/0.5927, allocations: 63.95 kB / 0.5621 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005522/0.5983, allocations: 3.449 MB / 0.5655 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5983, allocations: 4.062 kB / 0.5655 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/0.6135, allocations: 4.246 MB / 0.5696 GB, free: 6.285 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006461/0.6142, allocations: 203.2 kB / 0.5698 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006003/0.6149, allocations: 36 kB / 0.5699 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.6164, allocations: 79.8 kB / 0.5699 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006498/0.6171, allocations: 197.7 kB / 0.5701 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002891/0.6174, allocations: 79.94 kB / 0.5702 GB, free: 5.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001133/0.6185, allocations: 0.5703 MB / 0.5708 GB, free: 5.102 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6186, allocations: 4 kB / 0.5708 GB, free: 5.098 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004954/0.6235, allocations: 1.163 MB / 0.5719 GB, free: 3.934 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.003637/0.6272, allocations: 1.33 MB / 0.5732 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005364/0.6325, allocations: 2.559 MB / 0.5757 GB, free: 15.99 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6326, allocations: 0 / 0.5757 GB, free: 15.99 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.6355, allocations: 1.494 MB / 0.5772 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.6375, allocations: 296 kB / 0.5774 GB, free: 14.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008193/0.6457, allocations: 4.26 MB / 0.5816 GB, free: 9.879 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.6471, allocations: 1.325 MB / 0.5829 GB, free: 8.523 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002439/0.6495, allocations: 424.2 kB / 0.5833 GB, free: 8.105 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008591/0.6504, allocations: 263.3 kB / 0.5836 GB, free: 7.848 MB / 462.1 MB Notification: Performance of SimCode: time 1.342e-06/0.6504, allocations: 0 / 0.5836 GB, free: 7.848 MB / 462.1 MB Notification: Performance of Templates: time 0.2885/0.939, allocations: 43.85 MB / 0.6264 GB, free: 124.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)