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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006423/0.006423, allocations: 102.8 kB / 15.74 MB, free: 6.496 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.001269/0.001269, allocations: 196.6 kB / 16.68 MB, free: 6.375 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.197/0.197, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.89 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2395, allocations: 53.61 MB / 478.3 MB, free: 25.68 MB / 366.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.AcidBaseBufferTest): time 0.02955/0.2691, allocations: 24.67 MB / 0.4912 GB, free: 10.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008161/0.2773, allocations: 10.09 MB / 0.501 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000559/0.2779, allocations: 7.844 kB / 0.5011 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006811/0.2786, allocations: 238.3 kB / 0.5013 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.28, allocations: 0.5702 MB / 0.5018 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003515/0.2835, allocations: 1.44 MB / 0.5032 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.2848, allocations: 0.9506 MB / 0.5042 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006379/0.2854, allocations: 0.5049 MB / 0.5047 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.2859, allocations: 418.8 kB / 0.5051 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006436/0.2866, allocations: 482.2 kB / 0.5055 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.2867, allocations: 84 kB / 0.5056 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002895/0.2896, allocations: 1.034 MB / 0.5066 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.2899, allocations: 195.4 kB / 0.5068 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004446/0.2903, allocations: 438 kB / 0.5072 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003434/0.2938, allocations: 1.996 MB / 0.5092 GB, free: 7.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2938, allocations: 4 kB / 0.5092 GB, free: 7.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2938, allocations: 0 / 0.5092 GB, free: 7.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.2938, allocations: 0 / 0.5092 GB, free: 7.559 MB / 382.1 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.002292/0.2961, allocations: 1.238 MB / 0.5104 GB, free: 6.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.2962, allocations: 8.031 kB / 0.5104 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.2963, allocations: 110.7 kB / 0.5105 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000846/0.2972, allocations: 208 kB / 0.5107 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007622/0.2979, allocations: 497.9 kB / 0.5112 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.298, allocations: 54.38 kB / 0.5112 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.2981, allocations: 68.33 kB / 0.5113 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.2998, allocations: 1.095 MB / 0.5124 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.2998, allocations: 0 / 0.5124 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.55e-05/0.2999, allocations: 27.94 kB / 0.5124 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.2999, allocations: 16 kB / 0.5124 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/0.3021, allocations: 1.507 MB / 0.5139 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004943/0.307, allocations: 3.014 MB / 0.5168 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.3086, allocations: 0.9977 MB / 0.5178 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.3092, allocations: 386.3 kB / 0.5182 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003764/0.313, allocations: 2.457 MB / 0.5205 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.313, allocations: 43 kB / 0.5206 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=51): time 1.874e-06/0.313, allocations: 0 / 0.5206 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.0148/0.3278, allocations: 3.505 MB / 0.524 GB, free: 7.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.3279, allocations: 55.97 kB / 0.5241 GB, free: 7.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008673/0.3288, allocations: 0.6931 MB / 0.5247 GB, free: 7.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.3288, allocations: 41.7 kB / 0.5248 GB, free: 7.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002697/0.3291, allocations: 356.4 kB / 0.5251 GB, free: 6.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.3294, allocations: 245.9 kB / 0.5254 GB, free: 6.422 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.3296, allocations: 158.6 kB / 0.5255 GB, free: 6.262 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3298, allocations: 366.8 kB / 0.5259 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006713/0.3305, allocations: 441.8 kB / 0.5263 GB, free: 5.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008143/0.3313, allocations: 0.5964 MB / 0.5269 GB, free: 4.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.3328, allocations: 0.9733 MB / 0.5278 GB, free: 3.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3328, allocations: 0 / 0.5278 GB, free: 3.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003865/0.3366, allocations: 1.409 MB / 0.5292 GB, free: 2.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3367, allocations: 14.12 kB / 0.5292 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3367, allocations: 4 kB / 0.5292 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.3388, allocations: 266.3 kB / 0.5295 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007614/0.3395, allocations: 191.6 kB / 0.5296 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/0.3449, allocations: 3.966 MB / 0.5335 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.3455, allocations: 27.98 kB / 0.5335 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.919e-05/0.3456, allocations: 35.98 kB / 0.5336 GB, free: 13.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003167/0.3459, allocations: 209.8 kB / 0.5338 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.3461, allocations: 59.62 kB / 0.5338 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.3498, allocations: 1.201 MB / 0.535 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.3498, allocations: 8 kB / 0.535 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3498, allocations: 0 / 0.535 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.3498, allocations: 3.984 kB / 0.535 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.3548, allocations: 2.151 MB / 0.5371 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3549, allocations: 4.188 kB / 0.5371 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.3554, allocations: 135.8 kB / 0.5373 GB, free: 9.676 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/0.3575, allocations: 262.3 kB / 0.5375 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/0.3576, allocations: 19.98 kB / 0.5375 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005213/0.3628, allocations: 3.911 MB / 0.5413 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3628, allocations: 4 kB / 0.5413 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004172/0.367, allocations: 1.658 MB / 0.543 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.3673, allocations: 200.7 kB / 0.5432 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.751e-05/0.3674, allocations: 23.94 kB / 0.5432 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/0.3678, allocations: 15.98 kB / 0.5432 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.368, allocations: 60.42 kB / 0.5433 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-05/0.368, allocations: 23.98 kB / 0.5433 GB, free: 3.129 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006385/0.3687, allocations: 0.5108 MB / 0.5438 GB, free: 2.617 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3687, allocations: 7.938 kB / 0.5438 GB, free: 2.609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001194/0.3699, allocations: 442.8 kB / 0.5442 GB, free: 2.176 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005542/0.3754, allocations: 2.61 MB / 0.5468 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002049/0.3775, allocations: 1.197 MB / 0.5479 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3775, allocations: 0 / 0.5479 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009693/0.3785, allocations: 0.6927 MB / 0.5486 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008785/0.3794, allocations: 156.6 kB / 0.5487 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/0.3937, allocations: 7.868 MB / 0.5564 GB, free: 5.281 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.3943, allocations: 0.907 MB / 0.5573 GB, free: 4.348 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004875/0.3948, allocations: 132.9 kB / 0.5574 GB, free: 4.219 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004538/0.3953, allocations: 287.3 kB / 0.5577 GB, free: 3.938 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3953, allocations: 4 kB / 0.5577 GB, free: 3.934 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06284/0.4581, allocations: 24.1 MB / 0.5813 GB, free: 11.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.44, allocations: 16.05 kB / 0.5813 GB, free: 11.94 MB / 462.1 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/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)