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.001047/0.001047, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.0008356/0.0008356, allocations: 172.7 kB / 15.95 MB, free: 208 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.253/1.253, allocations: 223.3 MB / 240 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1795/0.1795, allocations: 15.26 MB / 306.3 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002874, allocations: 8.219 kB / 371.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.26, allocations: 54.61 MB / 426.2 MB, free: 40.09 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.005065/0.2652, allocations: 4.668 MB / 430.8 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009679/0.2748, allocations: 9.272 MB / 440.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.2755, allocations: 14.28 kB / 440.1 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006272/0.2761, allocations: 211.5 kB / 440.3 MB, free: 33.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001499/0.2776, allocations: 0.5547 MB / 440.9 MB, free: 32.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002524/0.2801, allocations: 1.167 MB / 442.1 MB, free: 32.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000809/0.281, allocations: 0.8655 MB / 442.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004275/0.2814, allocations: 406.1 kB / 443.3 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003215/0.2817, allocations: 350.7 kB / 443.7 MB, free: 31.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000387/0.2821, allocations: 411.3 kB / 444.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.893e-05/0.2822, allocations: 43.19 kB / 444.1 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002359/0.2846, allocations: 0.9673 MB / 445.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.2847, allocations: 145.3 kB / 445.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.2848, allocations: 162.3 kB / 445.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.2863, allocations: 1.492 MB / 446.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.2863, allocations: 0 / 446.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.2864, allocations: 0 / 446.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.2864, allocations: 0 / 446.9 MB, free: 30.21 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.001594/0.288, allocations: 1.062 MB / 447.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.288, allocations: 13.78 kB / 447.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.935e-05/0.2881, allocations: 109.5 kB / 448 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006644/0.2888, allocations: 215.7 kB / 448.3 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.2893, allocations: 453.7 kB / 448.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.2893, allocations: 53.25 kB / 448.8 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.2894, allocations: 63.56 kB / 448.8 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.2907, allocations: 1.079 MB / 449.9 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.2907, allocations: 10.62 kB / 449.9 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.2908, allocations: 25.22 kB / 449.9 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.2908, allocations: 15.41 kB / 449.9 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.2923, allocations: 1.508 MB / 451.4 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003691/0.296, allocations: 3.023 MB / 454.5 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.2972, allocations: 0.9813 MB / 455.5 MB, free: 25.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.2976, allocations: 381.8 kB / 455.8 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002696/0.3003, allocations: 2.433 MB / 458.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.3003, allocations: 37.22 kB / 458.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 1.823e-06/0.3003, allocations: 0 / 458.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01383/0.3142, allocations: 3.534 MB / 461.8 MB, free: 22.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.3142, allocations: 59.44 kB / 461.9 MB, free: 22.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007987/0.315, allocations: 0.688 MB / 462.6 MB, free: 22.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.3151, allocations: 40.75 kB / 462.6 MB, free: 21.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.3153, allocations: 343.9 kB / 463 MB, free: 21.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.3155, allocations: 234.2 kB / 463.2 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.3155, allocations: 15.56 kB / 463.2 MB, free: 21.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3156, allocations: 371.3 kB / 463.6 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/0.3163, allocations: 439 kB / 464 MB, free: 21.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007622/0.317, allocations: 0.5903 MB / 464.6 MB, free: 20.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/0.3178, allocations: 499.3 kB / 465.1 MB, free: 20.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3178, allocations: 1.875 kB / 465.1 MB, free: 20.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003786/0.3216, allocations: 1.414 MB / 466.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.3217, allocations: 7.438 kB / 466.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.3217, allocations: 4.125 kB / 466.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001995/0.3237, allocations: 280.7 kB / 466.8 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006957/0.3244, allocations: 197 kB / 467 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004323/0.3287, allocations: 3.752 MB / 470.7 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.3294, allocations: 38.53 kB / 470.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.079e-05/0.3295, allocations: 37.91 kB / 470.8 MB, free: 16.3 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.0003129/0.3298, allocations: 206.6 kB / 471 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.33, allocations: 58.31 kB / 471 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.3336, allocations: 1.213 MB / 472.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.3337, allocations: 6.781 kB / 472.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3337, allocations: 1.781 kB / 472.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.3337, allocations: 3.281 kB / 472.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004842/0.3385, allocations: 2.165 MB / 474.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.3386, allocations: 1.5 kB / 474.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.3391, allocations: 141 kB / 474.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/0.3412, allocations: 282.1 kB / 474.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.989e-05/0.3413, allocations: 20.7 kB / 474.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.3453, allocations: 3.694 MB / 478.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3454, allocations: 4.109 kB / 478.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00412/0.3495, allocations: 1.656 MB / 480.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.3499, allocations: 201 kB / 480.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.35, allocations: 22.12 kB / 480.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000503/0.3505, allocations: 26.66 kB / 480.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.3507, allocations: 62.84 kB / 480.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.118e-05/0.3508, allocations: 25.89 kB / 480.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005819/0.3513, allocations: 0.5005 MB / 481.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3514, allocations: 4.906 kB / 481.1 MB, free: 9.703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001472/0.3528, allocations: 434.2 kB / 481.5 MB, free: 9.605 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.00504/0.3579, allocations: 2.607 MB / 484.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001953/0.3599, allocations: 1.196 MB / 485.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3599, allocations: 1.375 kB / 485.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008927/0.3608, allocations: 0.6776 MB / 486 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009981/0.3618, allocations: 156.7 kB / 486.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009397/0.3712, allocations: 5.537 MB / 491.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3716, allocations: 0.9132 MB / 492.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006216/0.3723, allocations: 128 kB / 492.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.3727, allocations: 284.2 kB / 493 MB, free: 1.516 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3727, allocations: 0 / 493 MB, free: 1.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04312/0.4158, allocations: 22.49 MB / 0.5034 GB, free: 11.42 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.4161, allocations: 210.5 kB / 0.5036 GB, free: 11.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/2.789, allocations: 4 kB / 0.5036 GB, free: 11.17 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: