Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",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.00186/0.00186, allocations: 108 kB / 15.6 MB, free: 132 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.01078/0.01078, allocations: 192.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.124/3.124, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4069/0.4069, allocations: 15.32 MB / 305.7 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002984/0.002985, allocations: 63.91 kB / 370.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2424, allocations: 53.62 MB / 424 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.02702/0.2695, allocations: 7.527 MB / 431.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4592/0.7288, allocations: 23.31 MB / 454.9 MB, free: 37.78 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002289/0.7311, allocations: 20.91 kB / 454.9 MB, free: 37.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002993/0.7342, allocations: 490.2 kB / 455.4 MB, free: 37.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01197/0.7463, allocations: 1.932 MB / 457.3 MB, free: 36.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03254/0.7789, allocations: 2.925 MB / 460.2 MB, free: 35.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005075/0.784, allocations: 2.114 MB / 462.4 MB, free: 34.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002899/0.787, allocations: 1.238 MB / 463.6 MB, free: 34.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002783/0.7898, allocations: 1.059 MB / 464.7 MB, free: 33.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003726/0.7936, allocations: 1.209 MB / 465.9 MB, free: 33.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001191/0.7948, allocations: 195.1 kB / 466.1 MB, free: 33.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0173/0.8122, allocations: 2.511 MB / 468.6 MB, free: 32.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.8137, allocations: 476.8 kB / 469 MB, free: 32.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002325/0.8161, allocations: 0.9398 MB / 470 MB, free: 31.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02273/0.8388, allocations: 4.657 MB / 474.6 MB, free: 29.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.987e-05/0.839, allocations: 4.703 kB / 474.6 MB, free: 29.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.36e-06/0.839, allocations: 1.5 kB / 474.6 MB, free: 29.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001859/0.8392, allocations: 0 / 474.6 MB, free: 29.88 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.01435/0.8536, allocations: 2.403 MB / 477 MB, free: 28.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.849e-05/0.8537, allocations: 14.8 kB / 477.1 MB, free: 28.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001287/0.855, allocations: 209.5 kB / 477.3 MB, free: 28.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01544/0.8705, allocations: 395.2 kB / 477.6 MB, free: 28.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003963/0.8745, allocations: 0.861 MB / 478.5 MB, free: 27.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003609/0.8749, allocations: 166.9 kB / 478.7 MB, free: 27.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/0.876, allocations: 149.6 kB / 478.8 MB, free: 27.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009305/0.8853, allocations: 2.037 MB / 480.9 MB, free: 26.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.96e-05/0.8855, allocations: 0 / 480.9 MB, free: 26.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005516/0.8861, allocations: 55.53 kB / 480.9 MB, free: 26.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-05/0.8861, allocations: 37.19 kB / 480.9 MB, free: 26.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01009/0.8962, allocations: 2.695 MB / 483.6 MB, free: 25.85 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0255/0.9218, allocations: 6.521 MB / 490.2 MB, free: 22.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/0.9332, allocations: 3.306 MB / 493.5 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/0.9362, allocations: 0.8865 MB / 494.3 MB, free: 20.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02015/0.9564, allocations: 7.209 MB / 0.4898 GB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.9565, allocations: 47.5 kB / 0.4898 GB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001635/0.9582, allocations: 171 kB / 0.49 GB, free: 14.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 1.09e-05/0.9582, allocations: 0 / 0.49 GB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0371/0.9953, allocations: 5.408 MB / 0.4953 GB, free: 11.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.9954, allocations: 64.72 kB / 0.4954 GB, free: 11.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002008/0.9975, allocations: 1.03 MB / 0.4964 GB, free: 10.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004433/0.9979, allocations: 53.7 kB / 0.4964 GB, free: 10.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005657/0.9985, allocations: 0.6746 MB / 0.4971 GB, free: 9.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008372/0.9994, allocations: 489 kB / 0.4975 GB, free: 9.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/1.001, allocations: 339.2 kB / 0.4979 GB, free: 8.676 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.435e-05/1.001, allocations: 301.1 kB / 0.4981 GB, free: 8.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/1.003, allocations: 0.6481 MB / 0.4988 GB, free: 7.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/1.005, allocations: 1.11 MB / 0.4999 GB, free: 6.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/1.009, allocations: 1.804 MB / 0.5016 GB, free: 4.434 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.21e-05/1.009, allocations: 4 kB / 0.5016 GB, free: 4.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.01223/1.022, allocations: 2.407 MB / 0.504 GB, free: 2.004 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/1.022, allocations: 12.88 kB / 0.504 GB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.789e-05/1.022, allocations: 16 kB / 0.504 GB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004905/1.027, allocations: 493.3 kB / 0.5045 GB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003083/1.03, allocations: 423.3 kB / 0.5049 GB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009655/1.04, allocations: 3.861 MB / 0.5087 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/1.042, allocations: 63.92 kB / 0.5087 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005166/1.043, allocations: 92.14 kB / 0.5088 GB, free: 12.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001438/1.044, allocations: 334.4 kB / 0.5091 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009575/1.045, allocations: 130.4 kB / 0.5092 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/1.059, allocations: 2.135 MB / 0.5113 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-05/1.059, allocations: 19.94 kB / 0.5113 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/1.059, allocations: 3.938 kB / 0.5114 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.792e-05/1.059, allocations: 11.97 kB / 0.5114 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01999/1.079, allocations: 3.55 MB / 0.5148 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.942e-05/1.079, allocations: 0 / 0.5148 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002854/1.082, allocations: 263.7 kB / 0.5151 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005045/1.087, allocations: 470 kB / 0.5155 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005474/1.088, allocations: 47.97 kB / 0.5156 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009027/1.097, allocations: 3.779 MB / 0.5193 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.097, allocations: 0 / 0.5193 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/1.115, allocations: 2.743 MB / 0.5219 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008024/1.116, allocations: 183.6 kB / 0.5221 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008091/1.117, allocations: 35.94 kB / 0.5222 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/1.119, allocations: 28 kB / 0.5222 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006446/1.12, allocations: 125.1 kB / 0.5223 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000321/1.12, allocations: 51.97 kB / 0.5224 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005997/1.126, allocations: 0.7108 MB / 0.523 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.152e-06/1.126, allocations: 0 / 0.523 GB, free: 13.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006123/1.132, allocations: 0.9407 MB / 0.524 GB, free: 12.83 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.logn,OH.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 (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02428/1.156, allocations: 4.299 MB / 0.5282 GB, free: 8.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01102/1.168, allocations: 2.161 MB / 0.5303 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/1.168, allocations: 0 / 0.5303 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004354/1.172, allocations: 1.135 MB / 0.5314 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008062/1.18, allocations: 261.1 kB / 0.5316 GB, free: 4.855 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07151/1.252, allocations: 12.87 MB / 0.5442 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/1.253, allocations: 1.191 MB / 0.5454 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003442/1.257, allocations: 321 kB / 0.5457 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/1.259, allocations: 0.6597 MB / 0.5463 GB, free: 5.07 MB / 414.1 MB Notification: Performance of SimCode: time 1.523e-06/1.259, allocations: 0 / 0.5463 GB, free: 5.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3736/1.632, allocations: 45.13 MB / 0.5904 GB, free: 8.156 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.81/32.44, allocations: 7.562 kB / 0.5904 GB, free: 8.152 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)