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.0007931/0.0007932, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.005127/0.005127, allocations: 169.7 kB / 16.27 MB, free: 6.66 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.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.1679/0.1679, allocations: 15.27 MB / 306.7 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002874, allocations: 12 kB / 372.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2472, allocations: 54.62 MB / 426.8 MB, free: 40.25 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.02208/0.2693, allocations: 24.1 MB / 450.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009227/0.2785, allocations: 9.969 MB / 460.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006489/0.2792, allocations: 14.47 kB / 460.9 MB, free: 26.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000611/0.2798, allocations: 221.5 kB / 461.1 MB, free: 26.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001366/0.2812, allocations: 0.5107 MB / 461.6 MB, free: 25.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.2844, allocations: 1.268 MB / 462.9 MB, free: 25.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009691/0.2854, allocations: 0.8964 MB / 463.8 MB, free: 24.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004904/0.2859, allocations: 419.5 kB / 464.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004204/0.2863, allocations: 375.3 kB / 464.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004794/0.2868, allocations: 438.8 kB / 465 MB, free: 24.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.899e-05/0.2869, allocations: 43.5 kB / 465 MB, free: 24.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.29, allocations: 1 MB / 466 MB, free: 23.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.2902, allocations: 148.5 kB / 466.2 MB, free: 23.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004644/0.2907, allocations: 421.4 kB / 466.6 MB, free: 23.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003508/0.2942, allocations: 1.834 MB / 468.4 MB, free: 22.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2942, allocations: 1.375 kB / 468.4 MB, free: 22.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2942, allocations: 0 / 468.4 MB, free: 22.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2942, allocations: 0 / 468.4 MB, free: 22.88 MB / 350.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.001706/0.296, allocations: 1.055 MB / 469.5 MB, free: 22.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.296, allocations: 9.219 kB / 469.5 MB, free: 22.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.2961, allocations: 108.9 kB / 469.6 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007305/0.2969, allocations: 212.5 kB / 469.8 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.2974, allocations: 467.5 kB / 470.3 MB, free: 21.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.2974, allocations: 53.47 kB / 470.3 MB, free: 21.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.2975, allocations: 65.34 kB / 470.4 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.2989, allocations: 1.096 MB / 471.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2989, allocations: 0 / 471.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.299, allocations: 28 kB / 471.5 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.299, allocations: 16 kB / 471.5 MB, free: 20.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.3005, allocations: 1.508 MB / 473 MB, free: 19.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/0.3041, allocations: 3.015 MB / 476 MB, free: 17.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3053, allocations: 0.9853 MB / 477 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.3057, allocations: 397.2 kB / 477.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002655/0.3083, allocations: 2.436 MB / 479.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/0.3084, allocations: 43 kB / 479.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 1.683e-06/0.3084, allocations: 0 / 479.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01428/0.3227, allocations: 3.534 MB / 483.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.3227, allocations: 60.48 kB / 483.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006375/0.3234, allocations: 0.6942 MB / 484.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.709e-05/0.3234, allocations: 37.7 kB / 484.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.3236, allocations: 354.6 kB / 484.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.3237, allocations: 229.9 kB / 484.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.838e-05/0.3238, allocations: 71.38 kB / 484.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.613e-05/0.3239, allocations: 366.5 kB / 485.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005205/0.3244, allocations: 448.5 kB / 485.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006046/0.325, allocations: 0.5934 MB / 486.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3261, allocations: 0.9712 MB / 487.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3261, allocations: 4 kB / 487.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003668/0.3298, allocations: 1.414 MB / 488.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3298, allocations: 8 kB / 488.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3298, allocations: 8.797 kB / 488.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/0.3321, allocations: 283.5 kB / 488.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007374/0.3328, allocations: 187.8 kB / 489.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/0.3371, allocations: 3.765 MB / 492.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007183/0.3379, allocations: 32.17 kB / 492.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.996e-05/0.338, allocations: 40.36 kB / 492.9 MB, free: 1.121 MB / 350.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.0002697/0.3382, allocations: 211.2 kB / 493.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.3383, allocations: 59.25 kB / 493.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.3421, allocations: 1.204 MB / 494.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.3421, allocations: 8.609 kB / 494.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3421, allocations: 0 / 494.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.3422, allocations: 11.58 kB / 494.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004992/0.3471, allocations: 2.167 MB / 496.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.3472, allocations: 7.938 kB / 496.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005586/0.3477, allocations: 142.2 kB / 496.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/0.35, allocations: 271.7 kB / 497 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-05/0.3501, allocations: 23.23 kB / 497 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004594/0.3547, allocations: 3.703 MB / 0.489 GB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3547, allocations: 4.641 kB / 0.489 GB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/0.3588, allocations: 1.657 MB / 0.4906 GB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.3591, allocations: 204.7 kB / 0.4908 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.3592, allocations: 16.55 kB / 0.4908 GB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.3597, allocations: 39.39 kB / 0.4909 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.3598, allocations: 61.12 kB / 0.4909 GB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.3599, allocations: 22.95 kB / 0.491 GB, free: 7.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005486/0.3604, allocations: 0.5099 MB / 0.4915 GB, free: 7.469 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3604, allocations: 0 / 0.4915 GB, free: 7.469 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001204/0.3616, allocations: 434.1 kB / 0.4919 GB, free: 7.055 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.005011/0.3667, allocations: 2.62 MB / 0.4944 GB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.3684, allocations: 1.189 MB / 0.4956 GB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3684, allocations: 0 / 0.4956 GB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008544/0.3693, allocations: 0.6849 MB / 0.4963 GB, free: 2.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009456/0.3702, allocations: 145.2 kB / 0.4964 GB, free: 2.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/0.3838, allocations: 8.388 MB / 0.5046 GB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.3843, allocations: 0.9148 MB / 0.5055 GB, free: 9.441 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000595/0.3849, allocations: 133 kB / 0.5056 GB, free: 9.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004083/0.3853, allocations: 287.3 kB / 0.5059 GB, free: 9.031 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3853, allocations: 0 / 0.5059 GB, free: 9.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03625/0.4216, allocations: 22.76 MB / 0.5281 GB, free: 2.426 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.4218, allocations: 218.2 kB / 0.5283 GB, free: 2.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.298/2.719, allocations: 3.938 kB / 0.5283 GB, free: 2.164 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)