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.001118/0.001118, allocations: 112.5 kB / 15.74 MB, free: 68 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.001288/0.001288, allocations: 195.2 kB / 16.67 MB, free: 6.582 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.412/1.412, 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.2452/0.2452, allocations: 15.32 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3192, allocations: 53.61 MB / 478.3 MB, free: 25.71 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_NIST): time 0.01399/0.3332, allocations: 14.75 MB / 493.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05474/0.388, allocations: 49.09 MB / 0.5294 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00379/0.3918, allocations: 35.81 kB / 0.5295 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003824/0.3956, allocations: 1.103 MB / 0.5306 GB, free: 1.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01272/0.4084, allocations: 3.441 MB / 0.5339 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02497/0.4334, allocations: 6.989 MB / 0.5407 GB, free: 6.953 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00783/0.4413, allocations: 4.498 MB / 0.5451 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003123/0.4445, allocations: 2.303 MB / 0.5474 GB, free: 76 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002951/0.4474, allocations: 2.065 MB / 0.5494 GB, free: 14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003027/0.4505, allocations: 2.293 MB / 0.5516 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007201/0.4512, allocations: 380 kB / 0.552 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01826/0.4695, allocations: 5.523 MB / 0.5574 GB, free: 5.801 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001683/0.4712, allocations: 0.8801 MB / 0.5583 GB, free: 4.918 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003396/0.4746, allocations: 1.956 MB / 0.5602 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02924/0.5039, allocations: 9.984 MB / 0.5699 GB, free: 8.926 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.5039, allocations: 4 kB / 0.5699 GB, free: 8.922 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5039, allocations: 0 / 0.5699 GB, free: 8.922 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000221/0.5042, allocations: 0 / 0.5699 GB, free: 8.922 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.01186/0.516, allocations: 4.808 MB / 0.5746 GB, free: 4.035 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.5161, allocations: 8.031 kB / 0.5746 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009778/0.5171, allocations: 422.4 kB / 0.575 GB, free: 3.602 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004676/0.5218, allocations: 0.9346 MB / 0.5759 GB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003796/0.5256, allocations: 1.6 MB / 0.5775 GB, free: 1.012 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002729/0.5259, allocations: 234.6 kB / 0.5777 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009958/0.5269, allocations: 328.2 kB / 0.578 GB, free: 472 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008798/0.5357, allocations: 4.46 MB / 0.5824 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/0.5358, allocations: 0 / 0.5824 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004719/0.5363, allocations: 131.9 kB / 0.5825 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.31e-05/0.5364, allocations: 80 kB / 0.5826 GB, free: 11.72 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/0.5469, allocations: 6.364 MB / 0.5888 GB, free: 5.332 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.0255/0.5724, allocations: 12.61 MB / 0.6011 GB, free: 8.312 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008011/0.5805, allocations: 4.627 MB / 0.6056 GB, free: 3.508 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002456/0.583, allocations: 1.311 MB / 0.6069 GB, free: 2.191 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2908/0.8738, allocations: 12.17 MB / 0.6188 GB, free: 112.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.8738, allocations: 54.62 kB / 0.6189 GB, free: 112.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 3.256e-06/0.8739, allocations: 0 / 0.6189 GB, free: 112.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=227): time 0.04195/0.9158, allocations: 9.9 MB / 0.6285 GB, free: 108 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.9159, allocations: 127.1 kB / 0.6286 GB, free: 107.9 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004161/0.9201, allocations: 3.315 MB / 0.6319 GB, free: 106.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002903/0.9204, allocations: 61.58 kB / 0.6319 GB, free: 106.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008284/0.9212, allocations: 1.642 MB / 0.6335 GB, free: 105.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007339/0.922, allocations: 0.832 MB / 0.6344 GB, free: 104.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.923, allocations: 0.6929 MB / 0.635 GB, free: 104.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.479e-05/0.923, allocations: 301.1 kB / 0.6353 GB, free: 104.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001875/0.9249, allocations: 1.38 MB / 0.6367 GB, free: 103.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002406/0.9273, allocations: 2.49 MB / 0.6391 GB, free: 101.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003998/0.9313, allocations: 3.578 MB / 0.6426 GB, free: 98.95 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-05/0.9314, allocations: 9.562 kB / 0.6426 GB, free: 98.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=458) (initialization): time 0.01135/0.9427, allocations: 4.99 MB / 0.6475 GB, free: 96.42 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.9428, allocations: 25.38 kB / 0.6475 GB, free: 96.42 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.51e-05/0.9428, allocations: 34.47 kB / 0.6475 GB, free: 96.42 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005201/0.9481, allocations: 0.7108 MB / 0.6482 GB, free: 96.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/0.9509, allocations: 0.8366 MB / 0.649 GB, free: 95.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/0.9641, allocations: 11.56 MB / 0.6603 GB, free: 84.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003626/0.9678, allocations: 115.3 kB / 0.6604 GB, free: 84.92 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004037/0.9682, allocations: 213 kB / 0.6606 GB, free: 84.86 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.001234/0.9695, allocations: 0.5385 MB / 0.6612 GB, free: 84.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007608/0.9702, allocations: 272.6 kB / 0.6614 GB, free: 84.33 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009339/0.9796, allocations: 3.222 MB / 0.6646 GB, free: 81.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.9796, allocations: 28 kB / 0.6646 GB, free: 81.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.9796, allocations: 4 kB / 0.6646 GB, free: 81.13 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.683e-05/0.9797, allocations: 11.95 kB / 0.6646 GB, free: 81.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.9831, allocations: 2.612 MB / 0.6672 GB, free: 78.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.9831, allocations: 4 kB / 0.6672 GB, free: 78.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.9846, allocations: 447.8 kB / 0.6676 GB, free: 78.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005121/0.9897, allocations: 0.6683 MB / 0.6683 GB, free: 77.35 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.9899, allocations: 75.97 kB / 0.6683 GB, free: 77.28 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/1.001, allocations: 11.3 MB / 0.6794 GB, free: 65.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.001, allocations: 4 kB / 0.6794 GB, free: 65.16 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/1.012, allocations: 4.161 MB / 0.6834 GB, free: 60.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008877/1.013, allocations: 333.5 kB / 0.6837 GB, free: 60.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000465/1.013, allocations: 48 kB / 0.6838 GB, free: 60.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/1.014, allocations: 51.98 kB / 0.6838 GB, free: 60.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003818/1.015, allocations: 197.6 kB / 0.684 GB, free: 60.28 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/1.015, allocations: 98.5 kB / 0.6841 GB, free: 60.18 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002096/1.017, allocations: 2.342 MB / 0.6864 GB, free: 57.83 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.017, allocations: 0 / 0.6864 GB, free: 57.83 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006067/1.023, allocations: 2.111 MB / 0.6885 GB, free: 55.88 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.01425/1.037, allocations: 6.895 MB / 0.6952 GB, free: 49.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005538/1.043, allocations: 3.776 MB / 0.6989 GB, free: 45.35 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.043, allocations: 0 / 0.6989 GB, free: 45.35 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/1.045, allocations: 1.883 MB / 0.7007 GB, free: 43.39 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002924/1.048, allocations: 0.5001 MB / 0.7012 GB, free: 42.89 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0445/1.093, allocations: 25.95 MB / 0.7266 GB, free: 15.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/1.094, allocations: 1.717 MB / 0.7282 GB, free: 13.92 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002435/1.097, allocations: 0.6091 MB / 0.7288 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001913/1.099, allocations: 1.428 MB / 0.7302 GB, free: 11.88 MB / 478.1 MB Notification: Performance of SimCode: time 1.653e-06/1.099, allocations: 0 / 0.7302 GB, free: 11.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4275/1.526, allocations: 92.26 MB / 0.8203 GB, free: 191 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.36/20.88, allocations: 4.516 kB / 0.8203 GB, free: 191 MB / 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)