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.007556/0.007556, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.00109/0.00109, allocations: 189 kB / 16.68 MB, free: 6.367 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2209/0.2209, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.91 kB / 424.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2618, allocations: 53.61 MB / 478.3 MB, free: 25.75 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.03231/0.2942, allocations: 24.17 MB / 0.4907 GB, free: 10.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008246/0.3024, allocations: 10.08 MB / 0.5005 GB, free: 412 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006631/0.3031, allocations: 7.938 kB / 0.5006 GB, free: 404 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006439/0.3038, allocations: 238.3 kB / 0.5008 GB, free: 164 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.3051, allocations: 0.5818 MB / 0.5013 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003316/0.3085, allocations: 1.448 MB / 0.5028 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.3096, allocations: 0.9467 MB / 0.5037 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000549/0.3102, allocations: 0.501 MB / 0.5042 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004701/0.3107, allocations: 426.7 kB / 0.5046 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005229/0.3112, allocations: 478.2 kB / 0.505 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.3113, allocations: 84 kB / 0.5051 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002542/0.3139, allocations: 1.038 MB / 0.5061 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.3141, allocations: 191.4 kB / 0.5063 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003724/0.3145, allocations: 434 kB / 0.5067 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002884/0.3174, allocations: 1.996 MB / 0.5087 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3174, allocations: 4 kB / 0.5087 GB, free: 8.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3174, allocations: 4 kB / 0.5087 GB, free: 8.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3174, allocations: 0 / 0.5087 GB, free: 8.027 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.001979/0.3194, allocations: 1.234 MB / 0.5099 GB, free: 6.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3194, allocations: 8.031 kB / 0.5099 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/0.3196, allocations: 114.7 kB / 0.51 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008162/0.3204, allocations: 212 kB / 0.5102 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.321, allocations: 489.9 kB / 0.5107 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.044e-05/0.3211, allocations: 50.38 kB / 0.5107 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.3212, allocations: 76.31 kB / 0.5108 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.3227, allocations: 1.091 MB / 0.5119 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.3227, allocations: 0 / 0.5119 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/0.3228, allocations: 28 kB / 0.5119 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.3228, allocations: 16 kB / 0.5119 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.3248, allocations: 1.511 MB / 0.5134 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004764/0.3296, allocations: 3.014 MB / 0.5163 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.3311, allocations: 0.9977 MB / 0.5173 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.3316, allocations: 386.3 kB / 0.5177 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003887/0.3355, allocations: 2.453 MB / 0.5201 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.3355, allocations: 39 kB / 0.5201 GB, free: 11.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=51): time 3.156e-06/0.3356, allocations: 3.938 kB / 0.5201 GB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.01473/0.3503, allocations: 3.509 MB / 0.5235 GB, free: 8.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.3504, allocations: 63.91 kB / 0.5236 GB, free: 8.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007861/0.3512, allocations: 0.6931 MB / 0.5243 GB, free: 7.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.502e-05/0.3512, allocations: 33.7 kB / 0.5243 GB, free: 7.484 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.3515, allocations: 360.4 kB / 0.5246 GB, free: 7.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.3517, allocations: 245.9 kB / 0.5249 GB, free: 6.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002434/0.3519, allocations: 154.6 kB / 0.525 GB, free: 6.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3521, allocations: 366.8 kB / 0.5254 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.3527, allocations: 449.8 kB / 0.5258 GB, free: 5.926 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007497/0.3535, allocations: 0.5886 MB / 0.5264 GB, free: 5.277 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.3548, allocations: 0.9772 MB / 0.5273 GB, free: 4.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3549, allocations: 4 kB / 0.5273 GB, free: 4.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003819/0.3587, allocations: 1.413 MB / 0.5287 GB, free: 2.809 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3587, allocations: 8 kB / 0.5287 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.3588, allocations: 4 kB / 0.5287 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002076/0.3608, allocations: 266.2 kB / 0.529 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008089/0.3617, allocations: 195.7 kB / 0.5292 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005301/0.367, allocations: 3.954 MB / 0.533 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006781/0.3677, allocations: 20 kB / 0.533 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.3678, allocations: 40.14 kB / 0.5331 GB, free: 14.02 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.0003698/0.3682, allocations: 213.5 kB / 0.5333 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.3684, allocations: 59.62 kB / 0.5333 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.3721, allocations: 1.201 MB / 0.5345 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3721, allocations: 4 kB / 0.5345 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.3721, allocations: 4 kB / 0.5345 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.3721, allocations: 3.984 kB / 0.5345 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005436/0.3776, allocations: 2.151 MB / 0.5366 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3776, allocations: 4.188 kB / 0.5366 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005661/0.3782, allocations: 135.8 kB / 0.5368 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/0.3802, allocations: 258.3 kB / 0.537 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.969e-05/0.3802, allocations: 23.98 kB / 0.537 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004793/0.385, allocations: 3.911 MB / 0.5409 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.3851, allocations: 7.969 kB / 0.5409 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00394/0.389, allocations: 1.654 MB / 0.5425 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.3893, allocations: 196.6 kB / 0.5427 GB, free: 3.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3894, allocations: 23.88 kB / 0.5427 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.3899, allocations: 16.22 kB / 0.5427 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.39, allocations: 60.42 kB / 0.5428 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.3901, allocations: 24 kB / 0.5428 GB, free: 3.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005287/0.3906, allocations: 0.5146 MB / 0.5433 GB, free: 3.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3906, allocations: 0 / 0.5433 GB, free: 3.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001121/0.3918, allocations: 442.8 kB / 0.5437 GB, free: 2.656 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.005017/0.3968, allocations: 2.63 MB / 0.5463 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.3987, allocations: 1.189 MB / 0.5474 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3987, allocations: 0 / 0.5474 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000942/0.3997, allocations: 0.6891 MB / 0.5481 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009227/0.4006, allocations: 161.5 kB / 0.5483 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.4145, allocations: 7.868 MB / 0.5559 GB, free: 5.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.4152, allocations: 0.907 MB / 0.5568 GB, free: 4.816 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005191/0.4157, allocations: 132.8 kB / 0.557 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000441/0.4162, allocations: 287.3 kB / 0.5572 GB, free: 4.406 MB / 430.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4162, allocations: 4 kB / 0.5572 GB, free: 4.402 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05457/0.4707, allocations: 24.1 MB / 0.5808 GB, free: 12.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.58, allocations: 7.938 kB / 0.5808 GB, free: 12.41 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest.fmu > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)