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.001022/0.001022, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008916/0.0008917, allocations: 177.3 kB / 15.94 MB, free: 228 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.255/1.255, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1922/0.1922, allocations: 15.26 MB / 306.2 MB, free: 15.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002846/0.0002847, allocations: 8 kB / 371.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2781, allocations: 54.62 MB / 426.1 MB, free: 39.89 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.00651/0.2846, allocations: 7.93 MB / 434 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01871/0.3034, allocations: 24.14 MB / 458.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001376/0.3048, allocations: 38.66 kB / 458.2 MB, free: 20.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.306, allocations: 0.536 MB / 458.7 MB, free: 20.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006436/0.3124, allocations: 2.515 MB / 461.2 MB, free: 18.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008786/0.3212, allocations: 3.137 MB / 464.4 MB, free: 16.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002652/0.3239, allocations: 1.768 MB / 466.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3251, allocations: 1.307 MB / 467.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.3262, allocations: 1.036 MB / 468.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.3277, allocations: 1.382 MB / 469.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002688/0.3279, allocations: 137.9 kB / 470 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0108/0.3387, allocations: 3.46 MB / 473.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009152/0.3397, allocations: 0.4908 MB / 473.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008505/0.3406, allocations: 391.3 kB / 474.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00712/0.3477, allocations: 3.5 MB / 477.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.3477, allocations: 0 / 477.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3477, allocations: 1 kB / 477.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.915e-05/0.3478, allocations: 0 / 477.8 MB, free: 12.07 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.005836/0.3536, allocations: 2.477 MB / 480.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3537, allocations: 13.53 kB / 480.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003298/0.354, allocations: 261.3 kB / 480.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002106/0.3561, allocations: 461.1 kB / 481 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/0.3579, allocations: 0.9457 MB / 482 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.3581, allocations: 255.5 kB / 482.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003306/0.3584, allocations: 190.4 kB / 482.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003972/0.3624, allocations: 2.476 MB / 484.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.3624, allocations: 12.8 kB / 484.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.3626, allocations: 75.3 kB / 485 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-05/0.3627, allocations: 44.56 kB / 485 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005225/0.3679, allocations: 3.178 MB / 488.2 MB, free: 7.527 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.01188/0.3798, allocations: 8.23 MB / 496.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00846/0.3883, allocations: 5.411 MB / 0.4901 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01459/0.4029, allocations: 9.971 MB / 0.4998 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.403, allocations: 47.88 kB / 0.4998 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00126/0.4043, allocations: 230.4 kB / 0.5001 GB, free: 14.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=158): time 5.741e-06/0.4043, allocations: 0 / 0.5001 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.02833/0.4327, allocations: 7.588 MB / 0.5075 GB, free: 6.586 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.4327, allocations: 69.41 kB / 0.5075 GB, free: 6.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.4338, allocations: 0.8895 MB / 0.5084 GB, free: 5.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.434, allocations: 57.7 kB / 0.5085 GB, free: 5.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/0.4345, allocations: 0.7988 MB / 0.5092 GB, free: 4.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005062/0.435, allocations: 0.6431 MB / 0.5099 GB, free: 4.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.4351, allocations: 40 kB / 0.5099 GB, free: 4.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4353, allocations: 390.2 kB / 0.5103 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.4366, allocations: 0.7773 MB / 0.511 GB, free: 2.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.4382, allocations: 1.356 MB / 0.5124 GB, free: 1.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.4398, allocations: 0.9586 MB / 0.5133 GB, free: 296 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.4398, allocations: 8 kB / 0.5133 GB, free: 288 kB / 382.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01132/0.4511, allocations: 3.375 MB / 0.5166 GB, free: 12.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.4512, allocations: 15.94 kB / 0.5166 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.4512, allocations: 20 kB / 0.5166 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003767/0.455, allocations: 0.8342 MB / 0.5175 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/0.457, allocations: 0.5187 MB / 0.518 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005244/0.4623, allocations: 3.571 MB / 0.5215 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.4642, allocations: 104 kB / 0.5216 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002109/0.4644, allocations: 123.9 kB / 0.5217 GB, free: 7.434 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.000833/0.4652, allocations: 401.1 kB / 0.5221 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002715/0.4655, allocations: 154.1 kB / 0.5222 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/0.4774, allocations: 3.343 MB / 0.5255 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.4774, allocations: 23.98 kB / 0.5255 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.4775, allocations: 4 kB / 0.5255 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.4775, allocations: 7.969 kB / 0.5255 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/0.4924, allocations: 5.208 MB / 0.5306 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.4925, allocations: 0 / 0.5306 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.4942, allocations: 363.5 kB / 0.5309 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003667/0.4978, allocations: 0.8139 MB / 0.5317 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002785/0.4981, allocations: 63.95 kB / 0.5318 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004799/0.5029, allocations: 3.473 MB / 0.5352 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.503, allocations: 4.031 kB / 0.5352 GB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/0.5156, allocations: 4.227 MB / 0.5393 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005474/0.5161, allocations: 207.2 kB / 0.5395 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002981/0.5164, allocations: 36 kB / 0.5395 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5175, allocations: 71.86 kB / 0.5396 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000406/0.5179, allocations: 209.6 kB / 0.5398 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.5181, allocations: 79.94 kB / 0.5399 GB, free: 4.359 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007153/0.5188, allocations: 0.5663 MB / 0.5404 GB, free: 3.785 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5188, allocations: 0 / 0.5404 GB, free: 3.785 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003151/0.522, allocations: 1.136 MB / 0.5415 GB, free: 2.648 MB / 414.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.01531/0.5373, allocations: 5.966 MB / 0.5474 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004433/0.5417, allocations: 2.543 MB / 0.5499 GB, free: 10.05 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5418, allocations: 0 / 0.5499 GB, free: 10.05 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.5441, allocations: 1.498 MB / 0.5513 GB, free: 8.512 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.5456, allocations: 269.8 kB / 0.5516 GB, free: 8.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.5601, allocations: 18.56 MB / 0.5697 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008992/0.5611, allocations: 1.364 MB / 0.571 GB, free: 3.625 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001945/0.5631, allocations: 420.3 kB / 0.5714 GB, free: 3.211 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.5642, allocations: 0.831 MB / 0.5722 GB, free: 2.379 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5642, allocations: 0 / 0.5722 GB, free: 2.379 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2823/0.8464, allocations: 56.21 MB / 0.6271 GB, free: 124.6 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/0.8466, allocations: 187.5 kB / 0.6273 GB, free: 124.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.306/4.152, allocations: 3.938 kB / 0.6273 GB, free: 124.4 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: