Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_NIST.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.GasSolubility_NIST,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_NIST",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility_NIST,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_NIST",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.001744/0.001744, 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.003116/0.003116, allocations: 198.4 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.949/2.949, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5118/0.5118, allocations: 15.32 MB / 305.7 MB, free: 15.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002636/0.002636, allocations: 63.91 kB / 370.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3481, allocations: 53.61 MB / 424 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_NIST): time 0.538/0.8862, allocations: 14.74 MB / 438.8 MB, free: 42.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1021/0.9885, allocations: 49.07 MB / 487.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006999/0.9956, allocations: 40.16 kB / 487.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007255/1.003, allocations: 1.109 MB / 489 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02754/1.031, allocations: 3.412 MB / 492.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05076/1.081, allocations: 6.931 MB / 499.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0159/1.097, allocations: 4.472 MB / 0.492 GB, free: 5.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008622/1.106, allocations: 2.302 MB / 0.4943 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01073/1.117, allocations: 2.059 MB / 0.4963 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01096/1.128, allocations: 2.295 MB / 0.4985 GB, free: 3.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004023/1.132, allocations: 382.7 kB / 0.4989 GB, free: 3.016 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05483/1.187, allocations: 5.518 MB / 0.5043 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003777/1.191, allocations: 0.881 MB / 0.5051 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008863/1.2, allocations: 1.956 MB / 0.507 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.08322/1.283, allocations: 9.882 MB / 0.5167 GB, free: 6.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.706e-05/1.283, allocations: 0 / 0.5167 GB, free: 6.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.106e-06/1.283, allocations: 7.938 kB / 0.5167 GB, free: 6.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000275/1.283, allocations: 4 kB / 0.5167 GB, free: 6.398 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: 791 * Number of variables: 791 Notification: Performance of Generate backend data structure: time 0.03229/1.316, allocations: 4.66 MB / 0.5212 GB, free: 1.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.719e-05/1.316, allocations: 12.03 kB / 0.5213 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002702/1.319, allocations: 422.4 kB / 0.5217 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/1.33, allocations: 0.9235 MB / 0.5226 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009121/1.339, allocations: 1.536 MB / 0.5241 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006506/1.34, allocations: 238.6 kB / 0.5243 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002707/1.343, allocations: 324.1 kB / 0.5246 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02678/1.37, allocations: 4.46 MB / 0.529 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003118/1.37, allocations: 0 / 0.529 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002104/1.372, allocations: 128 kB / 0.5291 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/1.373, allocations: 76 kB / 0.5291 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02422/1.397, allocations: 6.368 MB / 0.5354 GB, free: 3.039 MB / 398.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.05628/1.453, allocations: 12.67 MB / 0.5477 GB, free: 5.961 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01947/1.473, allocations: 4.62 MB / 0.5523 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006088/1.479, allocations: 1.312 MB / 0.5535 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04435/1.523, allocations: 12.16 MB / 0.5654 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001167/1.524, allocations: 60.23 kB / 0.5655 GB, free: 2.25 MB / 430.1 MB Notification: Performance of pre-optimization done (n=182): time 1.074e-05/1.524, allocations: 0 / 0.5655 GB, free: 2.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=227): time 0.09608/1.62, allocations: 9.786 MB / 0.575 GB, free: 8.238 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001756/1.62, allocations: 132.7 kB / 0.5752 GB, free: 8.086 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01082/1.631, allocations: 3.318 MB / 0.5784 GB, free: 4.742 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006757/1.632, allocations: 61.7 kB / 0.5784 GB, free: 4.676 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002618/1.634, allocations: 1.597 MB / 0.58 GB, free: 3.059 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002072/1.636, allocations: 0.7857 MB / 0.5808 GB, free: 2.262 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00346/1.64, allocations: 0.6913 MB / 0.5815 GB, free: 1.562 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002048/1.64, allocations: 305.1 kB / 0.5817 GB, free: 1.262 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004448/1.645, allocations: 1.378 MB / 0.5831 GB, free: 15.88 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01163/1.656, allocations: 2.484 MB / 0.5855 GB, free: 12.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/1.669, allocations: 3.58 MB / 0.589 GB, free: 8.84 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/1.669, allocations: 8 kB / 0.589 GB, free: 8.832 MB / 462.1 MB Notification: Performance of matching and sorting (n=458) (initialization): time 0.0334/1.703, allocations: 4.979 MB / 0.5939 GB, free: 3.828 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002695/1.703, allocations: 20 kB / 0.5939 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/1.703, allocations: 36 kB / 0.5939 GB, free: 3.773 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01512/1.718, allocations: 0.7153 MB / 0.5946 GB, free: 3.039 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007172/1.726, allocations: 0.8386 MB / 0.5954 GB, free: 2.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.517/2.243, allocations: 11.54 MB / 0.6067 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/2.25, allocations: 118.7 kB / 0.6068 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0014/2.251, allocations: 195.9 kB / 0.607 GB, free: 120.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 159 * 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 (440): * Single equations (assignments): 434 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.003909/2.255, allocations: 0.5423 MB / 0.6076 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00221/2.257, allocations: 263.1 kB / 0.6078 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02079/2.278, allocations: 3.226 MB / 0.611 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.758e-05/2.278, allocations: 25.25 kB / 0.611 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.734e-05/2.278, allocations: 3 kB / 0.611 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001127/2.278, allocations: 10.27 kB / 0.611 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009081/2.287, allocations: 2.6 MB / 0.6135 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.619e-05/2.288, allocations: 3.641 kB / 0.6135 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00335/2.291, allocations: 448.8 kB / 0.614 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00938/2.3, allocations: 0.6778 MB / 0.6146 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009331/2.301, allocations: 77.91 kB / 0.6147 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02152/2.323, allocations: 11.28 MB / 0.6257 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.166e-06/2.323, allocations: 5.938 kB / 0.6257 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02296/2.346, allocations: 4.16 MB / 0.6298 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002137/2.348, allocations: 315.9 kB / 0.6301 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002182/2.351, allocations: 52.14 kB / 0.6301 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004336/2.355, allocations: 51.16 kB / 0.6302 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001495/2.357, allocations: 200.8 kB / 0.6304 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008875/2.357, allocations: 92.92 kB / 0.6305 GB, free: 106.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.02295/2.38, allocations: 2.342 MB / 0.6327 GB, free: 105.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.923e-06/2.381, allocations: 3.844 kB / 0.6328 GB, free: 105.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0344/2.415, allocations: 2.081 MB / 0.6348 GB, free: 105.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (water_solution_37degC1.temperature,CO2_0.logn,O2_0.logn,water_0.logn,water_solution_37degC.temperature,CO2_37.logn,O2_37.logn,water_37.logn,water_solution_25degC.temperature,CO2_25.logn,O2_25.logn,water_25.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 (236): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06457/2.48, allocations: 6.854 MB / 0.6415 GB, free: 103 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01621/2.496, allocations: 3.873 MB / 0.6453 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-05/2.496, allocations: 3.875 kB / 0.6453 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006309/2.502, allocations: 1.88 MB / 0.6471 GB, free: 100.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008745/2.511, allocations: 0.5108 MB / 0.6476 GB, free: 100 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1196/2.631, allocations: 28.82 MB / 0.6757 GB, free: 81.97 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002669/2.634, allocations: 1.718 MB / 0.6774 GB, free: 81.19 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005233/2.639, allocations: 0.6039 MB / 0.678 GB, free: 80.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003601/2.643, allocations: 1.43 MB / 0.6794 GB, free: 79.93 MB / 462.1 MB Notification: Performance of SimCode: time 1.774e-06/2.643, allocations: 0 / 0.6794 GB, free: 79.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5908/3.233, allocations: 91.29 MB / 0.7686 GB, free: 7.551 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.57/33.81, allocations: 7.781 kB / 0.7686 GB, free: 7.543 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.GasSolubility_NIST.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_NIST.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_NIST.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_NIST.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.GasSolubility_NIST_res.csv --start-time 0 --stop-time 1e-05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-09 Chemical_Chemical_Examples_GasSolubility_NIST.fmu > Chemical_Chemical.Examples.GasSolubility_NIST.pipe 2>&1)