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.001244/0.001244, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001295/0.001295, allocations: 193.7 kB / 16.25 MB, free: 6.621 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.212/1.212, allocations: 222.9 MB / 239.9 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1884/0.1884, allocations: 15.31 MB / 305.4 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 55.91 kB / 369.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09429/0.09544, allocations: 53.62 MB / 423.5 MB, free: 14.56 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.2991/0.3946, allocations: 24.47 MB / 448 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008126/0.4028, allocations: 9.999 MB / 458 MB, free: 34.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005965/0.4034, allocations: 14.12 kB / 458 MB, free: 34.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005549/0.404, allocations: 219.2 kB / 458.2 MB, free: 34.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009971/0.405, allocations: 0.5176 MB / 458.8 MB, free: 34.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002528/0.4075, allocations: 1.293 MB / 460.1 MB, free: 33.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000609/0.4081, allocations: 0.9411 MB / 461 MB, free: 33.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.4085, allocations: 0.5133 MB / 461.5 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/0.4088, allocations: 434.6 kB / 461.9 MB, free: 33.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003516/0.4092, allocations: 482.7 kB / 462.4 MB, free: 33.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.077e-05/0.4093, allocations: 81.97 kB / 462.5 MB, free: 33.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.4112, allocations: 1.059 MB / 463.5 MB, free: 33.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.4114, allocations: 195.1 kB / 463.7 MB, free: 33.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.4116, allocations: 441.5 kB / 464.2 MB, free: 32.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.4137, allocations: 1.892 MB / 466.1 MB, free: 32.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4137, allocations: 1.281 kB / 466.1 MB, free: 32.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4137, allocations: 0 / 466.1 MB, free: 32.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.4137, allocations: 3.188 kB / 466.1 MB, free: 32.04 MB / 366.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.001752/0.4155, allocations: 1.21 MB / 467.3 MB, free: 31.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.4155, allocations: 9.188 kB / 467.3 MB, free: 31.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.4157, allocations: 113 kB / 467.4 MB, free: 31.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007622/0.4164, allocations: 207.7 kB / 467.6 MB, free: 31.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004948/0.4169, allocations: 472.1 kB / 468.1 MB, free: 30.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.417, allocations: 49.34 kB / 468.1 MB, free: 30.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.4171, allocations: 76.23 kB / 468.2 MB, free: 30.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.4184, allocations: 1.087 MB / 469.3 MB, free: 30.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.4184, allocations: 5.156 kB / 469.3 MB, free: 30.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.4185, allocations: 25.41 kB / 469.3 MB, free: 30.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.4185, allocations: 16.03 kB / 469.3 MB, free: 30.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.4202, allocations: 1.511 MB / 470.8 MB, free: 29.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003843/0.4241, allocations: 3.016 MB / 473.8 MB, free: 27.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.4253, allocations: 0.9946 MB / 474.8 MB, free: 27.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004129/0.4257, allocations: 393.1 kB / 475.2 MB, free: 27.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002966/0.4287, allocations: 2.458 MB / 477.7 MB, free: 25.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.531e-05/0.4287, allocations: 37.16 kB / 477.7 MB, free: 25.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 1.914e-06/0.4288, allocations: 0 / 477.7 MB, free: 25.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01467/0.4434, allocations: 3.499 MB / 481.2 MB, free: 24.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.4435, allocations: 58.66 kB / 481.3 MB, free: 24.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006595/0.4442, allocations: 0.6962 MB / 482 MB, free: 23.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.653e-05/0.4442, allocations: 40.02 kB / 482 MB, free: 23.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.4444, allocations: 343 kB / 482.3 MB, free: 23.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.4445, allocations: 245 kB / 482.6 MB, free: 23.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.4447, allocations: 153.9 kB / 482.7 MB, free: 23.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.699e-05/0.4448, allocations: 371.5 kB / 483.1 MB, free: 22.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005166/0.4453, allocations: 442.1 kB / 483.5 MB, free: 22.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.4459, allocations: 0.5935 MB / 484.1 MB, free: 22.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.447, allocations: 0.9678 MB / 485.1 MB, free: 21.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.447, allocations: 1.156 kB / 485.1 MB, free: 21.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003645/0.4507, allocations: 1.406 MB / 486.5 MB, free: 21.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.4507, allocations: 5.875 kB / 486.5 MB, free: 21.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.4507, allocations: 9.281 kB / 486.5 MB, free: 21.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002159/0.4529, allocations: 261.5 kB / 486.8 MB, free: 21.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007273/0.4537, allocations: 196.7 kB / 487 MB, free: 21.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004319/0.458, allocations: 3.967 MB / 490.9 MB, free: 17.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007871/0.4588, allocations: 39.17 kB / 491 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.182e-05/0.4589, allocations: 39.03 kB / 491 MB, free: 17.42 MB / 366.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.0003092/0.4592, allocations: 212 kB / 491.2 MB, free: 17.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.4593, allocations: 58.75 kB / 491.3 MB, free: 17.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003654/0.463, allocations: 1.192 MB / 492.5 MB, free: 16.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.463, allocations: 11.31 kB / 492.5 MB, free: 16.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.463, allocations: 2.531 kB / 492.5 MB, free: 16.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.463, allocations: 3.188 kB / 492.5 MB, free: 16.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00459/0.4676, allocations: 2.158 MB / 494.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.4677, allocations: 3.469 kB / 494.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/0.4682, allocations: 139.4 kB / 494.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002087/0.4703, allocations: 264.3 kB / 495 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.4703, allocations: 25.5 kB / 495.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003829/0.4742, allocations: 3.911 MB / 499 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4742, allocations: 8 kB / 499 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003683/0.4779, allocations: 1.647 MB / 0.4889 GB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.4782, allocations: 194.8 kB / 0.4891 GB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.4783, allocations: 24.12 kB / 0.4891 GB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.4787, allocations: 34.19 kB / 0.4891 GB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.4789, allocations: 54.5 kB / 0.4892 GB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.4789, allocations: 28.62 kB / 0.4892 GB, free: 10.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.4794, allocations: 0.5049 MB / 0.4897 GB, free: 10.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4794, allocations: 0 / 0.4897 GB, free: 10.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001119/0.4805, allocations: 437.4 kB / 0.4901 GB, free: 10.51 MB / 366.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.004339/0.4848, allocations: 2.622 MB / 0.4927 GB, free: 9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.4865, allocations: 1.214 MB / 0.4939 GB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4866, allocations: 4 kB / 0.4939 GB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006934/0.4873, allocations: 0.6812 MB / 0.4945 GB, free: 7.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008095/0.4881, allocations: 160.5 kB / 0.4947 GB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.5004, allocations: 8.28 MB / 0.5028 GB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.5008, allocations: 0.9098 MB / 0.5037 GB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005476/0.5014, allocations: 139.3 kB / 0.5038 GB, free: 1.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003647/0.5017, allocations: 284.7 kB / 0.5041 GB, free: 1.438 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5018, allocations: 0 / 0.5041 GB, free: 1.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04446/0.5462, allocations: 23.76 MB / 0.5273 GB, free: 10.54 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/0.5465, allocations: 222.2 kB / 0.5275 GB, free: 10.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/2.889, allocations: 0 / 0.5275 GB, free: 10.29 MB / 398.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)