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: "" <> 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.0007327/0.0007327, allocations: 98.27 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.004237/0.004237, allocations: 170.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.21/1.21, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1805/0.1805, allocations: 15.28 MB / 306.7 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002886, allocations: 8 kB / 372.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2571, allocations: 54.62 MB / 426.8 MB, free: 40.53 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.02461/0.2817, allocations: 28.61 MB / 455.4 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0234/0.3051, allocations: 28.3 MB / 483.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/0.3067, allocations: 39.69 kB / 483.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.3081, allocations: 0.5134 MB / 484.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005791/0.3139, allocations: 2.293 MB / 486.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007582/0.3215, allocations: 3.076 MB / 489.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002697/0.3242, allocations: 2.663 MB / 492.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.3259, allocations: 1.357 MB / 493.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0018/0.3277, allocations: 1.34 MB / 495 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002401/0.3301, allocations: 1.505 MB / 496.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005293/0.3306, allocations: 136 kB / 496.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008755/0.3394, allocations: 3.073 MB / 499.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000778/0.3402, allocations: 0.514 MB / 0.4885 GB, free: 11.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001742/0.342, allocations: 1.108 MB / 0.4896 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.3534, allocations: 5.502 MB / 0.495 GB, free: 5.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3535, allocations: 0 / 0.495 GB, free: 5.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3535, allocations: 0 / 0.495 GB, free: 5.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.535e-05/0.3536, allocations: 0 / 0.495 GB, free: 5.84 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.006042/0.3596, allocations: 2.467 MB / 0.4974 GB, free: 3.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3597, allocations: 12.03 kB / 0.4974 GB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005524/0.3602, allocations: 262 kB / 0.4976 GB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002077/0.3623, allocations: 464.2 kB / 0.4981 GB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.3639, allocations: 1.025 MB / 0.4991 GB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.3641, allocations: 259 kB / 0.4993 GB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003461/0.3645, allocations: 188.3 kB / 0.4995 GB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003926/0.3684, allocations: 2.508 MB / 0.502 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.3684, allocations: 0 / 0.502 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/0.3687, allocations: 76 kB / 0.502 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/0.3687, allocations: 48 kB / 0.5021 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004634/0.3733, allocations: 3.188 MB / 0.5052 GB, free: 11.25 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.0123/0.3857, allocations: 8.289 MB / 0.5133 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008324/0.394, allocations: 5.419 MB / 0.5186 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.3958, allocations: 1.278 MB / 0.5198 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.4077, allocations: 10.04 MB / 0.5296 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.4078, allocations: 51.88 kB / 0.5297 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000904/0.4087, allocations: 234.3 kB / 0.5299 GB, free: 428 kB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 3.377e-06/0.4087, allocations: 3.938 kB / 0.5299 GB, free: 424 kB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.02887/0.4376, allocations: 7.598 MB / 0.5373 GB, free: 8.715 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.4377, allocations: 73.41 kB / 0.5374 GB, free: 8.629 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.4388, allocations: 0.9011 MB / 0.5383 GB, free: 7.711 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.4389, allocations: 57.7 kB / 0.5383 GB, free: 7.648 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005016/0.4394, allocations: 0.7988 MB / 0.5391 GB, free: 6.836 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005001/0.4399, allocations: 0.6392 MB / 0.5397 GB, free: 6.188 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.4402, allocations: 170 kB / 0.5399 GB, free: 6.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.673e-05/0.4403, allocations: 305.1 kB / 0.5402 GB, free: 5.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.4416, allocations: 0.7929 MB / 0.541 GB, free: 4.918 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/0.4434, allocations: 1.371 MB / 0.5423 GB, free: 3.285 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003362/0.4467, allocations: 2.364 MB / 0.5446 GB, free: 0.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/0.4468, allocations: 4 kB / 0.5446 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01198/0.4587, allocations: 3.394 MB / 0.5479 GB, free: 13.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.4588, allocations: 12 kB / 0.5479 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/0.4588, allocations: 23.94 kB / 0.548 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004017/0.4628, allocations: 0.8302 MB / 0.5488 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/0.4647, allocations: 0.5188 MB / 0.5493 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005516/0.4702, allocations: 3.536 MB / 0.5527 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.4719, allocations: 107.9 kB / 0.5528 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/0.4721, allocations: 123.9 kB / 0.553 GB, free: 7.82 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.0007892/0.4729, allocations: 401 kB / 0.5533 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.4732, allocations: 150.1 kB / 0.5535 GB, free: 7.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/0.4854, allocations: 3.342 MB / 0.5568 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.4855, allocations: 20 kB / 0.5568 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.4855, allocations: 3.984 kB / 0.5568 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.4855, allocations: 11.97 kB / 0.5568 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.4997, allocations: 5.23 MB / 0.5619 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.4997, allocations: 0 / 0.5619 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001461/0.5012, allocations: 367.5 kB / 0.5622 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003883/0.5051, allocations: 0.8102 MB / 0.563 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/0.5052, allocations: 67.95 kB / 0.5631 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004677/0.5099, allocations: 3.441 MB / 0.5665 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.5099, allocations: 0 / 0.5665 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01272/0.5226, allocations: 4.247 MB / 0.5706 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.523, allocations: 207.2 kB / 0.5708 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.5232, allocations: 36 kB / 0.5708 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.5242, allocations: 75.86 kB / 0.5709 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004336/0.5247, allocations: 201.6 kB / 0.5711 GB, free: 4.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.5248, allocations: 79.94 kB / 0.5712 GB, free: 4.738 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006864/0.5255, allocations: 0.5742 MB / 0.5717 GB, free: 4.156 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5255, allocations: 0 / 0.5717 GB, free: 4.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002933/0.5285, allocations: 1.171 MB / 0.5729 GB, free: 2.984 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.176/0.7045, allocations: 6.007 MB / 0.5788 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.7085, allocations: 2.561 MB / 0.5813 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.7086, allocations: 0 / 0.5813 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002146/0.7107, allocations: 1.506 MB / 0.5827 GB, free: 117.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.7123, allocations: 290.8 kB / 0.583 GB, free: 117.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03423/0.7465, allocations: 17.61 MB / 0.6002 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006607/0.7472, allocations: 1.327 MB / 0.6015 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00171/0.7489, allocations: 419.8 kB / 0.6019 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009574/0.7499, allocations: 0.8338 MB / 0.6027 GB, free: 107.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7499, allocations: 0 / 0.6027 GB, free: 107.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07164/0.8216, allocations: 57.43 MB / 0.6588 GB, free: 68.38 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.8218, allocations: 208.9 kB / 0.659 GB, free: 68.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.202/4.023, allocations: 8 kB / 0.659 GB, free: 68.12 MB / 446.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/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)