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.001117/0.001117, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.141/1.141, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1578/0.1578, allocations: 15.32 MB / 305.7 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 68.14 kB / 370.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07539/0.0765, allocations: 53.61 MB / 424.1 MB, free: 14.16 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.2466/0.3232, allocations: 24.09 MB / 448.1 MB, free: 39.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006779/0.33, allocations: 10.1 MB / 458.2 MB, free: 34.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.3302, allocations: 5.219 kB / 458.2 MB, free: 34.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00042/0.3306, allocations: 240.2 kB / 458.5 MB, free: 34.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007857/0.3314, allocations: 0.5692 MB / 459.1 MB, free: 34.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.3331, allocations: 1.445 MB / 460.5 MB, free: 33.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005162/0.3337, allocations: 0.9458 MB / 461.4 MB, free: 33.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003556/0.334, allocations: 0.5063 MB / 461.9 MB, free: 33.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.3343, allocations: 414.5 kB / 462.4 MB, free: 33.31 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.3346, allocations: 478.5 kB / 462.8 MB, free: 33.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.927e-05/0.3347, allocations: 84.56 kB / 462.9 MB, free: 33.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.3363, allocations: 1.041 MB / 463.9 MB, free: 33.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.3364, allocations: 196.4 kB / 464.1 MB, free: 33.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002501/0.3367, allocations: 428.3 kB / 464.6 MB, free: 32.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001799/0.3385, allocations: 1.968 MB / 466.5 MB, free: 31.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3385, allocations: 4.625 kB / 466.5 MB, free: 31.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3385, allocations: 0 / 466.5 MB, free: 31.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.3385, allocations: 1.188 kB / 466.5 MB, free: 31.88 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.001521/0.34, allocations: 1.215 MB / 467.7 MB, free: 31.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.3401, allocations: 9.188 kB / 467.8 MB, free: 31.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.016e-05/0.3402, allocations: 108.9 kB / 467.9 MB, free: 30.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006924/0.3409, allocations: 216.8 kB / 468.1 MB, free: 30.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/0.3413, allocations: 472.4 kB / 468.5 MB, free: 30.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.501e-05/0.3414, allocations: 53.44 kB / 468.6 MB, free: 30.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-05/0.3415, allocations: 69.28 kB / 468.6 MB, free: 30.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3426, allocations: 1.094 MB / 469.7 MB, free: 30.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.3426, allocations: 0 / 469.7 MB, free: 30.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.3427, allocations: 25.66 kB / 469.8 MB, free: 30.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3427, allocations: 16.06 kB / 469.8 MB, free: 30.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.3442, allocations: 1.508 MB / 471.3 MB, free: 29.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.3477, allocations: 3.028 MB / 474.3 MB, free: 27.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3489, allocations: 0.9842 MB / 475.3 MB, free: 27.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003946/0.3493, allocations: 387.6 kB / 475.7 MB, free: 27.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002555/0.3518, allocations: 2.463 MB / 478.1 MB, free: 25.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.3518, allocations: 37.44 kB / 478.2 MB, free: 25.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 1.503e-06/0.3519, allocations: 0 / 478.2 MB, free: 25.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01217/0.364, allocations: 3.489 MB / 481.7 MB, free: 24.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/0.3641, allocations: 59.16 kB / 481.7 MB, free: 23.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005565/0.3646, allocations: 0.6996 MB / 482.4 MB, free: 23.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.3647, allocations: 40.19 kB / 482.5 MB, free: 23.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.3648, allocations: 349.4 kB / 482.8 MB, free: 23.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3649, allocations: 233.8 kB / 483 MB, free: 23.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.3651, allocations: 155.9 kB / 483.2 MB, free: 23.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.144e-05/0.3652, allocations: 368.2 kB / 483.5 MB, free: 22.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/0.3657, allocations: 440.7 kB / 484 MB, free: 22.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005783/0.3663, allocations: 0.5941 MB / 484.6 MB, free: 22.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.3673, allocations: 0.977 MB / 485.6 MB, free: 21.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3674, allocations: 2.125 kB / 485.6 MB, free: 21.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003178/0.3705, allocations: 1.404 MB / 487 MB, free: 21.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3706, allocations: 8.109 kB / 487 MB, free: 21.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3706, allocations: 4.938 kB / 487 MB, free: 21.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.3724, allocations: 263.8 kB / 487.2 MB, free: 20.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.373, allocations: 197.5 kB / 487.4 MB, free: 20.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003701/0.3767, allocations: 3.955 MB / 491.4 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/0.3772, allocations: 27.77 kB / 491.4 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.014e-05/0.3772, allocations: 35.47 kB / 491.4 MB, free: 17.28 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.0001999/0.3774, allocations: 207.1 kB / 491.6 MB, free: 17.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3776, allocations: 65.22 kB / 491.7 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003102/0.3807, allocations: 1.205 MB / 492.9 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3807, allocations: 8.906 kB / 492.9 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3807, allocations: 0 / 492.9 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3807, allocations: 3.75 kB / 492.9 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/0.3845, allocations: 2.153 MB / 495.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.3845, allocations: 192 / 495.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.385, allocations: 144.3 kB / 495.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001736/0.3867, allocations: 259.9 kB / 495.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.541e-05/0.3868, allocations: 25.56 kB / 495.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003364/0.3902, allocations: 3.916 MB / 499.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3902, allocations: 4.328 kB / 499.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003103/0.3933, allocations: 1.653 MB / 0.4893 GB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.3935, allocations: 188.4 kB / 0.4895 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.209e-05/0.3935, allocations: 17.3 kB / 0.4895 GB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003612/0.3939, allocations: 22.88 kB / 0.4895 GB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.394, allocations: 62.22 kB / 0.4896 GB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.3941, allocations: 25.06 kB / 0.4896 GB, free: 10.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.3944, allocations: 0.509 MB / 0.4901 GB, free: 10.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3944, allocations: 0 / 0.4901 GB, free: 10.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008421/0.3953, allocations: 437.1 kB / 0.4905 GB, free: 10.37 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.003889/0.3992, allocations: 2.616 MB / 0.4931 GB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.4007, allocations: 1.217 MB / 0.4943 GB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4007, allocations: 0 / 0.4943 GB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006525/0.4014, allocations: 0.6791 MB / 0.4949 GB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000718/0.4021, allocations: 164.9 kB / 0.4951 GB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.4124, allocations: 7.983 MB / 0.5029 GB, free: 2.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.4127, allocations: 0.906 MB / 0.5038 GB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004634/0.4132, allocations: 127.1 kB / 0.5039 GB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.4135, allocations: 291.9 kB / 0.5042 GB, free: 1.695 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4135, allocations: 0 / 0.5042 GB, free: 1.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04329/0.4568, allocations: 23.86 MB / 0.5275 GB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.6, allocations: 6.562 kB / 0.5275 GB, free: 10.32 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)