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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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: "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007824/0.0007825, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009227/0.0009226, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1868/0.1868, allocations: 15.27 MB / 306.3 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003097, allocations: 8 kB / 371.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2565, allocations: 54.61 MB / 426.2 MB, free: 40.05 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.007015/0.2636, allocations: 8.841 MB / 435 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02066/0.2843, allocations: 26.13 MB / 461.2 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001906/0.2862, allocations: 41.16 kB / 461.2 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.2878, allocations: 0.518 MB / 461.7 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006964/0.2948, allocations: 2.235 MB / 464 MB, free: 16.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006701/0.3015, allocations: 2.853 MB / 466.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002731/0.3042, allocations: 2.494 MB / 469.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001725/0.306, allocations: 1.318 MB / 470.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.3079, allocations: 1.151 MB / 471.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.3106, allocations: 1.445 MB / 473.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007938/0.3115, allocations: 138 kB / 473.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00926/0.3207, allocations: 2.877 MB / 476.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001228/0.322, allocations: 0.495 MB / 476.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3232, allocations: 385.7 kB / 477.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006898/0.3301, allocations: 4.397 MB / 481.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3302, allocations: 5.156 kB / 481.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3302, allocations: 0 / 481.5 MB, free: 9.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.97e-05/0.3303, allocations: 0 / 481.5 MB, free: 9.273 MB / 350.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.007424/0.3377, allocations: 2.473 MB / 484 MB, free: 7.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3378, allocations: 9.625 kB / 484 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009448/0.3387, allocations: 267.3 kB / 484.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003388/0.3421, allocations: 464.5 kB / 484.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/0.3453, allocations: 0.9922 MB / 485.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.3456, allocations: 254.2 kB / 485.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001195/0.3468, allocations: 187.9 kB / 486.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005869/0.3527, allocations: 2.502 MB / 488.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.442e-05/0.3528, allocations: 1.219 kB / 488.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003234/0.3531, allocations: 74.73 kB / 488.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-05/0.3532, allocations: 44.59 kB / 488.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005117/0.3583, allocations: 3.179 MB / 491.9 MB, free: 4.09 MB / 350.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.01282/0.3711, allocations: 8.283 MB / 0.4885 GB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008543/0.3797, allocations: 5.411 MB / 0.4938 GB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002036/0.3818, allocations: 1.27 MB / 0.495 GB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/0.3949, allocations: 10.05 MB / 0.5048 GB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.395, allocations: 51.88 kB / 0.5049 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001145/0.3961, allocations: 230.3 kB / 0.5051 GB, free: 9.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=158): time 5.781e-06/0.3962, allocations: 0 / 0.5051 GB, free: 9.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.02776/0.4239, allocations: 7.578 MB / 0.5125 GB, free: 1.605 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.424, allocations: 73.41 kB / 0.5126 GB, free: 1.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.4252, allocations: 0.8895 MB / 0.5134 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002512/0.4254, allocations: 57.7 kB / 0.5135 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005019/0.426, allocations: 0.8067 MB / 0.5143 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006284/0.4266, allocations: 0.6314 MB / 0.5149 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.4268, allocations: 40 kB / 0.5149 GB, free: 15.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4269, allocations: 390.2 kB / 0.5153 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.4283, allocations: 0.7773 MB / 0.516 GB, free: 13.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/0.4301, allocations: 1.371 MB / 0.5174 GB, free: 12.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.4317, allocations: 0.9586 MB / 0.5183 GB, free: 11.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.4317, allocations: 4 kB / 0.5183 GB, free: 11.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01125/0.443, allocations: 3.382 MB / 0.5216 GB, free: 7.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.4431, allocations: 12 kB / 0.5216 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.181e-05/0.4431, allocations: 20 kB / 0.5217 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003793/0.4469, allocations: 0.8343 MB / 0.5225 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/0.4491, allocations: 0.5226 MB / 0.523 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005446/0.4546, allocations: 3.538 MB / 0.5264 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.4567, allocations: 111.9 kB / 0.5265 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004714/0.4571, allocations: 119.9 kB / 0.5267 GB, free: 2.461 MB / 398.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001119/0.4583, allocations: 407.3 kB / 0.5271 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004118/0.4587, allocations: 150.1 kB / 0.5272 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/0.4707, allocations: 3.331 MB / 0.5304 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.4708, allocations: 16 kB / 0.5305 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.4708, allocations: 8 kB / 0.5305 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.062e-05/0.4708, allocations: 7.969 kB / 0.5305 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.4855, allocations: 5.231 MB / 0.5356 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.4856, allocations: 0 / 0.5356 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/0.4872, allocations: 359.5 kB / 0.5359 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00362/0.4908, allocations: 0.8023 MB / 0.5367 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/0.4911, allocations: 71.94 kB / 0.5368 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004706/0.4958, allocations: 3.441 MB / 0.5401 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4958, allocations: 240 / 0.5401 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01297/0.5088, allocations: 4.227 MB / 0.5443 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005729/0.5094, allocations: 207.2 kB / 0.5445 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006021/0.5101, allocations: 43.95 kB / 0.5445 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/0.5114, allocations: 83.73 kB / 0.5446 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005185/0.5119, allocations: 193.7 kB / 0.5448 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002228/0.5121, allocations: 75.95 kB / 0.5448 GB, free: 15.42 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008522/0.513, allocations: 0.5664 MB / 0.5454 GB, free: 14.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.513, allocations: 0 / 0.5454 GB, free: 14.85 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003785/0.5168, allocations: 1.148 MB / 0.5465 GB, free: 13.7 MB / 430.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01592/0.5327, allocations: 5.967 MB / 0.5523 GB, free: 7.695 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005544/0.5383, allocations: 2.539 MB / 0.5548 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5384, allocations: 0 / 0.5548 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003134/0.5415, allocations: 1.49 MB / 0.5563 GB, free: 3.574 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/0.5441, allocations: 294.5 kB / 0.5566 GB, free: 3.289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02844/0.5726, allocations: 11.83 MB / 0.5681 GB, free: 6.875 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/0.5741, allocations: 1.325 MB / 0.5694 GB, free: 5.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002162/0.5763, allocations: 420.2 kB / 0.5698 GB, free: 5.105 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/0.5776, allocations: 0.831 MB / 0.5706 GB, free: 4.273 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5776, allocations: 0 / 0.5706 GB, free: 4.273 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2514/0.829, allocations: 56.6 MB / 0.6259 GB, free: 129.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/0.8292, allocations: 204.7 kB / 0.6261 GB, free: 129.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.22/4.049, allocations: 0 / 0.6261 GB, free: 129.6 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1) Environment - environmentSimulation: