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: translateModel(Chemical.Examples.AcidBase.AcidBaseBufferTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest") translateModel(Chemical.Examples.AcidBase.AcidBaseBufferTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001357, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1991/0.1991, allocations: 15.28 MB / 307.4 MB, free: 15.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004813/0.0004813, allocations: 8 kB / 372.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3079, allocations: 54.63 MB / 427.4 MB, free: 40.59 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.02703/0.335, allocations: 24.09 MB / 451.5 MB, free: 33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009597/0.3446, allocations: 9.972 MB / 461.4 MB, free: 26.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008306/0.3455, allocations: 15.81 kB / 461.4 MB, free: 26.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006914/0.3462, allocations: 216.6 kB / 461.7 MB, free: 26.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.3478, allocations: 0.5173 MB / 462.2 MB, free: 26.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003726/0.3515, allocations: 1.262 MB / 463.4 MB, free: 25.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.3527, allocations: 0.9024 MB / 464.3 MB, free: 25.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004925/0.3532, allocations: 417.6 kB / 464.7 MB, free: 24.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004381/0.3536, allocations: 380.3 kB / 465.1 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004797/0.3541, allocations: 430.6 kB / 465.5 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-05/0.3542, allocations: 43.41 kB / 465.6 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003156/0.3574, allocations: 1.002 MB / 466.6 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.3575, allocations: 150.3 kB / 466.7 MB, free: 24.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003841/0.3579, allocations: 412.5 kB / 467.1 MB, free: 23.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001993/0.3599, allocations: 1.447 MB / 468.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3599, allocations: 0 / 468.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.36, allocations: 5.094 kB / 468.6 MB, free: 23.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.36, allocations: 0 / 468.6 MB, free: 23.42 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.001814/0.3618, allocations: 1.056 MB / 469.6 MB, free: 22.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3618, allocations: 8.406 kB / 469.7 MB, free: 22.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007951/0.3626, allocations: 212.8 kB / 469.9 MB, free: 22.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005401/0.3632, allocations: 469.8 kB / 470.3 MB, free: 22.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.3632, allocations: 53.41 kB / 470.4 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.3634, allocations: 65.28 kB / 470.4 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3648, allocations: 1.088 MB / 471.5 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.3648, allocations: 1.312 kB / 471.5 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.657e-05/0.3649, allocations: 25.22 kB / 471.5 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.3649, allocations: 16.16 kB / 471.6 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.3666, allocations: 1.516 MB / 473.1 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004057/0.3706, allocations: 3.011 MB / 476.1 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.3718, allocations: 0.993 MB / 477.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004036/0.3722, allocations: 379.2 kB / 477.5 MB, free: 16.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003044/0.3753, allocations: 2.446 MB / 479.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.3753, allocations: 39.89 kB / 479.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.144e-06/0.3753, allocations: 0 / 479.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.0154/0.3907, allocations: 3.531 MB / 483.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.3908, allocations: 64.7 kB / 483.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000723/0.3915, allocations: 0.6942 MB / 484.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.522e-05/0.3916, allocations: 37.64 kB / 484.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.3918, allocations: 350.7 kB / 484.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.392, allocations: 233.9 kB / 484.8 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.246e-05/0.3921, allocations: 71.42 kB / 484.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.3922, allocations: 374.4 kB / 485.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005526/0.3927, allocations: 440.3 kB / 485.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006184/0.3933, allocations: 0.5897 MB / 486.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.3945, allocations: 0.9714 MB / 487.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3945, allocations: 0 / 487.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003735/0.3982, allocations: 1.425 MB / 488.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3983, allocations: 8 kB / 488.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3983, allocations: 8.938 kB / 488.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.4005, allocations: 275.7 kB / 489 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007314/0.4013, allocations: 191.2 kB / 489.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004476/0.4058, allocations: 3.761 MB / 492.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007443/0.4065, allocations: 40.81 kB / 493 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.443e-05/0.4066, allocations: 35.84 kB / 493 MB, free: 1.918 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.0002869/0.4069, allocations: 211.2 kB / 493.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.407, allocations: 59.86 kB / 493.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003645/0.4107, allocations: 1.21 MB / 494.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4107, allocations: 4 kB / 494.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4107, allocations: 4 kB / 494.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.4107, allocations: 8.531 kB / 494.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.416, allocations: 2.166 MB / 496.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.4161, allocations: 4.797 kB / 496.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005716/0.4166, allocations: 137.3 kB / 496.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002362/0.419, allocations: 280 kB / 497.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.446e-05/0.4191, allocations: 23.42 kB / 497.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005377/0.4245, allocations: 3.691 MB / 0.489 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.4245, allocations: 4.031 kB / 0.489 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004669/0.4292, allocations: 1.666 MB / 0.4907 GB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005428/0.4298, allocations: 199.8 kB / 0.4909 GB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.43, allocations: 25.75 kB / 0.4909 GB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006353/0.4306, allocations: 38.61 kB / 0.4909 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.4309, allocations: 56.94 kB / 0.491 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.11e-05/0.4309, allocations: 26.81 kB / 0.491 GB, free: 8.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007961/0.4317, allocations: 0.5067 MB / 0.4915 GB, free: 8.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4318, allocations: 0 / 0.4915 GB, free: 8.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00187/0.4336, allocations: 437.7 kB / 0.4919 GB, free: 7.848 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.001367/0.435, allocations: 0.5148 MB / 0.4924 GB, free: 7.375 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.4373, allocations: 1.193 MB / 0.4936 GB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4373, allocations: 0 / 0.4936 GB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.4387, allocations: 0.6734 MB / 0.4942 GB, free: 5.617 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.44, allocations: 152.8 kB / 0.4944 GB, free: 5.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.4431, allocations: 1.962 MB / 0.4963 GB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005773/0.4437, allocations: 0.9106 MB / 0.4972 GB, free: 2.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003492/0.444, allocations: 111.4 kB / 0.4973 GB, free: 2.668 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.444, allocations: 3.938 kB / 0.4973 GB, free: 2.664 MB / 366.1 MB Notification: Performance of Templates: time 0.02866/0.4727, allocations: 21.29 MB / 0.5181 GB, free: 13.39 MB / 398.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.makefile (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 & ./Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)