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.008383/0.008383, allocations: 103.7 kB / 15.73 MB, free: 5.996 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.001792/0.001792, allocations: 187.5 kB / 16.67 MB, free: 5.934 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2078/0.2078, allocations: 15.32 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001348, allocations: 75.81 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2606, allocations: 53.59 MB / 478.3 MB, free: 25.7 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.03047/0.2911, allocations: 24.1 MB / 0.4906 GB, free: 10.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008706/0.2998, allocations: 10.09 MB / 0.5005 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006745/0.3005, allocations: 4 kB / 0.5005 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006231/0.3011, allocations: 246.1 kB / 0.5007 GB, free: 280 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001442/0.3026, allocations: 0.5587 MB / 0.5013 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003552/0.3062, allocations: 1.448 MB / 0.5027 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.3075, allocations: 0.9467 MB / 0.5036 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006083/0.3081, allocations: 0.501 MB / 0.5041 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004674/0.3086, allocations: 414.8 kB / 0.5045 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005311/0.3091, allocations: 486.2 kB / 0.505 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.3092, allocations: 84 kB / 0.505 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002829/0.3121, allocations: 1.034 MB / 0.506 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.3122, allocations: 199.3 kB / 0.5062 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.3126, allocations: 430.1 kB / 0.5066 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.3161, allocations: 1.985 MB / 0.5086 GB, free: 8.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3161, allocations: 0 / 0.5086 GB, free: 8.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3161, allocations: 0 / 0.5086 GB, free: 8.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.3161, allocations: 0 / 0.5086 GB, free: 8.188 MB / 382.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.002087/0.3182, allocations: 1.216 MB / 0.5098 GB, free: 6.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3183, allocations: 8.031 kB / 0.5098 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001544/0.3185, allocations: 110.7 kB / 0.5099 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008401/0.3193, allocations: 207.6 kB / 0.5101 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007529/0.3201, allocations: 493.6 kB / 0.5106 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.3201, allocations: 54.38 kB / 0.5106 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.3202, allocations: 68.38 kB / 0.5107 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.3218, allocations: 1.091 MB / 0.5117 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3219, allocations: 0 / 0.5117 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/0.3219, allocations: 24 kB / 0.5118 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.322, allocations: 20 kB / 0.5118 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.3238, allocations: 1.507 MB / 0.5132 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004803/0.3286, allocations: 3.009 MB / 0.5162 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3301, allocations: 0.9978 MB / 0.5172 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/0.3306, allocations: 386.3 kB / 0.5175 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003545/0.3342, allocations: 2.461 MB / 0.5199 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.3343, allocations: 42.94 kB / 0.52 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=51): time 2.044e-06/0.3343, allocations: 0 / 0.52 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.01501/0.3493, allocations: 3.489 MB / 0.5234 GB, free: 8.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.3493, allocations: 59.97 kB / 0.5234 GB, free: 8.438 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007964/0.3502, allocations: 0.6931 MB / 0.5241 GB, free: 7.734 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.9e-05/0.3502, allocations: 37.7 kB / 0.5241 GB, free: 7.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.3505, allocations: 343.5 kB / 0.5245 GB, free: 7.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3507, allocations: 240.6 kB / 0.5247 GB, free: 7.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.3509, allocations: 154.5 kB / 0.5249 GB, free: 6.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3511, allocations: 366.8 kB / 0.5252 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/0.3517, allocations: 441.8 kB / 0.5256 GB, free: 6.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007164/0.3524, allocations: 0.6002 MB / 0.5262 GB, free: 5.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.3537, allocations: 0.9694 MB / 0.5272 GB, free: 4.473 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.3537, allocations: 4 kB / 0.5272 GB, free: 4.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003876/0.3576, allocations: 1.413 MB / 0.5285 GB, free: 3.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3576, allocations: 8 kB / 0.5285 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3577, allocations: 4 kB / 0.5286 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002199/0.3599, allocations: 270.2 kB / 0.5288 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000767/0.3606, allocations: 191.7 kB / 0.529 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005425/0.3661, allocations: 3.948 MB / 0.5328 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006822/0.3668, allocations: 27.98 kB / 0.5329 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.3669, allocations: 39.98 kB / 0.5329 GB, free: 14.25 MB / 414.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.0003763/0.3673, allocations: 209.7 kB / 0.5331 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.3675, allocations: 59.25 kB / 0.5332 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00373/0.3713, allocations: 1.197 MB / 0.5343 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.3713, allocations: 8 kB / 0.5343 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.3713, allocations: 3.984 kB / 0.5344 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3713, allocations: 0 / 0.5344 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005062/0.3764, allocations: 2.147 MB / 0.5364 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.3764, allocations: 4 kB / 0.5365 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.377, allocations: 135.9 kB / 0.5366 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/0.3791, allocations: 266.5 kB / 0.5368 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.868e-05/0.3792, allocations: 19.94 kB / 0.5369 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.3842, allocations: 3.922 MB / 0.5407 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3842, allocations: 0 / 0.5407 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004201/0.3884, allocations: 1.65 MB / 0.5423 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.3888, allocations: 192.3 kB / 0.5425 GB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.389, allocations: 23.94 kB / 0.5425 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004606/0.3894, allocations: 23.94 kB / 0.5425 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.3896, allocations: 56.48 kB / 0.5426 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.123e-05/0.3896, allocations: 23.98 kB / 0.5426 GB, free: 3.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000562/0.3902, allocations: 0.5146 MB / 0.5431 GB, free: 3.324 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3902, allocations: 0 / 0.5431 GB, free: 3.324 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00128/0.3915, allocations: 431.7 kB / 0.5435 GB, free: 2.902 MB / 414.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.005485/0.397, allocations: 2.615 MB / 0.5461 GB, free: 232 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.3991, allocations: 1.186 MB / 0.5472 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3991, allocations: 320 / 0.5472 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.4001, allocations: 0.6877 MB / 0.5479 GB, free: 14.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4012, allocations: 164.2 kB / 0.5481 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/0.4158, allocations: 7.851 MB / 0.5557 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.4164, allocations: 0.9148 MB / 0.5566 GB, free: 5.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00052/0.4169, allocations: 128.9 kB / 0.5567 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.4174, allocations: 291.3 kB / 0.557 GB, free: 4.68 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4174, allocations: 0 / 0.557 GB, free: 4.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05522/0.4726, allocations: 24.55 MB / 0.581 GB, free: 12.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.28, allocations: 7.859 kB / 0.581 GB, free: 12.24 MB / 462.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)