Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",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.005838/0.005838, allocations: 101.3 kB / 15.73 MB, free: 6.441 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.001267/0.001267, allocations: 194.7 kB / 16.68 MB, free: 6.355 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.227/0.227, allocations: 15.31 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2702, allocations: 53.59 MB / 478.3 MB, free: 25.6 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.008716/0.2789, allocations: 10.32 MB / 488.6 MB, free: 18.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03073/0.3097, allocations: 32.88 MB / 0.5093 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.3114, allocations: 28.47 kB / 0.5093 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001773/0.3132, allocations: 0.7012 MB / 0.51 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00708/0.3203, allocations: 2.638 MB / 0.5126 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01262/0.3329, allocations: 4.31 MB / 0.5168 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006608/0.3396, allocations: 3.015 MB / 0.5197 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002557/0.3422, allocations: 1.659 MB / 0.5213 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002253/0.3445, allocations: 1.465 MB / 0.5228 GB, free: 9.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002627/0.3471, allocations: 1.604 MB / 0.5243 GB, free: 7.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005313/0.3477, allocations: 264 kB / 0.5246 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01148/0.3592, allocations: 3.608 MB / 0.5281 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008496/0.3601, allocations: 0.6076 MB / 0.5287 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.3617, allocations: 1.33 MB / 0.53 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01503/0.3767, allocations: 6.618 MB / 0.5365 GB, free: 11.33 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.3768, allocations: 0 / 0.5365 GB, free: 11.33 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3768, allocations: 4 kB / 0.5365 GB, free: 11.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.3769, allocations: 0 / 0.5365 GB, free: 11.32 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.008489/0.3854, allocations: 3.235 MB / 0.5396 GB, free: 8.023 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.3855, allocations: 8.031 kB / 0.5396 GB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006669/0.3862, allocations: 291.9 kB / 0.5399 GB, free: 7.719 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003016/0.3892, allocations: 0.5713 MB / 0.5405 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.392, allocations: 1.126 MB / 0.5416 GB, free: 5.973 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.3922, allocations: 160.6 kB / 0.5417 GB, free: 5.812 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006028/0.3928, allocations: 216.3 kB / 0.5419 GB, free: 5.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005817/0.3986, allocations: 2.794 MB / 0.5447 GB, free: 2.723 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.477e-05/0.3987, allocations: 0 / 0.5447 GB, free: 2.723 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003741/0.3991, allocations: 88 kB / 0.5447 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.059e-05/0.3991, allocations: 52 kB / 0.5448 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007058/0.4062, allocations: 3.78 MB / 0.5485 GB, free: 14.79 MB / 430.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.01674/0.423, allocations: 8.322 MB / 0.5566 GB, free: 6.148 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00611/0.4291, allocations: 3.954 MB / 0.5605 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.4309, allocations: 1.017 MB / 0.5615 GB, free: 1.043 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01335/0.4442, allocations: 9.219 MB / 0.5705 GB, free: 6.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.4443, allocations: 47.88 kB / 0.5705 GB, free: 6.691 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006329/0.445, allocations: 166.2 kB / 0.5707 GB, free: 6.527 MB / 446.1 MB Notification: Performance of pre-optimization done (n=138): time 5.921e-06/0.445, allocations: 0 / 0.5707 GB, free: 6.527 MB / 446.1 MB Notification: Performance of matching and sorting (n=170): time 0.03114/0.4761, allocations: 6.395 MB / 0.5769 GB, free: 40 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.4762, allocations: 73.41 kB / 0.577 GB, free: 15.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.4784, allocations: 1.656 MB / 0.5786 GB, free: 14.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002215/0.4786, allocations: 57.7 kB / 0.5787 GB, free: 14.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000654/0.4793, allocations: 1.038 MB / 0.5797 GB, free: 13.17 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005957/0.4799, allocations: 0.6009 MB / 0.5803 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007747/0.4807, allocations: 472.6 kB / 0.5807 GB, free: 12.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.757e-05/0.4808, allocations: 309.1 kB / 0.581 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4822, allocations: 0.7936 MB / 0.5818 GB, free: 10.99 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002125/0.4843, allocations: 1.597 MB / 0.5833 GB, free: 9.027 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003601/0.4879, allocations: 2.417 MB / 0.5857 GB, free: 6.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.148e-05/0.488, allocations: 8 kB / 0.5857 GB, free: 6.242 MB / 462.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.009223/0.4972, allocations: 3.135 MB / 0.5888 GB, free: 3.086 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.4973, allocations: 18.19 kB / 0.5888 GB, free: 3.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.011e-05/0.4973, allocations: 24 kB / 0.5888 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003927/0.5012, allocations: 487 kB / 0.5893 GB, free: 2.559 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.5035, allocations: 0.585 MB / 0.5899 GB, free: 1.973 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.5144, allocations: 7.699 MB / 0.5974 GB, free: 9.723 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.5164, allocations: 83.98 kB / 0.5974 GB, free: 9.641 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003713/0.5168, allocations: 144 kB / 0.5976 GB, free: 9.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * 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 (305): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009271/0.5177, allocations: 424 kB / 0.598 GB, free: 9.078 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/0.5182, allocations: 169.8 kB / 0.5982 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008065/0.5263, allocations: 2.408 MB / 0.6005 GB, free: 6.48 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.5264, allocations: 16 kB / 0.6005 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.5264, allocations: 4 kB / 0.6005 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-05/0.5264, allocations: 7.969 kB / 0.6005 GB, free: 6.453 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003135/0.5296, allocations: 1.855 MB / 0.6023 GB, free: 4.516 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.5296, allocations: 0 / 0.6023 GB, free: 4.516 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/0.5311, allocations: 355.8 kB / 0.6027 GB, free: 4.168 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003894/0.535, allocations: 458.9 kB / 0.6031 GB, free: 3.707 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002248/0.5352, allocations: 55.97 kB / 0.6032 GB, free: 3.652 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2182/0.7535, allocations: 7.526 MB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.7535, allocations: 2.25 kB / 0.6105 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008569/0.7621, allocations: 3.004 MB / 0.6135 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004305/0.7626, allocations: 236.8 kB / 0.6137 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.7628, allocations: 39.22 kB / 0.6137 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009648/0.7638, allocations: 38.42 kB / 0.6138 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.7642, allocations: 150.8 kB / 0.6139 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/0.7643, allocations: 74.81 kB / 0.614 GB, free: 115.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.7656, allocations: 1.132 MB / 0.6151 GB, free: 115 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7656, allocations: 2.844 kB / 0.6151 GB, free: 115 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003938/0.7696, allocations: 1.362 MB / 0.6164 GB, free: 114.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (blood_plasma.temperature,red_cells.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,CO2_unbound_erythrocyte.logn,O2_unbound_erythrocyte_NIST.logn,water_plasma.logn,water.logn,water_plasma1.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 (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01167/0.7813, allocations: 4.949 MB / 0.6212 GB, free: 112.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005419/0.7867, allocations: 2.495 MB / 0.6237 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.7868, allocations: 0 / 0.6237 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002149/0.7889, allocations: 1.358 MB / 0.625 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.7908, allocations: 368.8 kB / 0.6254 GB, free: 110.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03011/0.8209, allocations: 16.42 MB / 0.6414 GB, free: 102 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007907/0.8218, allocations: 1.381 MB / 0.6427 GB, free: 101.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001652/0.8235, allocations: 437.1 kB / 0.6432 GB, free: 101.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.8246, allocations: 0.9626 MB / 0.6441 GB, free: 100.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.583e-06/0.8246, allocations: 0 / 0.6441 GB, free: 100.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/0.9551, allocations: 62.15 MB / 0.7048 GB, free: 39.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.7/19.65, allocations: 2.953 kB / 0.7048 GB, free: 39.02 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility.fmu > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)