Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.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: "" <> buildModelFMU(Chemical.Examples.AcidBase.AcidBaseBufferTest,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.AcidBaseBufferTest,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1357/0.1357, allocations: 15.26 MB / 27.82 MB, free: 5.395 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.001239/0.001239, allocations: 184.6 kB / 32.7 MB, free: 0.5195 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.459/1.459, allocations: 221.4 MB / 258.8 MB, free: 15.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009449/0.000945, allocations: 99.55 kB / 314 MB, free: 15.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.867e-05, allocations: 0 / 376.6 MB, free: 1.332 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3131, allocations: 54.61 MB / 431.2 MB, free: 50.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1289/0.4421, allocations: 100.8 MB / 0.5195 GB, free: 14.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.4424, allocations: 72.8 kB / 0.5196 GB, free: 14.37 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System buffer.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.Buffer$buffer. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System simpleSolution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System externalMoleFraction.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalMoleFraction$externalMoleFraction. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:2321:8-2321:67:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System externalMoleFraction.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalMoleFraction$externalMoleFraction. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System liquidWater.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$liquidWater. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.08427/0.5267, allocations: 31.88 MB / 0.5507 GB, free: 14.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5268, allocations: 0 / 0.5507 GB, free: 14.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.811e-05/0.5269, allocations: 20 kB / 0.5508 GB, free: 14.65 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002563/0.5294, allocations: 1.091 MB / 0.5518 GB, free: 13.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.5295, allocations: 8.031 kB / 0.5518 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000237/0.5297, allocations: 110.5 kB / 0.5519 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009833/0.5307, allocations: 234.5 kB / 0.5522 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.532, allocations: 0.6063 MB / 0.5528 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.688e-05/0.5321, allocations: 50 kB / 0.5528 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.5322, allocations: 71.91 kB / 0.5529 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.534, allocations: 1.235 MB / 0.5541 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.5341, allocations: 4 kB / 0.5541 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.5341, allocations: 24 kB / 0.5541 GB, free: 11.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.5342, allocations: 16 kB / 0.5541 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002468/0.5366, allocations: 1.843 MB / 0.5559 GB, free: 9.246 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005802/0.5424, allocations: 3.606 MB / 0.5594 GB, free: 5.531 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.5444, allocations: 1.316 MB / 0.5607 GB, free: 4.191 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006229/0.545, allocations: 0.5262 MB / 0.5612 GB, free: 3.664 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002441/0.5452, allocations: 164.2 kB / 0.5614 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.5453, allocations: 39.12 kB / 0.5614 GB, free: 3.453 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.404e-06/0.5453, allocations: 0.8438 kB / 0.5614 GB, free: 3.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=91): time 0.02013/0.5654, allocations: 4.978 MB / 0.5663 GB, free: 14.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0073/0.5728, allocations: 3.956 MB / 0.5702 GB, free: 10.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.5738, allocations: 0.7431 MB / 0.5709 GB, free: 9.395 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.574, allocations: 41.7 kB / 0.5709 GB, free: 9.348 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.5742, allocations: 364.2 kB / 0.5713 GB, free: 8.984 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/0.5746, allocations: 307.4 kB / 0.5716 GB, free: 8.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.748e-05/0.5746, allocations: 23.98 kB / 0.5716 GB, free: 8.656 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.5748, allocations: 390.7 kB / 0.572 GB, free: 8.266 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009498/0.5758, allocations: 0.705 MB / 0.5726 GB, free: 7.559 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.5768, allocations: 0.8118 MB / 0.5734 GB, free: 6.719 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.5778, allocations: 0.7585 MB / 0.5742 GB, free: 5.961 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.5778, allocations: 3.938 kB / 0.5742 GB, free: 5.957 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004773/0.5826, allocations: 2.014 MB / 0.5762 GB, free: 3.926 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.5827, allocations: 4 kB / 0.5762 GB, free: 3.922 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.5827, allocations: 4 kB / 0.5762 GB, free: 3.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/0.5851, allocations: 342.4 kB / 0.5765 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008458/0.5859, allocations: 207.6 kB / 0.5767 GB, free: 3.371 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2591/0.8451, allocations: 3.824 MB / 0.5804 GB, free: 109.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.8464, allocations: 64.42 kB / 0.5805 GB, free: 109.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.8466, allocations: 47.47 kB / 0.5805 GB, free: 109.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002333/0.8468, allocations: 153.2 kB / 0.5807 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002134/0.847, allocations: 78.47 kB / 0.5807 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/0.8535, allocations: 1.914 MB / 0.5826 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005538/0.859, allocations: 1.678 MB / 0.5843 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.859, allocations: 1.156 kB / 0.5843 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.8591, allocations: 5.156 kB / 0.5843 GB, free: 108.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008415/0.8675, allocations: 3.662 MB / 0.5878 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.8675, allocations: 6.781 kB / 0.5878 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006453/0.8682, allocations: 167.4 kB / 0.588 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004124/0.8723, allocations: 0.5145 MB / 0.5885 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.467e-05/0.8724, allocations: 30.94 kB / 0.5885 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006217/0.8786, allocations: 4.446 MB / 0.5929 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004722/0.8834, allocations: 2.09 MB / 0.5949 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006678/0.8901, allocations: 2.819 MB / 0.5977 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.8905, allocations: 168.7 kB / 0.5978 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.8906, allocations: 29.59 kB / 0.5979 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005541/0.8912, allocations: 48.28 kB / 0.5979 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.8914, allocations: 89.78 kB / 0.598 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/0.8915, allocations: 35.55 kB / 0.598 GB, free: 102.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006924/0.8922, allocations: 0.6015 MB / 0.5986 GB, free: 102.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8922, allocations: 1.906 kB / 0.5986 GB, free: 102.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001639/0.8938, allocations: 0.5258 MB / 0.5991 GB, free: 102.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 3 ($STATESET1.x[2],$STATESET1.x[1],simpleSolution.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00781/0.9016, allocations: 5.268 MB / 0.6043 GB, free: 100.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.9043, allocations: 1.662 MB / 0.6059 GB, free: 99.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.9044, allocations: 1.656 kB / 0.6059 GB, free: 99.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.9058, allocations: 0.9279 MB / 0.6068 GB, free: 99.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.9072, allocations: 275.9 kB / 0.6071 GB, free: 99.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.9106, allocations: 1.923 MB / 0.6089 GB, free: 98.51 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.9111, allocations: 1.002 MB / 0.6099 GB, free: 97.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007278/0.9119, allocations: 155.6 kB / 0.6101 GB, free: 97.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/0.9124, allocations: 351.5 kB / 0.6104 GB, free: 97.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/0.9124, allocations: 0 / 0.6104 GB, free: 97.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/0.9572, allocations: 30.67 MB / 0.6404 GB, free: 90.14 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001263/0.9573, allocations: 170.1 kB / 0.6405 GB, free: 89.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.04/3.998, allocations: 0 / 0.6405 GB, free: 89.91 MB / 442.7 MB (rm -f Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest.fmu > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)