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.00656/0.00656, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001327/0.001327, allocations: 201.9 kB / 16.68 MB, free: 5.969 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2297/0.2297, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 63.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2858, allocations: 53.6 MB / 478.3 MB, free: 25.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_NIST): time 0.01203/0.2979, allocations: 14.75 MB / 493.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05807/0.356, allocations: 49.09 MB / 0.5295 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003921/0.3599, allocations: 35.81 kB / 0.5295 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004167/0.3641, allocations: 1.096 MB / 0.5306 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.3768, allocations: 3.414 MB / 0.5339 GB, free: 14.03 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02096/0.3978, allocations: 6.938 MB / 0.5407 GB, free: 7.047 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008221/0.4061, allocations: 4.501 MB / 0.5451 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00395/0.4101, allocations: 2.291 MB / 0.5473 GB, free: 184 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004253/0.4144, allocations: 2.061 MB / 0.5493 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005146/0.4196, allocations: 2.293 MB / 0.5516 GB, free: 11.81 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00157/0.4212, allocations: 384 kB / 0.5519 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02091/0.4421, allocations: 5.515 MB / 0.5573 GB, free: 5.914 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.4438, allocations: 0.884 MB / 0.5582 GB, free: 5.027 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003833/0.4476, allocations: 1.956 MB / 0.5601 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02909/0.4768, allocations: 9.988 MB / 0.5698 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.4768, allocations: 0 / 0.5698 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4768, allocations: 0 / 0.5698 GB, free: 9.035 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002215/0.4771, allocations: 0 / 0.5698 GB, free: 9.035 MB / 446.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.01333/0.4904, allocations: 4.812 MB / 0.5745 GB, free: 4.145 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4905, allocations: 8.031 kB / 0.5745 GB, free: 4.137 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006706/0.4912, allocations: 418.4 kB / 0.5749 GB, free: 3.715 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004381/0.4955, allocations: 0.9386 MB / 0.5759 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003613/0.4992, allocations: 1.6 MB / 0.5774 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/0.4995, allocations: 230.6 kB / 0.5776 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007607/0.5002, allocations: 328.3 kB / 0.578 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008932/0.5092, allocations: 4.464 MB / 0.5823 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.991e-05/0.5093, allocations: 3.984 kB / 0.5823 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003494/0.5096, allocations: 124 kB / 0.5824 GB, free: 11.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.174e-05/0.5097, allocations: 79.98 kB / 0.5825 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/0.5207, allocations: 6.372 MB / 0.5887 GB, free: 5.434 MB / 462.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.0247/0.5455, allocations: 12.6 MB / 0.601 GB, free: 8.426 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008454/0.554, allocations: 4.634 MB / 0.6056 GB, free: 3.613 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00322/0.5572, allocations: 1.314 MB / 0.6068 GB, free: 2.297 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2707/0.828, allocations: 12.17 MB / 0.6187 GB, free: 112.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.8281, allocations: 59.48 kB / 0.6188 GB, free: 112.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 4.358e-06/0.8281, allocations: 0 / 0.6188 GB, free: 112.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=227): time 0.04521/0.8733, allocations: 9.888 MB / 0.6284 GB, free: 108.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.8734, allocations: 133.4 kB / 0.6286 GB, free: 108 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004859/0.8783, allocations: 3.311 MB / 0.6318 GB, free: 106.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004214/0.8787, allocations: 66.33 kB / 0.6319 GB, free: 106.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000958/0.8797, allocations: 1.637 MB / 0.6335 GB, free: 105.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009007/0.8806, allocations: 0.8311 MB / 0.6343 GB, free: 104.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001281/0.8819, allocations: 0.6961 MB / 0.635 GB, free: 104.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.733e-05/0.882, allocations: 301.1 kB / 0.6352 GB, free: 104.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002246/0.8842, allocations: 1.381 MB / 0.6366 GB, free: 103.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003046/0.8873, allocations: 2.484 MB / 0.639 GB, free: 101.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005253/0.8926, allocations: 3.587 MB / 0.6425 GB, free: 99.07 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-05/0.8927, allocations: 10.94 kB / 0.6425 GB, free: 99.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=458) (initialization): time 0.01342/0.9061, allocations: 4.984 MB / 0.6474 GB, free: 96.55 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.9062, allocations: 19.91 kB / 0.6474 GB, free: 96.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.945e-05/0.9063, allocations: 37.06 kB / 0.6475 GB, free: 96.55 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005243/0.9115, allocations: 0.7149 MB / 0.6482 GB, free: 96.19 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003112/0.9147, allocations: 0.8356 MB / 0.649 GB, free: 96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01401/0.9287, allocations: 11.55 MB / 0.6602 GB, free: 85.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/0.9322, allocations: 115.5 kB / 0.6604 GB, free: 85.04 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00068/0.9329, allocations: 205.7 kB / 0.6606 GB, free: 84.99 MB / 478.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.001533/0.9344, allocations: 0.5441 MB / 0.6611 GB, free: 84.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009563/0.9354, allocations: 271.4 kB / 0.6613 GB, free: 84.45 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00998/0.9454, allocations: 3.22 MB / 0.6645 GB, free: 81.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.208e-05/0.9455, allocations: 24 kB / 0.6645 GB, free: 81.29 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-05/0.9455, allocations: 4 kB / 0.6645 GB, free: 81.29 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.999e-05/0.9456, allocations: 15.95 kB / 0.6645 GB, free: 81.27 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004605/0.9502, allocations: 2.608 MB / 0.6671 GB, free: 78.63 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.293e-05/0.9502, allocations: 4 kB / 0.6671 GB, free: 78.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/0.9519, allocations: 451.3 kB / 0.6675 GB, free: 78.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004968/0.9569, allocations: 0.6704 MB / 0.6682 GB, free: 77.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004132/0.9574, allocations: 83.95 kB / 0.6682 GB, free: 77.42 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/0.9691, allocations: 11.29 MB / 0.6793 GB, free: 65.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.9692, allocations: 12 kB / 0.6793 GB, free: 65.31 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/0.9798, allocations: 4.164 MB / 0.6833 GB, free: 61.06 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.9809, allocations: 333.5 kB / 0.6837 GB, free: 60.72 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009041/0.9819, allocations: 51.98 kB / 0.6837 GB, free: 60.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/0.9836, allocations: 58.16 kB / 0.6838 GB, free: 60.61 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004251/0.984, allocations: 197.6 kB / 0.684 GB, free: 60.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/0.9842, allocations: 95.95 kB / 0.684 GB, free: 60.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.9864, allocations: 2.338 MB / 0.6863 GB, free: 57.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9864, allocations: 0 / 0.6863 GB, free: 57.97 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006366/0.9928, allocations: 2.113 MB / 0.6884 GB, free: 56.02 MB / 478.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.01587/1.009, allocations: 6.888 MB / 0.6951 GB, free: 49.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006186/1.015, allocations: 3.785 MB / 0.6988 GB, free: 45.48 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.015, allocations: 0 / 0.6988 GB, free: 45.48 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/1.018, allocations: 1.879 MB / 0.7007 GB, free: 43.53 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003346/1.021, allocations: 0.5163 MB / 0.7012 GB, free: 43.01 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04691/1.068, allocations: 25.93 MB / 0.7265 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/1.069, allocations: 1.721 MB / 0.7282 GB, free: 14.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002192/1.071, allocations: 0.6091 MB / 0.7288 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/1.073, allocations: 1.428 MB / 0.7301 GB, free: 12.02 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/1.073, allocations: 0 / 0.7301 GB, free: 12.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1929/1.266, allocations: 92.26 MB / 0.8202 GB, free: 8 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.1/21.37, allocations: 10.97 kB / 0.8203 GB, free: 0 / 0.545 GB (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)