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.006028/0.006028, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001137/0.001137, allocations: 198.9 kB / 16.68 MB, free: 5.93 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08542/0.08542, allocations: 15.31 MB / 305.8 MB, free: 15.37 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 64.12 kB / 424.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09379, allocations: 53.61 MB / 478.3 MB, free: 6.234 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.AcidBaseBufferTest): time 0.0339/0.1277, allocations: 24.11 MB / 0.4906 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.1394, allocations: 10.09 MB / 0.5005 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004965/0.1399, allocations: 7.938 kB / 0.5005 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006309/0.1406, allocations: 238.3 kB / 0.5007 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001336/0.1419, allocations: 0.5741 MB / 0.5013 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003442/0.1454, allocations: 1.444 MB / 0.5027 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.1465, allocations: 0.9545 MB / 0.5036 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005317/0.1471, allocations: 0.5049 MB / 0.5041 GB, free: 344 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.206/0.353, allocations: 415.4 kB / 0.5045 GB, free: 19.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.3544, allocations: 472.9 kB / 0.505 GB, free: 19.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.3546, allocations: 85.66 kB / 0.505 GB, free: 19.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004509/0.3592, allocations: 1.036 MB / 0.5061 GB, free: 19.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002558/0.3594, allocations: 193.9 kB / 0.5062 GB, free: 19.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007279/0.3602, allocations: 436.5 kB / 0.5067 GB, free: 19.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004783/0.365, allocations: 1.996 MB / 0.5086 GB, free: 19.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.365, allocations: 0 / 0.5086 GB, free: 19.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.365, allocations: 0.5156 kB / 0.5086 GB, free: 19.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.068e-05/0.365, allocations: 1.281 kB / 0.5086 GB, free: 19.14 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.002242/0.3673, allocations: 1.206 MB / 0.5098 GB, free: 18.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.3673, allocations: 9.375 kB / 0.5098 GB, free: 18.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001083/0.3674, allocations: 115.1 kB / 0.5099 GB, free: 18.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008431/0.3683, allocations: 203.7 kB / 0.5101 GB, free: 18.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006196/0.3689, allocations: 490.6 kB / 0.5106 GB, free: 18.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.369, allocations: 54.25 kB / 0.5106 GB, free: 18.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.3691, allocations: 71.16 kB / 0.5107 GB, free: 18.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.3705, allocations: 1.088 MB / 0.5117 GB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.3706, allocations: 0 / 0.5117 GB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.398e-05/0.3706, allocations: 26.47 kB / 0.5118 GB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.3707, allocations: 19.09 kB / 0.5118 GB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.3726, allocations: 1.509 MB / 0.5133 GB, free: 18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004727/0.3773, allocations: 3.005 MB / 0.5162 GB, free: 16.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.3787, allocations: 1.008 MB / 0.5172 GB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005042/0.3793, allocations: 383.4 kB / 0.5176 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003634/0.3829, allocations: 2.453 MB / 0.5199 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.3829, allocations: 33.84 kB / 0.52 GB, free: 14.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.555e-06/0.3829, allocations: 0 / 0.52 GB, free: 14.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01538/0.3983, allocations: 3.496 MB / 0.5234 GB, free: 12.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.3984, allocations: 58.91 kB / 0.5234 GB, free: 12.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008464/0.3993, allocations: 0.6962 MB / 0.5241 GB, free: 12.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.668e-05/0.3993, allocations: 36.42 kB / 0.5242 GB, free: 12.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.3995, allocations: 344.6 kB / 0.5245 GB, free: 12.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.3997, allocations: 240.3 kB / 0.5247 GB, free: 12.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002633/0.4, allocations: 156.2 kB / 0.5249 GB, free: 11.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.4001, allocations: 369 kB / 0.5252 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006178/0.4007, allocations: 444 kB / 0.5256 GB, free: 11.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006765/0.4014, allocations: 0.591 MB / 0.5262 GB, free: 11.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.4026, allocations: 0.9728 MB / 0.5272 GB, free: 10.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.4026, allocations: 1.594 kB / 0.5272 GB, free: 10.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003819/0.4064, allocations: 1.406 MB / 0.5285 GB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.4065, allocations: 10.67 kB / 0.5286 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.4065, allocations: 6.75 kB / 0.5286 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002079/0.4086, allocations: 264.4 kB / 0.5288 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.4094, allocations: 191.6 kB / 0.529 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/0.4137, allocations: 3.958 MB / 0.5329 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007262/0.4144, allocations: 25.89 kB / 0.5329 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.4145, allocations: 38.58 kB / 0.5329 GB, free: 6.355 MB / 382.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.0003127/0.4149, allocations: 206.8 kB / 0.5331 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.415, allocations: 59.38 kB / 0.5332 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.4184, allocations: 1.194 MB / 0.5343 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4184, allocations: 9.594 kB / 0.5344 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.4185, allocations: 0 / 0.5344 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4185, allocations: 3.891 kB / 0.5344 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.4228, allocations: 2.165 MB / 0.5365 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.4229, allocations: 6.344 kB / 0.5365 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005437/0.4234, allocations: 131.6 kB / 0.5366 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00195/0.4254, allocations: 261 kB / 0.5369 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-05/0.4255, allocations: 27.92 kB / 0.5369 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003769/0.4292, allocations: 3.909 MB / 0.5407 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.4293, allocations: 8.141 kB / 0.5407 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003844/0.4331, allocations: 1.643 MB / 0.5423 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003342/0.4335, allocations: 198.9 kB / 0.5425 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.376e-05/0.4336, allocations: 19.94 kB / 0.5425 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004311/0.434, allocations: 19.98 kB / 0.5425 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.4341, allocations: 55.2 kB / 0.5426 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/0.4342, allocations: 26.66 kB / 0.5426 GB, free: 14.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005453/0.4347, allocations: 0.5069 MB / 0.5431 GB, free: 14.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4348, allocations: 0 / 0.5431 GB, free: 14.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001315/0.4361, allocations: 439.7 kB / 0.5435 GB, free: 14.02 MB / 398.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.005179/0.4413, allocations: 2.615 MB / 0.5461 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.4432, allocations: 1.193 MB / 0.5472 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4432, allocations: 7 kB / 0.5473 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009528/0.4442, allocations: 0.6748 MB / 0.5479 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009184/0.4451, allocations: 161.7 kB / 0.5481 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/0.4591, allocations: 7.859 MB / 0.5557 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.4596, allocations: 0.907 MB / 0.5566 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005108/0.4601, allocations: 130.8 kB / 0.5568 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005035/0.4606, allocations: 291.3 kB / 0.557 GB, free: 212 kB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4606, allocations: 0 / 0.557 GB, free: 212 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05586/0.5165, allocations: 24.1 MB / 0.5806 GB, free: 9.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.25, allocations: 4.844 kB / 0.5806 GB, free: 9.043 MB / 430.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)