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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07721/0.07721, allocations: 15.26 MB / 22.55 MB, free: 1.094 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 179.5 kB / 27.31 MB, free: 6.184 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.153/1.153, allocations: 221.4 MB / 253.3 MB, free: 10.27 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.0008794/0.0008793, allocations: 84.75 kB / 308.4 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2104/0.2113, allocations: 60.74 MB / 369.1 MB, free: 53.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07859/0.2899, allocations: 54.63 MB / 423.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2635/0.5535, allocations: 100.1 MB / 0.5116 GB, free: 8.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.5538, allocations: 72.09 kB / 0.5116 GB, free: 8.18 MB / 362.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: 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.07318/0.627, allocations: 32.49 MB / 0.5434 GB, free: 15.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.627, allocations: 7.625 kB / 0.5434 GB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008206/0.6278, allocations: 242.5 kB / 0.5436 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009655/0.6288, allocations: 0.6015 MB / 0.5442 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.6288, allocations: 26.86 kB / 0.5442 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.146e-05/0.6289, allocations: 42.03 kB / 0.5442 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001945/0.6309, allocations: 1.811 MB / 0.546 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.6326, allocations: 0.9678 MB / 0.547 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.6326, allocations: 0 / 0.547 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.6327, allocations: 4.594 kB / 0.547 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.6327, allocations: 15.22 kB / 0.547 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005012/0.6377, allocations: 3.478 MB / 0.5504 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006808/0.6384, allocations: 0.5671 MB / 0.5509 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007824/0.6392, allocations: 0.5077 MB / 0.5514 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002985/0.6395, allocations: 172.9 kB / 0.5516 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.6396, allocations: 42.31 kB / 0.5516 GB, free: 13.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.054e-06/0.6396, allocations: 0 / 0.5516 GB, free: 13.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.02183/0.6614, allocations: 4.865 MB / 0.5564 GB, free: 11.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.6615, allocations: 65.22 kB / 0.5564 GB, free: 11.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008965/0.6624, allocations: 0.6872 MB / 0.5571 GB, free: 10.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.932e-05/0.6625, allocations: 25.7 kB / 0.5571 GB, free: 10.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.6626, allocations: 287 kB / 0.5574 GB, free: 10.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002537/0.6629, allocations: 287.2 kB / 0.5577 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.187e-05/0.663, allocations: 0 / 0.5577 GB, free: 10.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6631, allocations: 384 kB / 0.5581 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008442/0.664, allocations: 0.6774 MB / 0.5587 GB, free: 9.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009119/0.6649, allocations: 0.7857 MB / 0.5595 GB, free: 9.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002411/0.6673, allocations: 0.9505 MB / 0.5604 GB, free: 8.664 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.6673, allocations: 1.188 kB / 0.5604 GB, free: 8.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.00722/0.6745, allocations: 2.152 MB / 0.5625 GB, free: 7.203 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.6746, allocations: 4 kB / 0.5625 GB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.6746, allocations: 4 kB / 0.5625 GB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002519/0.6771, allocations: 314.2 kB / 0.5628 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009521/0.6781, allocations: 203.7 kB / 0.563 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005069/0.6832, allocations: 3.649 MB / 0.5666 GB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009058/0.6841, allocations: 39.98 kB / 0.5666 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.6842, allocations: 48.03 kB / 0.5667 GB, free: 2.688 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: buffer.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real 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 (103): * Single equations (assignments): 98 * 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.0002241/0.6845, allocations: 121 kB / 0.5668 GB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.6847, allocations: 75.06 kB / 0.5668 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006994/0.6917, allocations: 1.971 MB / 0.5688 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007468/0.6991, allocations: 1.743 MB / 0.5705 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.6992, allocations: 0 / 0.5705 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.6992, allocations: 3.984 kB / 0.5705 GB, free: 14.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009082/0.7083, allocations: 3.635 MB / 0.574 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.7083, allocations: 8 kB / 0.574 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006498/0.709, allocations: 168.4 kB / 0.5742 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004228/0.7132, allocations: 0.4902 MB / 0.5747 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.7133, allocations: 19.98 kB / 0.5747 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006262/0.7196, allocations: 4.275 MB / 0.5789 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005579/0.7252, allocations: 1.968 MB / 0.5808 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007367/0.7326, allocations: 2.887 MB / 0.5836 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00798/0.7406, allocations: 3.982 MB / 0.5875 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003282/0.7409, allocations: 168.1 kB / 0.5877 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.7411, allocations: 11.98 kB / 0.5877 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.7417, allocations: 23.92 kB / 0.5877 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-05/0.7418, allocations: 72.69 kB / 0.5878 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.757e-05/0.7419, allocations: 39.92 kB / 0.5878 GB, free: 12.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005859/0.7425, allocations: 0.538 MB / 0.5883 GB, free: 11.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002239/0.7447, allocations: 0.5269 MB / 0.5888 GB, free: 11 MB / 410.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 (87): * Single equations (assignments): 84 * 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.001075/0.7458, allocations: 0.5675 MB / 0.5894 GB, free: 10.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002298/0.7481, allocations: 1.603 MB / 0.591 GB, free: 8.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7481, allocations: 0.5625 kB / 0.591 GB, free: 8.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.7492, allocations: 0.8503 MB / 0.5918 GB, free: 7.949 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.7504, allocations: 245.2 kB / 0.592 GB, free: 7.711 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.7533, allocations: 1.588 MB / 0.5936 GB, free: 6.023 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008679/0.7542, allocations: 1.091 MB / 0.5946 GB, free: 4.906 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7542, allocations: 0 / 0.5946 GB, free: 4.906 MB / 410.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)