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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.00108/0.00108, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001033/0.001033, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2146/0.2146, allocations: 15.27 MB / 306.2 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003694, allocations: 8 kB / 371.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2692, allocations: 54.62 MB / 426.1 MB, free: 40.12 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.003935/0.2731, allocations: 4.266 MB / 430.3 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007605/0.2807, allocations: 8.601 MB / 438.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.2811, allocations: 14.25 kB / 439 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004423/0.2816, allocations: 220.6 kB / 439.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.2827, allocations: 0.6404 MB / 439.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.2847, allocations: 1.29 MB / 441.1 MB, free: 32.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000588/0.2853, allocations: 0.6453 MB / 441.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003569/0.2857, allocations: 402 kB / 442.1 MB, free: 32.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.286, allocations: 331.5 kB / 442.5 MB, free: 32.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003454/0.2863, allocations: 408.1 kB / 442.9 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.204e-05/0.2864, allocations: 44.5 kB / 442.9 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.2884, allocations: 1.164 MB / 444.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-05/0.2885, allocations: 148.2 kB / 444.2 MB, free: 31.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.2886, allocations: 159.9 kB / 444.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.2898, allocations: 1.195 MB / 445.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.2898, allocations: 0 / 445.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2898, allocations: 0 / 445.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2899, allocations: 0 / 445.6 MB, free: 31.16 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.001444/0.2913, allocations: 1.059 MB / 446.6 MB, free: 30.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.2913, allocations: 13.59 kB / 446.6 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.2915, allocations: 112.9 kB / 446.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006676/0.2921, allocations: 214.2 kB / 447 MB, free: 30.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.2926, allocations: 445.1 kB / 447.4 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.2927, allocations: 54.5 kB / 447.5 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.984e-05/0.2928, allocations: 66.25 kB / 447.5 MB, free: 29.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.2939, allocations: 1.072 MB / 448.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2939, allocations: 7.938 kB / 448.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.786e-05/0.294, allocations: 25.56 kB / 448.6 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.294, allocations: 17.69 kB / 448.6 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.2955, allocations: 1.508 MB / 450.1 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/0.2991, allocations: 2.999 MB / 453.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3003, allocations: 0.9958 MB / 454.1 MB, free: 26.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002739/0.303, allocations: 2.411 MB / 456.6 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.3031, allocations: 45.12 kB / 456.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.214e-06/0.3031, allocations: 0 / 456.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01361/0.3167, allocations: 3.536 MB / 460.1 MB, free: 23.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.3168, allocations: 59.09 kB / 460.2 MB, free: 23.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000725/0.3175, allocations: 0.6849 MB / 460.9 MB, free: 23.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.989e-05/0.3176, allocations: 39.73 kB / 460.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.3178, allocations: 353.5 kB / 461.3 MB, free: 22.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.3179, allocations: 235.8 kB / 461.5 MB, free: 22.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.05e-05/0.318, allocations: 14.44 kB / 461.5 MB, free: 22.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.549e-05/0.3181, allocations: 367.8 kB / 461.9 MB, free: 22.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000549/0.3186, allocations: 440.2 kB / 462.3 MB, free: 22.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006061/0.3192, allocations: 0.5854 MB / 462.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006137/0.3199, allocations: 493.3 kB / 463.4 MB, free: 21.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3199, allocations: 5.156 kB / 463.4 MB, free: 21.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003722/0.3236, allocations: 1.412 MB / 464.8 MB, free: 20.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.3236, allocations: 7.531 kB / 464.8 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.3237, allocations: 4.125 kB / 464.8 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/0.3258, allocations: 282.6 kB / 465.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007331/0.3265, allocations: 190.1 kB / 465.2 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004381/0.3309, allocations: 3.785 MB / 469 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007239/0.3317, allocations: 44.09 kB / 469.1 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-05/0.3318, allocations: 34.86 kB / 469.1 MB, free: 17.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004056/0.3322, allocations: 206.6 kB / 469.3 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.3323, allocations: 64.83 kB / 469.4 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003626/0.3359, allocations: 1.201 MB / 470.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.336, allocations: 11.12 kB / 470.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.336, allocations: 1.641 kB / 470.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.336, allocations: 7.172 kB / 470.6 MB, free: 16.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00499/0.341, allocations: 2.167 MB / 472.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.3411, allocations: 2.125 kB / 472.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/0.3416, allocations: 140.4 kB / 472.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/0.3437, allocations: 286.2 kB / 473.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-05/0.3438, allocations: 23.77 kB / 473.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004257/0.3481, allocations: 3.73 MB / 476.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3481, allocations: 6.062 kB / 476.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00412/0.3523, allocations: 1.72 MB / 478.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.3527, allocations: 197.7 kB / 478.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.899e-05/0.3528, allocations: 18.12 kB / 478.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004251/0.3532, allocations: 28.17 kB / 478.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3533, allocations: 62.98 kB / 479 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.118e-05/0.3534, allocations: 25.69 kB / 479 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005067/0.3539, allocations: 0.5038 MB / 479.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3539, allocations: 1 kB / 479.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00127/0.3552, allocations: 431.6 kB / 479.9 MB, free: 10.58 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004678/0.3599, allocations: 3.104 MB / 483 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.3617, allocations: 1.187 MB / 484.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3617, allocations: 1.375 kB / 484.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008307/0.3625, allocations: 0.6735 MB / 484.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007393/0.3633, allocations: 136.5 kB / 485 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.3666, allocations: 5.258 MB / 490.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.367, allocations: 0.9236 MB / 491.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005511/0.3676, allocations: 139.1 kB / 491.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003747/0.368, allocations: 286.1 kB / 491.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.368, allocations: 0 / 491.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0419/0.4099, allocations: 22.3 MB / 0.5019 GB, free: 12.86 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.4102, allocations: 193.8 kB / 0.502 GB, free: 12.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.318/2.729, allocations: 0 / 0.502 GB, free: 12.62 MB / 382.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/linux/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) Environment - environmentSimulation: