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.1207/0.1207, allocations: 15.26 MB / 30.21 MB, free: 3.301 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.001107/0.001107, allocations: 179.6 kB / 35.29 MB, free: 2.375 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.464/1.464, allocations: 223.2 MB / 263.4 MB, free: 6.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009754/0.0009752, allocations: 94.88 kB / 318.8 MB, free: 3.469 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.00033, allocations: 7.188 kB / 384 MB, free: 50.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1088, allocations: 54.64 MB / 438.7 MB, free: 304 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4174/0.5262, allocations: 100.9 MB / 0.5269 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.5265, allocations: 73.5 kB / 0.527 GB, free: 15.52 MB / 378.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.07599/0.6025, allocations: 31.98 MB / 0.5582 GB, free: 25.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6026, allocations: 4 kB / 0.5582 GB, free: 25.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.248e-05/0.6027, allocations: 19.16 kB / 0.5582 GB, free: 25.84 MB / 394.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.002151/0.6048, allocations: 1.179 MB / 0.5594 GB, free: 24.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.6049, allocations: 7.875 kB / 0.5594 GB, free: 24.99 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.605, allocations: 113.6 kB / 0.5595 GB, free: 24.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/0.6058, allocations: 232.1 kB / 0.5597 GB, free: 24.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009244/0.6067, allocations: 0.6032 MB / 0.5603 GB, free: 24.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.6067, allocations: 47.41 kB / 0.5603 GB, free: 24.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.323e-05/0.6068, allocations: 67.59 kB / 0.5604 GB, free: 24.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.6082, allocations: 1.25 MB / 0.5616 GB, free: 24.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.6083, allocations: 0 / 0.5616 GB, free: 24.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.6083, allocations: 25.94 kB / 0.5616 GB, free: 24.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.6084, allocations: 23 kB / 0.5617 GB, free: 24.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.6103, allocations: 1.857 MB / 0.5635 GB, free: 23.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004753/0.6151, allocations: 3.617 MB / 0.567 GB, free: 22.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.6165, allocations: 1.318 MB / 0.5683 GB, free: 22.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002113/0.6168, allocations: 173.9 kB / 0.5685 GB, free: 22.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.6168, allocations: 39.06 kB / 0.5685 GB, free: 22.13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.715e-06/0.6168, allocations: 3.875 kB / 0.5685 GB, free: 22.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=87): time 0.01765/0.6345, allocations: 5.085 MB / 0.5735 GB, free: 20.72 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.6346, allocations: 68.09 kB / 0.5735 GB, free: 20.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008955/0.6355, allocations: 0.7466 MB / 0.5743 GB, free: 20.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.803e-05/0.6356, allocations: 44.27 kB / 0.5743 GB, free: 20.42 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.6358, allocations: 360.6 kB / 0.5747 GB, free: 20.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.636, allocations: 302 kB / 0.5749 GB, free: 20 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.6361, allocations: 18.69 kB / 0.575 GB, free: 20 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.6362, allocations: 387.6 kB / 0.5753 GB, free: 19.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006947/0.6369, allocations: 0.6686 MB / 0.576 GB, free: 19.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007181/0.6377, allocations: 0.772 MB / 0.5767 GB, free: 19.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007468/0.6384, allocations: 0.7221 MB / 0.5774 GB, free: 19.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.6384, allocations: 0 / 0.5774 GB, free: 19.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.005071/0.6435, allocations: 1.948 MB / 0.5793 GB, free: 18.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.6435, allocations: 9.625 kB / 0.5794 GB, free: 18.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.6436, allocations: 7.812 kB / 0.5794 GB, free: 18.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00313/0.6467, allocations: 351.9 kB / 0.5797 GB, free: 18.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008641/0.6476, allocations: 201.7 kB / 0.5799 GB, free: 18.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.6537, allocations: 3.898 MB / 0.5837 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009595/0.6547, allocations: 46.92 kB / 0.5837 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.475e-05/0.6548, allocations: 42.38 kB / 0.5838 GB, free: 15.38 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 99 * 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,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000459/0.6553, allocations: 209.6 kB / 0.584 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.6554, allocations: 80.69 kB / 0.5841 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004854/0.6603, allocations: 1.705 MB / 0.5857 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.6603, allocations: 15.39 kB / 0.5857 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.6603, allocations: 0 / 0.5857 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.6603, allocations: 3.984 kB / 0.5857 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006466/0.6668, allocations: 3.177 MB / 0.5888 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6669, allocations: 3.969 kB / 0.5888 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006817/0.6676, allocations: 172.3 kB / 0.589 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002898/0.6705, allocations: 352.9 kB / 0.5893 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.703e-05/0.6706, allocations: 27.61 kB / 0.5894 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005659/0.6762, allocations: 3.872 MB / 0.5932 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.6763, allocations: 3.219 kB / 0.5932 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005903/0.6822, allocations: 2.597 MB / 0.5957 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004014/0.6826, allocations: 167.3 kB / 0.5959 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.6828, allocations: 19.75 kB / 0.5959 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005768/0.6833, allocations: 31.61 kB / 0.5959 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.6835, allocations: 71.94 kB / 0.596 GB, free: 6.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.796e-05/0.6836, allocations: 39.34 kB / 0.596 GB, free: 6.297 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006704/0.6842, allocations: 0.6087 MB / 0.5966 GB, free: 5.934 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6842, allocations: 0 / 0.5966 GB, free: 5.934 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001414/0.6857, allocations: 489.8 kB / 0.5971 GB, free: 5.805 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 3 (simpleSolution.temperature,simpleSolution.mass,liquidWater.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 (91): * Single equations (assignments): 88 * 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,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.007472/0.6932, allocations: 4.441 MB / 0.6014 GB, free: 1.305 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.6955, allocations: 1.634 MB / 0.603 GB, free: 15.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.6955, allocations: 0 / 0.603 GB, free: 15.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.6966, allocations: 0.8828 MB / 0.6039 GB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.6981, allocations: 273 kB / 0.6041 GB, free: 14.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005121/0.7033, allocations: 4.373 MB / 0.6084 GB, free: 9.969 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.7038, allocations: 0.9916 MB / 0.6094 GB, free: 8.953 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006424/0.7045, allocations: 134.4 kB / 0.6095 GB, free: 8.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004794/0.705, allocations: 331.3 kB / 0.6098 GB, free: 8.496 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.705, allocations: 3.938 kB / 0.6098 GB, free: 8.492 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05501/0.76, allocations: 28.5 MB / 0.6376 GB, free: 12.23 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.7602, allocations: 191.3 kB / 0.6378 GB, free: 11.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.903/3.664, allocations: 0 / 0.6378 GB, free: 11.99 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)